对于没有经过特别配置的
Jupyter
Notebook
,我们在
导出
文件为
PDF
时
经常会出现以下
报错
:
nb
convert
failed
:
xe
latex
not found on
PATH
, if you have not installed
xe
latex
you may need to do so. Find further instructions at
https://
nb
convert
.readthedocs.io/en/latest/install.html#installing-tex.
其他可用CSDN资源下载地址
直接点击安装,默认安装即可,可选择安装位置。
然后配置环境变量,把安装路径配置到系统
path
中。如我的是将E:\IDE\Pandoc放置
path
中。
2. 安装miktex
直接点击安装,默认安装即可,可选择安装位置。
报错
:
xe
latex
not found on
PATH
, if you have not installed
xe
latex
you may need to do so. Find further instructions at https://
nb
convert
.readthedocs.io/en/latest/install.html#installing-tex.;
Jupyter
无法
导出
pdf
解决方案
Jupyter
Lab的扩展,允许实
时
编辑
LaTeX
文档。
要使用,请在.tex右键单击打开的.tex文档,然后选择Show
LaTeX
Preview : 这将编译.tex文件并打开渲染的
PDF
文档。 随后保存的文件将自动更新
PDF
。 如果
PDF
无法编译(可能是由于语法错误),则会打开一个错误面板,详细说明
LaTeX
错误。
有关更多高级用法文档,请参见。
Jupyter
Lab 1.0
Python
> = 3.6
可以将.tex文件编译为
PDF
的应用程序(例如
pdf
latex
,
xe
latex
;在带有MiKTeX的Windows上使用
pdf
lat
报这个错误,于是根据链接里的官方文档安装,依然报这个错误。最后发现是MixTeX的问题,根据https://blog.csdn.net/grandesucesso/article/details/107831868中的进行配置。
最后这里可以取消这个勾选,等几分钟就成功到处
pdf
了。
nb
convert
failed
:
xe
latex
not found on
PATH
, if you have not installed
xe
latex
you may need to do so. Find further instructions at https://
nb
convert
.readthedocs.io/en/latest/install.html#installing-tex.