-
Notifications
You must be signed in to change notification settings - Fork 574
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
invalid filename for PDFExporter.latex_command #974
Comments
There's been a few filename issues in the pdf exporter, I've asked for some for some of the other contributors to try and take a look at that code. |
I cannot replicate this on windows. I see the double backslash too, so I don't think that's the issue. At first, I thought it was pdflatex, but I switched my config to use pdflatex instead of the default XeLaTeX and it still worked fine. The @GorgiAstro If you send me a Additional question: Does your notebook have a space in the filename? If so, try removing the space from the filename. |
I think this is the same issue, accidentally started in the Jupyter Core repo. |
I believe the problem was diagnosed on discourse, but I am still unable to replicate the issue. |
Same issue here on Windows 10 with current Jupyter installation (nbconvert 5.6.1):
When changing the directory in
to
then the xelatex run at least gets much further. Unfortunately it still ends with an error message:
|
I recently ran into this issue when running GitHub Actions CI for a project that uses I've managed to create a minimal reproducible example using GitHub Actions CI. You can see the details in this repository: jayqi/nbconvert-windows-pdf-repro I have links to the particular failing build and some notes in the README. To respond to some of the comments you made in this thread:
Please let me know if you have any questions. I hope we can get to the bottom of this! |
To prevent xelatex from failing on windows, see jupyter#974 for details.
To prevent xelatex from failing on windows, see #974 for details.
Dear all,
I am not able to generate a PDF via pdflatex in Windows. The same code with the same configuration works on Ubuntu 18.04 x64 but fails on Windows 10 x64, with nbconvert 5.4.1 installed from conda-forge.
My
jupyter_nbconvert_config.py
has the following definition for latex_command:c.PDFExporter.latex_command = ['pdflatex', '{filename}']
In Windows, it looks like the notebook.tex filename gets an extra backslash:
Whereas it works on Linux:
[NbConvertApp] Running pdflatex 3 times: ['pdflatex', './notebook.tex']
Thank you,
Cheers
GorgiAstro
The text was updated successfully, but these errors were encountered: