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.

So we do \includegraphics[scale=0.75]{myfig.eps} to get image on the page. But how to wrap it into border and make itassignable with some automated image number like image N label like image about...

\myincludegraphics[scale=0.75]{myfig.eps}{Description}

So point is - How to get something like this: enter image description here?

share|improve this question
4  
A LaTeX tutorial or a book like lshort might help you get better answers to this and maybe also some of your future questions. –  Andrey Vihrov May 11 '11 at 16:29
1  
it seems like what you're describing is a figure with a caption. You might find the figure environment and \caption command useful. –  Matthew Leingang May 11 '11 at 16:31
1  
What is a groder anyway? –  Matthew Leingang May 11 '11 at 17:12
    
@Matthew: Might be a typo. In the text he says "into a border". The urban dictionary lists 'groder' but it doesn't make sense here. –  Martin Scharrer May 11 '11 at 17:18
1  
@Martin: Don't think I didn't check the Urban Dictionary. –  Matthew Leingang May 11 '11 at 19:47
add comment

1 Answer

up vote 5 down vote accepted

This is a very basic question covered in every LaTeX beginner's guide. I recommend you to read such a guide if you haven't done it yet.

Use a figure environment

\begin{figure}[!htb]
\centering
\includegraphics[width=0.8\textwidth]{picture-file-name}
\caption{Some description of the picture}
\end{figure}
share|improve this answer
1  
The guide a read told me not to use the optional argument of figure by default :-) which IMHO is a bad habit from users migrating from Word. At least it was in my case ;-) –  Martin Scharrer May 11 '11 at 17:00
    
@Martin: But the automatic placing isn't very good too. I prefer to leave out placement specifiers while developing a document, and then, after the text is written, fine-tune the positions where needed. But I agree !htb is rather aggressive — one should try t, b or p first. –  Andrey Vihrov May 11 '11 at 17:09
    
@Andrey: The default specifier is stored in \fps@figure (and \fps@table) and can be changed globally by redefining this macro, which removes the need to always use the optional argument. –  Martin Scharrer May 11 '11 at 17:12
    
1) does \includegraphics requirew any special \usepackage because apparantly my TeXworks app compiles it all but does not output an image into pdf=( –  Kabumbus May 11 '11 at 17:39
    
@Kabumbus: It needs the graphicx package. But note that pdflatex doesn't support EPS images. It needs to be converted with e.g. epstopdf first. Some modern versions of pdflatex do this automatically if the -shell-escape option is enabled. –  Martin Scharrer May 11 '11 at 18:10
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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