Created
June 29, 2012 06:35
-
-
Save ashwin/3016274 to your computer and use it in GitHub Desktop.
Inserting a figure in LaTeX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% At the beginning of the document | |
\usepackage{graphicx} | |
% At the place you want a figure | |
\begin{figure}[h] | |
\centering | |
\includegraphics[scale=0.3]{pics/foobar.png} | |
\caption{This is a caption for the figure.} | |
\label{foobar-figure} | |
\end{figure} | |
% Refer to the figure when you want to | |
As shown in Figure \ref{foobar-figure}, the Foobar is a good choice. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment