QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
76 stars 23 forks source link

PDF: Embed Images in PDF pipeline that support SVG #229

Open mmcky opened 5 years ago

mmcky commented 5 years ago

We received the following suggestion via: contact@quantecon.org.

I think you're absolutely right that SVG cannot be embedded in PDF, directly. But apparently when "exporting" to PDF the Jupyter notebook environment (at least on my Windows setup) uses the open-source Inkscape graphics app (https://inkscape.org/) to convert any SVG-based graphs present in the notebook into a PDF-compatible format. So if you install Inkscape on your system and make the inkscape executable available on PATH, then nbconvert / pandoc should do the rest.

mmcky commented 5 years ago

http://blog.rtwilson.com/how-to-get-nice-vector-graphics-in-your-exported-pdf-ipython-notebooks/