Fatemeh Asgarinejad
Fatemeh Asgarinejad

Reputation: 719

Problem with showing markdowns of Jupyter wrongly in pdf

When I save the jupyter notebook as pdf, the format of markdown cells totally change.

This is how it is shown in jupyter notebook jupyter image

This is how it is shown in pdf: pdf image

Upvotes: 0

Views: 1383

Answers (1)

glhr
glhr

Reputation: 4537

When exporting to PDF, Jupyter first converts the notebook to LateX and then uses pdflatex. That's why a lot of the formatting is lost.

A workaround is to download the notebook as an HTML file, and then print/save the HTML file as PDF in a browser. This will conserve all the markdown.

Example result: using HTML to PDF

Upvotes: 1

Related Questions