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."
    )

你可能感兴趣的:(2018-11-14 【jupyter notebook 导出pdf】)