On Wed, Feb 3, 2016 at 8:17 PM, Carlos Guzman wrote:
> Sorry for the simple questions. But I can run nbconvert --to latex, but how
> do I run latex manually?
You can simply run
pdflatex myfile.tex
But sometimes (e.g. if you have references) you have to run this several times.
I highly recommend "latexmk", which will run pdflatex the right number
of times and also other commands if necessary and it can also display
the result, even continuously.
See this page for more details:
http://mg.readthedocs.org/latexmk.html
cheers,
Matthias
>
> On Wednesday, February 3, 2016 at 10:40:05 AM UTC-6, takowl wrote:
>>
>> On 3 February 2016 at 16:22, Carlos Guzman <
cguzma...@gmail.com> wrote:
>>>
>>> While this kept my images in my ipython notebook file, when I tried
>>> converting to pdf I got an error:
>>>>
>>>>
>>>> LaTeX Warning: File `heatmap_BOTH_intragenic_allhistone.png' not found
>>>> on input
>>>> line 350.
>>>
>>>
>>> Any idea what might be causing this?
>>
>>
>> Oh, I remember now. We run latex in a temporary directory because of the
>> mess it makes in the directory where it's run. But that breaks any
>> references to external files it needs to pull in:
>>
https://github.com/jupyter/nbconvert/issues/223
>>
>> You can work around this by running nbconvert --to latex, and then running
>> latex manually to generate the PDF.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
jupyter+u...@googlegroups.com.
> To post to this group, send email to
jup...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/jupyter/c0238550-174b-4a37-b248-3585ef82b89c%40googlegroups.com.