This applies to CentOS 6.x with AEN version 4.1.3.
Using “Download as PDF” on produces the following LaTex error:
! LaTeX Error: File `adjustbox.sty' not found
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Jupyter notebook needs a newer version of the LaTeX modules in the OS than RPM form available in CentOS. CentOS 7.3 has the newer 2012 texlive RPM available.
Follow this workaround to update LaTex on CentOS 6.x.
The manual setup of LaTex on CentOS/RHEL6 involves using their own download manager http://www.tug.org/texlive/quickinstall.html
NOTE: The texlive installer downloads about 3,500 modules and may take over an hour to install.
To change the PATH to include the LaTeX for new projects you need to modify the projectrc skeleton template. Path to the template projectrc :
After installation, the PATH needs to be modified in the projectrc of every project which uses this functionality. You can find the projectrc location in the Resource Compute Config section of a Project:
What to add to the .projectrc file
## Add user defined functions below export
Restart the project.You should be able to use the Download as PDF function as well as the command line version now:
jupyter notebook Untitled.ipynb --to pdf