Graphics, Figures & TablesFile Not Found!

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
noo00b
Posts: 4
Joined: Fri Oct 02, 2009 4:26 pm

File Not Found!

Post by noo00b »

Hi!

I have defined my own command for adding figures in my preamble:

\newcommand{\psfig}[5]
{
\begin{figure}[#1]
\begin{center}
\includegraphics[width=#2\textwidth]{../samlet/eps/#3}
\caption{\textit{#4}}
\label{#5}
\vspace{-0.6cm}
\end{center}
\end{figure}
}

This results in the following command: \psfig{position}{size}{filename.eps}{caption}{label}

However, I have now come across a strange phenomenon; When I try to add an .eps file, TeXnicCenter tells me that the file cannot be found (LaTeX Error: File `../samlet/eps/Class1ARK4' not found.). In spite of the fact the files are actually there! They ARE in fact in the "eps"-folder i have created! This is however only valid for some of the files, as I have at least one .eps that works perfectly. The files are all plots from Matlab, and they can all be viewed in GSview.

Any tips, anyone? I'm getting kind of frustrated here..

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply