Graphics, Figures & TablesNicer references

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
thedreamshaper
Posts: 44
Joined: Wed Aug 04, 2010 7:00 pm

Nicer references

Post by thedreamshaper »

I am creating a document and in doing so needs to reference alot of graphics, but it seems as if my document will reference the figure not by the figures number but by which section of text it belongs to!

How do i remedy this ?

I wil label my figures as such

Code: Select all

\begin{figure} 
	\label{fig:normalplots2}
	\centering
		\includegraphics[scale=0.5,angle=0]{normalplots.eps}
\caption{}
\end{figure}

and reference them like this

Code: Select all

\ref{fig:normalplots2}
Last edited by thedreamshaper on Tue Nov 30, 2010 4:23 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Nicer references

Post by meho_r »

Always put \label after \caption.
thedreamshaper
Posts: 44
Joined: Wed Aug 04, 2010 7:00 pm

Re: Nicer references

Post by thedreamshaper »

Your a life saver :)

as always ill be donating 1$ to the next homeless guy i see :)

(yes i hope the rest of the internet will start doing the same!)
Post Reply