-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting tectonic (LaTeX compiler) doesn't work #113
Comments
This is related to #70 since it requires having an arbitrary build process, but with user customizable flags. |
I guess those are the lines in question: jupyterlab-latex/jupyterlab_latex/build.py Lines 96 to 120 in 424957b
I also would love to use tectonic , especially on binder since it would speed up the build considerable compared to installing all texlive dependencies (which are massive).
Since jupyterlab-latex/jupyterlab_latex/build.py Line 133 in 424957b
|
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. |
I'm wondering if this is the same issue I'm having? Currently, setting |
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):
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. |
Just to keep everyone posted, I ended up setting setting up and testing
I did have to install a package that included the I'll probably get around testing bibtex today as I will be needing it. EDIT: didn't feel it was worthy of a new post, but I wanted to mention that my previous issue of not seeing any output was also fixed, turns out the current code doesn't return the |
Hi @RealYHD, your changes sound like a great idea! I ran into the same issues on a new machine where I can't install arbitrary packages, but can and would like to use conda. In your implementation, how did you go about interpolating the user input here: ['{filename}.tex', '-Z', 'shell-escape', '--synctex={synctex}'] The default command line arguments are using f-strings, but here we are dealing with the user-supplied configs. That being said, would you like to contribute your changes and open a PR? I would be happy to review and test your changes. |
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?
The text was updated successfully, but these errors were encountered: