You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that an alternative fix is to use the svg2pdf.py preprocessor to "pre-convert" the SVG file included via ![]() into PDF, as it is currently done for image/svg+xml.
IMHO the \includepackage{svg} method is better. However, this is open and up for debate.
I'm not sure if #244 and this are duplicates... cells with MIME type image/svg+xml (which #244 is referring to via plot) are already correctly filtered via svg2pdf preprocessor... whereas this issue is about SVG files included via ![]()...
#244 is definitely about SVGs in markdown cells with ![](....svg). There are other issues around the svg2pdf preprocessor that you might be thinking of.
Problem description
Presently, SVG images can be directly included in Jupyter notebooks via the
![SVG file](file.svg)
directive. However:LaTeX
export results in\includegraphics{file.svg}
which is unsupported in LaTeX as of now.PDF via LaTeX
export fails due toXeLaTeX
compilation error.Version Info
nbconvert
7.16.4How to reproduce
![SVG file](file.svg)
in a Markdown cell.LaTeX
orPDF
as:jupyter nbconvert --debug <filename> --to latex
orjupyter nbconvert --debug <filename> --to pdf
Workaround
LaTeX
export, which utilizes thesvg
package and needs-shell-escape
option is provided in LaTeX export: Support SVG image files via thesvg
LaTeX package #2190.The text was updated successfully, but these errors were encountered: