【问题标题】:Jupyter Notebook Error Downloading as PDFJupyter Notebook 下载为 PDF 时出错
【发布时间】:2017-11-15 01:22:26
【问题描述】:

当我尝试在我的 Mac 上将 jupyter notebook 下载为 pdf 格式时,出现以下错误。我昨天安装了pandoc和basicTex,问题是我没有安装latex吗?还是其他问题?任何人都可以建议如何解决它?

Error:

nbconvert failed: PDF creating failed, captured latex output:
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./notebook.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 22 language(s) loaded.
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/psnfss/palatino.sty)
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics-def/pdftex.def
(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/caption/caption.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/caption/caption3.sty))

! LaTeX Error: File `adjustbox.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.42     \usepackage
                    {xcolor} % Allow colors to be defined^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on notebook.log.

【问题讨论】:

    标签: python latex jupyter-notebook pandoc


    【解决方案1】:

    我可以通过安装完整的 macTex 来解决这个问题。

    【讨论】:

      【解决方案2】:

      它适用于我(仅适用于 ubuntu/debian)。

      sudo apt-get install texlive-xetex

      【讨论】:

        猜你喜欢
        • 2017-10-10
        • 1970-01-01
        • 1970-01-01
        • 2021-09-25
        • 1970-01-01
        • 2017-03-01
        • 2019-11-23
        • 2020-09-24
        • 2021-12-10
        相关资源
        最近更新 更多