17 Mayıs 2011 Salı

a few latex tips

unordered list sample in latex:

\begin{itemize}
\item \emph{item1: }bla...
\item \emph{item2:} bla bla...
\item \emph{item3:} bla bla bla...
\end{itemize}

defining a figure in latex:
\begin{figure}
\centering
\scalebox{0.5} {\includegraphics{myPhoto.PNG}}
\caption{My Photo Description}
\label{fig:myPhoto}
\end{figure}

note: don't forget to put this in document beginning:
\usepackage[pdftex]{graphicx}

.. and reference it:
.. as in Figure ~\ref{fig:myPhoto}

the point here is putting label after caption.. otherwise, you may not reference the figure correctly.. for more, see http://www.latex-community.org/forum/viewtopic.php?f=45&t=3823