GeneralFigure referencing not matching figure numbering

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Monkey D
Posts: 22
Joined: Thu Nov 01, 2007 6:12 pm

Figure referencing not matching figure numbering

Post by Monkey D »

First of all I must say I tried searching the board for "+figure +numbering" but the system said it ignored "figure"... so not much luck...

My problem is that, I have figures numbered like "Figure 2.5" (which is what I want), but when I refer to them the text shows "In Figure 2.3.1 the ..."

What is wrong with \ref ???
I would like everything (figs, tables, equations, etc) to be numbered as <chapter>.<counter> (which is what it seems to happen now) and be referenced in the same way.

Thank you.

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

Figure referencing not matching figure numbering

Post by localghost »

Your information is almost useless. In such cases you should get used to providing a minimal working example (MWE) which reproduces the undesired behaviour. Otherwise is nearly impossible to help.


Best regards
Thorsten
Monkey D
Posts: 22
Joined: Thu Nov 01, 2007 6:12 pm

Re: Figure referencing not matching figure numbering

Post by Monkey D »

THANK YOU sommerfee! :mrgreen:
I was using label before caption :(


BTW, is there any advantage in having label inside caption? (instead of being after)
Post Reply