Graphics, Figures & TablesReference to figure.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zryw
Posts: 5
Joined: Sun Mar 20, 2011 1:58 pm

Reference to figure.

Post by zryw »

Hello.
I have a block of text finished by figure related with it. I need to refer in text to that figure, but console says
Warning: Reference undefined
and the two question marks is only I get. Is there any way to ref to the figure which is placed later than ref marking? Or will I have to lose readibility of code by sticking picture right before \ref{} in a block of text?

Thanks
Last edited by zryw on Sat Mar 26, 2011 12:29 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Reference to figure.

Post by localghost »

You certainly have done a second run as suggested in the log file.


Best regards and welcome to the board
Thorsten
zryw
Posts: 5
Joined: Sun Mar 20, 2011 1:58 pm

Re: Reference to figure.

Post by zryw »

Surprisingly second run worked. Many thanks! if only C++ compilation issues were so easy to handle... ;)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Reference to figure.

Post by localghost »

zryw wrote:Surprisingly second run worked. […]
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to bread before posting). Please keep that in mind for the future so that further reminders will not be necessary.
Post Reply