Rich Shepard wrote:
  This is a LaTeX question, but also applicable to LyX.

  Output reports from my model are written to a subdirectory, reports/,
immediately below the CWD in which the model runs. Plots are generated in
that report directory, and the LaTeX code goes looking for them there. But,
pdflatex is not finding the images. I think it's a syntax error, but I
haven't found the proper syntax.

  The *.tex file contains:

\vspace{2mm}\begin{center}\includegraphics{reports/JobsDuration}\end{center}

  pdflatex barfs with:

! LaTeX Error: File `reports/JobsDuration' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.447 ...er}\includegraphics{reports/JobsDuration}
                                                  \end{center}

  Yet, reports/JobsDuration.pdf exists, and graphicx is included in the
preamble.

  I had this working before, but did not change how the directory is
referenced when I made other changes. I'm just not seeing my error here and
hope that you can see it.


Not sure there is one. Your exact syntax works here (standard article class, graphicx loaded). Of course, this is on Windows, <sarcasm>a much more robust OS</sarcasm>.

Could it be a permissions problem (pdflatex running from an account that doesn't have read access to the PDF file)?

/Paul

Reply via email to