Skip to content

LaTeX and PDF export: Incorrect export of SVG images included via ![]() #2192

Open
@aravindh-krishnamoorthy

Description

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 to XeLaTeX compilation error.

Version Info

nbconvert 7.16.4

How to reproduce

  • Open a new Jupyter notebook file.
  • Include an SVD via ![SVG file](file.svg) in a Markdown cell.
  • Export the resulting notebook to LaTeX or PDF as: jupyter nbconvert --debug <filename> --to latex or jupyter nbconvert --debug <filename> --to pdf

Workaround

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions