Problem converting Jupyter notebook file to PDF - "...-svg-tex.pdf" files not found #14621
-
DescriptionI wanted to convert an existing Jupyter notebook file to PDF using Quarto. The error I get suggests that PDF versions of the plots need to be generated and that they are missing. The command and its output are below. I looked at the log file and apart from some missing symbols in the fonts I don't see anything related except maybe for this: What is 'shell escape' or 'write18'? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
SVG is not a supported image format for PDF files. When your ipynb has them, Quarto tries to convert them to svg, using an external tool. I believe this warning is coming from |
Beta Was this translation helpful? Give feedback.
-
|
Without have full access to your Jupyter Notebook, I can only give you some explanation of the error. LaTeX by default does not supports SVG. Authors should use PDF, EPS, PNG or JPG as format for images. Some LaTeX packages provides support to SVG by using Inkscape to convert the SVG to PDF. For the package to work, user must allow LaTeX to escape the sandbox and call other programs. The explicit permission is required because run third-party instructions is dangerous given that they could remove your files by running Quarto runs LaTeX in the safe mode and this creates the error that you see. When working with Quarto and R, some packages like ggplot know what output you are producing and create the figures in the correct format. You should be able to manually change the output format in the code cell of your Jupyter Notebook to PDF, EPS, PNG or JPG and you will solve the problem you reported. |
Beta Was this translation helpful? Give feedback.
I solved it! Apparently the problem was the space in the filename.
When I run this command:
I get a .aux, .log and .tex file and an "AMS inequality_files" folder with a "figure-pdf" subfolder containing only .svg files and the error mentioned before.
When I rename the file and run this command:
everything works just fine. I'm guessing this is some bizarre bug.