Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

closed as too localized by Martin Schröder, Andrew Swann, Claudio Fiandrino, lockstep, Harish Kumar Jan 3 '13 at 13:33

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Try to remove <> in \includegraphics{<Sample>} and then compile it. I tried it with an image of mine and it worked. –  xfoo Jan 3 '13 at 12:20
    
@ChristianR.: That worked, thank you. –  Gigili Jan 3 '13 at 12:22
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. –  Martin Scharrer Jan 3 '13 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 '13 at 12:48

1 Answer 1

up vote 2 down vote accepted
  • 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.

share|improve this answer
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. –  Martin Scharrer Jan 3 '13 at 12:47
    
Meta Syntax. –  Please don't touch Jan 3 '13 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. –  Marc van Dongen Jan 3 '13 at 13:06
    
@MarcvanDongen: I didn't claim that it is. –  Gigili Jan 3 '13 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. –  Marc van Dongen Jan 3 '13 at 14:31

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