question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting tectonic (LaTeX compiler) doesn't work

See original GitHub issue

Setting tectonic to the LaTeX build compiler doesn’t work. The extension automatically adds flags to the command it does not recognize and fails.

I also can’t find the part of the extension responsible for setting these flags. Any ideas?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ian-r-rosecommented, Aug 12, 2020

I think it would be reasonable to add an escape hatch for a completely user-customizable command sequence. A config for disabling bibtex also sounds like a good idea.

1reaction
RealYHDcommented, Sep 14, 2022

Okay, I have a working prototype on my private git server. Mind you, I call it a working prototype since I’ve only lightly tested it with tectonic, but it’s a simple enough implementation that it should work with most other compilers.

To make this work, I’ve added two additional configuration options (essentially exactly the two configuration options @ian-r-rose mentioned):

  • The option to manually override the built-in arguments with a configuration option c.LatexConfig.manual_cmd_args. It takes a list of arguments with placeholders for the latex file name ({filename}), and whether or not synctex should be used ({synctex}). Using it with tectonic goes something like this: c.LatexConfig.manual_cmd_args = ['{filename}.tex', '-Z', 'shell-escape']. Of course, c.LatexConfig.latex_command = 'tectonic' is still needed.
  • The second configuration option I added was taken from @s-weigand’s note about bibtex. I’m going to be honest, I’ve never used bibtex at all before, but all I did was add a simple boolean toggle that disables the bibtex command sequence alterations. I plan on using bibtex in the very near future so although it’s currently untested, I’ll report back on this situation.

I did these changes as a rush job, and I have no experience developing extensions for JupyterLab whatsoever (I have more experience in python, but I feel most comfortable in slightly lower-level languages). That being said, I’d love to contribute these changes if given the opportunity and approval after some more rigorous testing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

texmaker - Tectonic under text editors - LaTeX Stack Exchange
I tried to replace xelatex with tectonic in Commands configuration of texmaker... without success!
Read more >
Tectonic Typesetting
Tectonic can be used from Github Actions to typeset your documents whenever a change to them is made: setup-tectonic - Use tectonic in...
Read more >
tinytex: Helper Functions to Install and Maintain TeX Live, and ...
contains helper functions to compile 'LaTeX' documents, and install missing ... This function only works with LaTeX distributions based on TeX Live, ...
Read more >
PDF Engines - Quarto
... engines including pdflatex, xelatex, lualatex, tectonic, and latexmk. ... installation of missing TeX packages will work for TinyTeX and TeX Live, ...
Read more >
modern latex with bbedit and tectonic
TexLab gets recognized automatically by BBEdit. Create the following two scripts in BBEdit scripts folder. 01)TeX Compile PDF.scpt. set msg to " ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found