Skip to content

Chinese LaTeX/PDF template for Jupyter nbconvert using CTeX

License

Notifications You must be signed in to change notification settings

AllanChain/nb-tmpl-ctex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupyter nbconvert 中文 PDF 模板

Chinese LaTeX/PDF template for Jupyter notebook nbconvert using CTeX.

PyPI - Version PyPI - Python Version


安装

pip install nb-tmpl-ctex

使用

通过 nbconvert 调用:

# 默认 ctexart
jupyter nbconvert example.ipynb --to pdf --template ctex
# 使用 ctexrep
jupyter nbconvert example.ipynb --to pdf --template ctex --template-file report

如果需要在 Jupyter 网页导出时自动使用 CTeX 模板,需要在 ~/.jupyter/jupyter_nbconvert_config.pyctex 模板设置为默认:

c.LatexExporter.template_name = "ctex"
# c.LatexExporter.template_file = "report"

License

nb-tmpl-ctex is distributed under the terms of the MIT license.

About

Chinese LaTeX/PDF template for Jupyter nbconvert using CTeX

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project