jupyternotebook latex 中文

neil@neil-System-Product-Name:~/Projects/mab$ vim /home/neil/anaconda3/lib/python3.6/site-packages/nbconvert/templates/latex/
article.tplx            report.tplx             style_bw_python.tplx
base.tplx               skeleton/               style_ipython.tplx
document_contents.tplx  style_bw_ipython.tplx   style_python.tplx
neil@neil-System-Product-Name:~/Projects/mab$ vim /home/neil/anaconda3/lib/python3.6/site-packages/nbconvert/templates/latex/article.tplx 
neil@neil-System-Product-Name:~/Projects/mab$ vim /home/neil/anaconda3/lib/python3.6/site-packages/nbconvert/templates/latex/article.tplx 
neil@neil-System-Product-Name:~/Projects/mab$ 

修改 nbconvert 中的latex 模板文件从而可以支持中文。

((* block docclass *))
\documentclass[11pt]{article}
\usepackage{xeCJK} %引入之前安装的xecjk包
((* endblock docclass *))

你可能感兴趣的:(jupyternotebook latex 中文)