Step 1 导出 Tex 文件
打开
j
u
p
y
t
e
r
N
o
t
e
b
o
o
k
jupyter Notebook
jupyterNotebook,点击
F
i
l
e
→
D
o
w
n
l
o
a
d
a
s
→
L
a
T
e
X
(
.
t
e
x
)
File \to Download \quad as \to LaTeX(.tex)
File→Downloadas→LaTeX(.tex)
Step 2 修改 Tex 文件
在指定位置会看到导出的 . t e x .tex .tex 文件。为了使输出的 PDF 中的中文正常显示,需要对导出的 . t e x .tex .tex 文件进行编辑:
在 \documentclass
的后面插入:
\usepackage{fontspec, xunicode, xltxtra}
\setmainfont{Microsoft YaHei}
\usepackage{ctex}
即可
Step 3 导出 PDF
回到 . t e x .tex .tex 文件所在目录,在命令行中输入
xelatex 文件名.tex
即可得到好看的中文PDF