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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply