Hi,
I am trying to add several figures to my latex file. I've been able to do it with:
\begin{center}
\includegraphics{R:\paper\charts\fig1.pdf}
\end{center}
but latex says it can't find the image file when I used:
\begin{center}
\includegraphics{fig1.pdf}
\end{center}
my tex file is in the same directory as the images. I am using Scientific Word. Does anyone know why or how to fix it?
Thank you!
Graphics, Figures & Tables ⇒ includegraphics error
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Re: includegraphics error
Hi,
use pdfLaTeX instead of LaTeX, i.e. compile directly to pdf.
If you already did that, please tell us more: the exact error message for instance. Or post the log file as attachment here.
Stefan
use pdfLaTeX instead of LaTeX, i.e. compile directly to pdf.
If you already did that, please tell us more: the exact error message for instance. Or post the log file as attachment here.
Stefan
LaTeX.org admin
Re: includegraphics error
I've attached a screenshot of the error I get in Scientific word, and I am using pdfLatex.
Thank you!
Leon
Thank you!
Leon
- Attachments
-
- error.jpg (159.1 KiB) Viewed 3415 times
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
includegraphics error
Don't use backslashes, they start a (La)TeX command.
Instead use slashes, for example:
Stefan
Instead use slashes, for example:
Code: Select all
\includegraphics{R:/paper/charts/fig1.pdf}
LaTeX.org admin