Home > Research > LaTeX: Fixing Wrong Figure Numbers

LaTeX: Fixing Wrong Figure Numbers

LaTeX: Fixing Wrong Figure Numbers | Terminally Incoherent.

I can’t tell how much time I’ve lost dealing with this freaking (in lack of better term) problem in LaTeX. Stupid solution for a stupid problem, but hey… it has a solution 😉

Whenever you use figures, always (and I mean ALWAYS EVER FOREVER ALWAYS) put\caption first, and \label second like this:

\begin{figure}[htp]
 	\centering
 		\includegraphics{image.eps}
 	\caption{Some Image}
 	\label{fig:some-image}
\end{figure}

Just blogging about it for my future reference.

Advertisements
Categories: Research Tags: ,
  1. September 22, 2011 at 2:24 pm
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: