Rich Shepard wrote:
The embedded LaTeX seems to have intermittent issues; sometimes it works,
sometimes it doesn't. I need to learn how to make it work properly all the
time because it's really holding me up.
My python application includes embedded LaTeX for reports. In one of
these
reports I generate plots which are written to the reports/ subdirectory,
immediately beneath the CWD. This works fine.
However, when I try to include these files, pdflatex tells me that the
graphic file is not found. Sometimes it works as intended, sometimes it
does
not.
Here is the code:
ivr.write('\\includegraphics{reports/'+comp+row[0]+'}')
here is pdflatex's response:
! LaTeX Error: File `reports/JobsDuration' not found.
l.447 ...er}\includegraphics{reports/JobsDuration}
\end{center}
However, the file is present:
[EMAIL PROTECTED] /data1/eikos]$ ls reports/JobsDuration.pdf
reports/JobsDuration.pdf
Because pdflatex is looking in the proper directory, and the file is
there, I do not understand why I get the file not found error.
Rich
Rich,
Are you sure it's looking in the right place. You used a relative path
to the directory. If pdflatex is running from the LyX buffer directory,
rather than the document home directory, it won't find the image file
unless LyX copies the image to <buffer>/reports. I'm not sure if LyX is
that savvy.
Does an absolute path unbollix this and, if so, would using absolute
paths be a problem with your script?
/Paul