Sunday, 12 February 2012

LaTex

online equation editor
http://www.codecogs.com/latex/eqneditor.php

Images as Figures

There are many scenarios where you might want to accompany an image with a caption and possibly a cross-reference. This is done using the figure environment. The following code sample shows the bare minimum required to use an image as a figure.
\begin{figure}[htb]
\includegraphics{image.png}
\end{figure}
The above code extract is relatively trivial, and doesn't offer much functionality. The following code sample shows an extended use of the figure environment which is almost universally useful, offering a caption and label, centering the image and scaling it to 80% of the width of the text.
\begin{figure}[htb]
\centering
\includegraphics[width=0.8\textwidth]{image.png}
\caption{Awesome Image}
\label{fig:awesome_image}
\end{figure}
The figure environment is not exclusively used for images. More information on the figure environment and how to use it can be found in Floats, Figures and Captions.

No comments:

Post a Comment