1

I want the third page of my document to include an image (JPEG) but I can't figure out what's wrong with my code. Here's the MWE:

\documentclass{beamer}

\usetheme{Warsaw}
\title[Artificial Neural Network]{Introduction  to ANN\\Artificial Neural Network}
\author{Gigili}
\date{January 6, 2013}
\begin{document}

\begin{frame}
\titlepage{}

\end{frame}





 \begin{frame}{continue}

\includegraphics{<Sample>}

\end{frame}

\end{document}

Here's the folder where I saved the image and the sample code:

enter image description here

The error I am getting is:

LaTeX Error: File '< Sample >' not found.

3
  • 2
    Try to remove <> in \includegraphics{<Sample>} and then compile it. I tried it with an image of mine and it worked.
    – rtzll
    Jan 3, 2013 at 12:20
  • 1
    You should always state the exact error message you get so others can help you better. Also examples should be minimal, e.g. the first frame here is not required etc. Jan 3, 2013 at 12:45
  • @MartinScharrer: You're right. I was talking about it in chat and forgot other people here don't know what I am talking about! I'll edit my question accordingly.
    – Gigili
    Jan 3, 2013 at 12:48

1 Answer 1

2
  • first, it's not recommended to choose the same name for your .tex file and your image.
  • As mentioned in the comments, I removed '<>' and it worked:

      \includegraphics[scale=0.5]{neuron}
    

Note that the image was renamed to neuron.

5
  • 2
    The <..> are often used, including on this site, to mark a variable text, e.g., <name> means to add a name here and <filename> means to add a file name here. The < > act here as delimiters to see where the template starts and ends and should be replaced when filling in the real content. Jan 3, 2013 at 12:47
  • Meta Syntax. Jan 3, 2013 at 12:57
  • This answer does not show how to include a jpeg picture because it doesn't refer to the extension of the filename. Of course it's possible to rely on the capability of the graphicx package to define a default file extension, define conversions, and search paths, but this is not a MWE that shows how to use them.
    – user10274
    Jan 3, 2013 at 13:06
  • @MarcvanDongen: I didn't claim that it is.
    – Gigili
    Jan 3, 2013 at 13:46
  • Well, your question is about presenting a JPEG picture and you provide an answer to your question, which suggests the answer demonstrates how to include a JPEG picture.
    – user10274
    Jan 3, 2013 at 14:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.