2

I am using style files from this link for Latex in WinEdt 7.0.

When including figures, If I use pdflatex or PDFTexify for compiling it doesn't recognize EPS files :

! LaTeX Error: Unknown graphics extension: .eps.

and If I use Latex or Texify for compiling it doesn't recognize PNG files:

! Undefined control sequence.

Is there any way to include both formats using this style?

An example of the tex file:

\documentclass{tADR2e}
\begin{document}
\title{Title}
\maketitle
\section{Module}

\begin{figure}
\begin{center}
\includegraphics{img/1/work1} % the png file
\caption{The process.}
\label{diagram1}
\end{center}
\end{figure}

\begin{figure}
\begin{center}
\includegraphics{img/2/work2} % the eps file
\caption{The process.}
\label{diagram2}
\end{center}
\end{figure}

\end{document}

compiling this tex gives the following error:

! LaTeX Error: File `img/2/work2' not found.

although there is no extension for the figures and they are even in different folders.

>>pdflatex --version

MiKTeX-pdfTeX 2.9.4307 (1.40.12) (MiKTeX 2.9)
Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh
TeX is a trademark of the American Mathematical Society.

The \listfile log can be found here.

closed as unclear what you're asking by Ian Thompson, yo', user31729, lockstep, Paul Gessler Jul 31 '14 at 20:29

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    You should normally not include file extensions: call different files different things. Using pdfLaTeX with a modern TeX system will then auto-convert from EPS to PDF, allowing PNG inclusion as well. – Joseph Wright Mar 28 '14 at 13:54
  • 1
    'Doesn't solve the problem' doesn't really tell me much. Did you (1) remove file extensions in your TeX file (2) Renate the two different files so the 'root names' are not the same, (3) run pdfLaTeX? If so, what does pdflatex --version at the command line give? – Joseph Wright Mar 28 '14 at 13:58
  • updated the question with answer. – NKN Mar 28 '14 at 14:06
  • OK, it should work with a recent MiKTeX. Please add \listfiles to your input, run pdfLaTeX and edit in the .log file to the question. – Joseph Wright Mar 28 '14 at 14:14
  • Your MWE compiles fine over here with the mentioned .cls file. I have pdfTeX 3.1415926 (TeX Live 2013). – Saaru Lindestøkke Mar 28 '14 at 14:22

Browse other questions tagged or ask your own question.