2018-11-14 【jupyter notebook 导出pdf】

  • 找不到pandoc

    安装pandoc,加入环境变量,必要时重启jupyter或机器。

[! Package ucs Error: Unknown Unicode character 9474 = U+2502,
(ucs)                possibly declared in uni-37.def.
(ucs)                Type H to see if it is available with options.

可能含有中文等,\Anaconda3\Lib\site-packages\nbconvert路径下,
修改\templates\latex文件夹下,article.tplx

\documentclass[11pt]{article}

\documentclass[11pt]{ctexart}

修改exporters文件夹下pdf.py

latex_command = List([u"xelatex", u"{filename}"], config=True, 
        help="Shell command used to compile latex."
    )

latex_command = List([u"xelatex", u"{filename}"], config=True, 
        help="Shell command used to compile latex."
    )
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容