jupyter-cjk-xelatex
Handle the encoding error for jupyter nbconvert to convert notebook to pdf document
Make two changes before gen pdf file:
- remove title \maketitle
- replace
\documentclass[11pt]{article} to \documentclass{ctexart}
Installation:
pip install jupyter_cjx_xelatex
or
python setup.py install
then change ~/.jupyter/jupyter_notebook_config.py
c.PDFExporter.latex_command=['cjk-xelatex', '{filename}']