【发布时间】:2021-07-10 22:36:19
【问题描述】:
我正在尝试将 Jupyter Notebook 转换为 pdf,但它会向我抛出此错误:
nbconvert.exporters.pdf.LatexFailed: PDF creating failed, captured latex output:
Failed to run "xelatex notebook.tex -quiet" command:
notebook.tex:411: Missing $ inserted
notebook.tex:411: Extra }, or forgotten
notebook.tex:412: Missing $ inserted
如果我把这个 LaTex 从我的笔记本中拿出来,它会起作用:
$ y=\frac{1}{2}x+3 $
我对 LaTex 不太熟悉,但它在 .ipynb 文件中正确显示,所以我假设这种语法没有任何问题。这是 nbconvert 的问题吗?谢谢!
【问题讨论】: