Open
Description
Problem description
Presently, SVG images can be directly included in Jupyter notebooks via the 
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.4
How to reproduce
- Open a new Jupyter notebook file.
- Include an SVD via

in a Markdown cell. - Export the resulting notebook to
LaTeX
orPDF
as:jupyter nbconvert --debug <filename> --to latex
orjupyter nbconvert --debug <filename> --to pdf
Workaround
- A workaround for
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.
Metadata
Assignees
Labels
No labels
Activity