PDF Creating Failed, ! LaTeX Error: File `adjustbox.sty' not found.
See original GitHub issueHi, I’m trying to convert a notebook to PDF. I’ve downloaded pandoc and BasicTeX, but I’m still getting the following output:
[NbConvertApp] Converting notebook HW1_MATS8001.ipynb to pdf [NbConvertApp] Writing 15256 bytes to notebook.tex [NbConvertApp] Building PDF [NbConvertApp] Running pdflatex 3 times: [u’pdflatex’, u’notebook.tex’] [NbConvertApp] CRITICAL | pdflatex failed: [u’pdflatex’, u’notebook.tex’] This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./notebook.tex LaTeX2e <2015/01/01> Babel ❤️.9l> and hyphenation patterns for 21 languages loaded. (/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/pdftex-def/pdftex.def (/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/ltxcmds.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.19 \usepackage {color} % Allow colors to be defined^^M ! ==> Fatal error occurred, no output PDF file produced! Transcript written on notebook.log.
[NbConvertApp] Running bibtex 1 time: [u’bibtex’, u’notebook’] [NbConvertApp] WARNING | bibtex had problems, most likely because there were no citations [NbConvertApp] Running pdflatex 3 times: [u’pdflatex’, u’notebook.tex’] [NbConvertApp] CRITICAL | pdflatex failed: [u’pdflatex’, u’notebook.tex’] This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./notebook.tex LaTeX2e <2015/01/01> Babel ❤️.9l> and hyphenation patterns for 21 languages loaded. (/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/local/texlive/2015basic/texmf-dist/tex/latex/pdftex-def/pdftex.def (/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/ltxcmds.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.19 \usepackage {color} % Allow colors to be defined^^M ! ==> Fatal error occurred, no output PDF file produced! Transcript written on notebook.log.
Traceback (most recent call last): File “/usr/local/bin/ipython”, line 11, in <module> sys.exit(start_ipython()) File “/usr/local/lib/python2.7/site-packages/IPython/init.py”, line 118, in start_ipython return launch_new_instance(argv=argv, *_kwargs) File “/usr/local/lib/python2.7/site-packages/traitlets/config/application.py”, line 592, in launch_instance app.start() File “/usr/local/lib/python2.7/site-packages/IPython/terminal/ipapp.py”, line 349, in start return self.subapp.start() File “/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py”, line 286, in start self.convert_notebooks() File “/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py”, line 409, in convert_notebooks self.convert_single_notebook(notebook_filename) File “/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py”, line 380, in convert_single_notebook output, resources = self.export_single_notebook(notebook_filename, resources) File “/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py”, line 332, in export_single_notebook output, resources = self.exporter.from_filename(notebook_filename, resources=resources) File “/usr/local/lib/python2.7/site-packages/nbconvert/exporters/exporter.py”, line 166, in from_filename return self.from_notebook_node(nbformat.read(f, as_version=4), resources=resources, *_kw) File “/usr/local/lib/python2.7/site-packages/nbconvert/exporters/pdf.py”, line 139, in from_notebook_node raise RuntimeError(“PDF creating failed”) RuntimeError: PDF creating failed
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:27 (3 by maintainers)
Top GitHub Comments
Had the same issue, you need to install some extra Tex packages. Use
tlmgr
.I also had to install some more packages which I assume you will have to too:
Hey @koustuvsinha , please check this out! I tried and it worked pretty well for me
sudo tlmgr install collection-fontsrecommended