question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PDF Creating Failed, ! LaTeX Error: File `adjustbox.sty' not found.

See original GitHub issue

Hi, 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:27 (3 by maintainers)

github_iconTop GitHub Comments

126reactions
adriancooneycommented, Oct 9, 2015

Had the same issue, you need to install some extra Tex packages. Use tlmgr.

sudo tlmgr install adjustbox

I also had to install some more packages which I assume you will have to too:

sudo tlmgr install collectbox
sudo tlmgr install ucs
25reactions
mehdirezaiecommented, Sep 6, 2017

Hey @koustuvsinha , please check this out! I tried and it worked pretty well for me sudo tlmgr install collection-fontsrecommended

Read more comments on GitHub >

github_iconTop Results From Across the Web

latex - How do I install missing dependencies (adjustbox.sty ...
I have an IPython notebook which I am trying to convert to PDF format. But when I go to file and ...
Read more >
LaTeX Error: File `adjustbox.sty' not found on Ubuntu 10.04.2
First you need to make sure it was installed fully. Also, you need to show a minimal working example, and the command you...
Read more >
Issue with nbconvert converting pdfs - Jupyter Community Forum
To start, when I attempted to run # yum install texlive-xetex ... nbconvert failed: PDF creating failed, captured latex output:
Read more >
Errors - Overleaf, Online LaTeX Editor
LaTeX error messages can sometimes be tricky to understand and fix. We've put together a list of common ... Package pdftex.def Error: File...
Read more >
1.3 Install missing LaTeX packages | R Markdown Cookbook
When you compile a document to PDF through LaTeX, you may run into errors like these: ! LaTeX Error: File `ocgbase.sty' not found....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found