Step 1 导出 Tex 文件
打开 jupyterNotebookjupyter NotebookjupyterNotebook,点击 File→Downloadas→LaTeX(.tex)File \to Download \quad as \to LaTeX(.tex)File→Downloadas→LaTeX(.tex)
Step 2 修改 Tex 文件
在指定位置会看到导出的 .tex.tex.tex 文件。为了使输出的 PDF 中的中文正常显示,需要对导出的 .tex.tex.tex 文件进行编辑:
在 \documentclass
的后面插入:
\usepackage{fontspec, xunicode, xltxtra}
\setmainfont{Microsoft YaHei}
\usepackage{ctex}
即可
Step 3 导出 PDF
回到 .tex.tex.tex 文件所在目录,在命令行中输入
xelatex 文件名.tex
即可得到好看的中文PDF