mechmotum / jupyterhub-deploy-teaching

Reference deployment of JupyterHub and nbgrader on a single server
http://jupyterhub-deploy-teaching.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Install texlive so that "download as pdf works" #11

Closed moorepants closed 6 years ago

moorepants commented 6 years ago

Can you get the pdf download working? Should just be some texlive apt get installs.

moorepants commented 6 years ago

I'm just doing it. Sorry to bug ya.

moorepants commented 6 years ago

I did this:

agt-get install aptitude pandoc texlive-full

moorepants commented 6 years ago

ok, this seems to work now

ixjlyons commented 6 years ago

Note this issue: https://github.com/jupyter/nbconvert/issues/552

moorepants commented 6 years ago

I hit that already with one of my cw notebooks, but then tried a simple notebook with a markdown figure and it worked, even in sub dirs. Not sure what the difference was.

ptorru commented 6 years ago

Hello there, I don't know if this is helpful but, I am running debian Jessie, I am facing the same problem.

I just installed texlive-full : Setting up texlive-full (2014.20141024-2+deb8u1) ...

But this has not fixed the issue.

I am using:

The version of the notebook server is 4.3.1 and is running on:
Python 2.7.13 |Anaconda 4.3.1 (64-bit)| (default, Dec 20 2016, 23:09:15) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]

Any suggestions?

moorepants commented 6 years ago

As a work around you can use nbconvert to convert to latex and manually compile the file into a PDF. The images will be found if you do that.

ptorru commented 6 years ago

@moorepants Thanks so much for the suggestion.

I still had to replace the absolute paths on the \includegraphics lines with relative ones, however it did allow me to get the pictures on the final PDF.

Again many thanks indeed!