What is Jupyter notebook?
Jupyter Notebook is an upgrade of Ipython Notebook. Jupyter is able to organize real-time code , formulas, and visualizations into cells to form a code-friendly notebook. Jupyter supports both markdown syntax and latex syntax, and can effectively output PDF documents in Rich Text mode
Read more: Jupyter Notebook
Installing Jupyter Notebook
Official recommended Standard process: How to Install Jupyter Notebook
I was installed in the following order, the lack of support, Pip install xxxxxx
- Install Python
- Install Ipython by pip
pip install ipython
- Install Jupyter by pip
pip install jupyter
- Installing Pandoc
- Installing MiKTeX
Chinese support
Jupyter NoteBook export PDF requires latex support, but because of the default template settings, Latex does not recognize Chinese cannot be exported. To solve this problem, you need to convert IPYNB to Tex, then modify the Tex content, and finally generate the PDF file by Xelatex.
Insert after \documentclass{article}
- Compiling Tex, generating PDF
Xelatex Example.tex
Note: PDF generated in this way cannot be wrapped automatically!
Choose another method--directly modify the Tex template file
Open ARTICLE.TPLX (\python27\lib\site-packages\nbconvert\templates\latex\) with a text editor and modify it to \documentclass{ctexart}.
The resulting PDF is as follows: Baidu Cloud
Thank
The solution of this paper comes from
- IPython Notebook Solution for the Chinese problem when turning into LaTeX
- Compiling Chinese documents with Xelatex/xetex
- CTEX Macro Package
- Changing style of Pdf-latex output through IPython Notebook conversion
Known Issues
The inserted picture is automatically set to the page width when compiling with Xelatex.
Workaround: Modify Tex to add the appropriate zoom scale.
\includegraphics{figpath}
Modified to:
\includegraphics[scale =. 5]{figpath}
To learn more about Latex, we recommend reading the Latex Notes of the package teacher
Jupyter Notebook PDF output support in Chinese