When I saved the Jupyter notebook I wrote in HTML and browsed it on my iPhone, the formula I wrote in Tex did not display well. So when I tried to save as PDF, it seemed that standard PDF output could not be used if Japanese was included.
Of course, there are various solutions, but it's a little difficult. Qiita: Download Japanese Jupyter Notebook as PDF Qiita: Convert from Jupyter notebook to pdf [mac]
There is a problem that the layout is slightly broken, but the quick way is to export Jupyter as HTML and convert it to PDF by printing from the browser. The procedure using Google Chrome is shown below.
Save Jupyter as HTML with "File"-> "Export Notebook As ..."-> "Export Notebook to HTML".
Open the HTML file in your browser. Click Print.
Change the destination to "Save to PDF" and click "Save".
Japanese and Tex are also displayed properly.
~~ How was it ~~
Recommended Posts