簡體   English   中英

嘗試將 jupyter notebook 轉換為 pdf 時無法運行 xelatex

[英]Failed to run xelatex when trying to convert jupyter notebook to pdf

我正在嘗試將我的 jupyter notebook 轉換為 pdf 以便我可以提交它,但這樣做非常困難。 我首先安裝了 nbconvert 和 pypandoc,然后我在他們的網站上下載了 pandoc zip 文件夾(安裝程序不工作)並將其放在我的路徑中。 我最初收到消息

nbconvert failed: Pandoc wasn't found. Please check that pandoc is installed: http://pandoc.org/installing.html

但執行這些步驟修復了它。 我現在收到以下消息。 我通過打印預覽做了一個解決方案,保存 html 頁面,然后將 html 頁面轉換為 pdf,但修復此問題仍然很好。 謝謝!

nbconvert failed: PDF creating failed, captured latex output:
Failed to run "xelatex .\notebook.tex -quiet" command:
This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/W32TeX) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
! Undefined control sequence.
<*> .\notebook
              .tex -quiet
? 
! Emergency stop.
<*> .\notebook
              .tex -quiet
No pages of output.
Transcript written on ?.

我解決了

pip install --upgrade --user nbconvert

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM