That has to do with how you need to escape spaces in a \usegraphics() call in LaTeX. We could add something to check for that and modify the path, but that can actually introduce other problems. The real solution (as you've noted) is to just not have spaces in your file names, as it can introduce problems in a lot of contexts.
On Monday, July 10, 2017 at 10:05:17 PM UTC-5, Blue Tyson wrote: > > Thanks for that. Also I had a file with spaces in it like > sample_image_name more name.jpg and it didn't work...either way, but taking > out the spaces did. > > On Thursday, 4 February 2016 06:01:32 UTC+10:30, Matthias Geier wrote: >> >> 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 <[email protected]> >> 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 [email protected]. >> > To post to this group, send email to [email protected]. >> > To view this discussion on the web visit >> > >> https://groups.google.com/d/msgid/jupyter/c0238550-174b-4a37-b248-3585ef82b89c%40googlegroups.com. >> >> >> > >> > For more options, visit https://groups.google.com/d/optout. >> > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/b638fb17-15ec-4e92-8df8-aaa203efb724%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
