1

My simplified tex source is as follows:

\documentclass{amsart}
\usepackage{graphicx,color,float}
\newcommand{\aaa}{\includegraphics[width=.15in]{aaa.eps}}
\begin{document}
$\aaa$.
\end{document}

But it doesn't work. What did I do wrong?

  • 3
    Are you using pdflatex to compile your document? In that case, you can't use EPS files directly. – Jake May 24 '13 at 15:15
  • 1
    Welcome to TeX.SX! You may have a look on our starter guide. – jub0bs May 24 '13 at 15:21
  • 2
    I wouldn't have thought this to work: \includegraphics in inline math, but it does. It compiles for me using latex→dvips. – Toscho May 24 '13 at 15:21
  • 1
    It also does using pdflatex btw. – Toscho May 24 '13 at 15:22
  • Do you get any error messages? From the comments they might not be needed to solve the problem for you, but they might be good to have as part of the question to help others find it if they have the same problem. Also, please expand on how it doesn't work: Does it fail to compile or does it just not include the file? – LJNielsenDk May 24 '13 at 17:58

0 Answers0