Text FormattingHow refer to table?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

How refer to table?

Post by artemff »

In one table I declare

Code: Select all

\label{tab: currents1}
but

Code: Select all

\ref{tab: current}
print "??"
... How correctly refer to table? Reference and label is located in different sections.

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How refer to table?

Post by gmedina »

Hi,

use the exact same string as argument of both \label and \ref. Try using

Code: Select all

\label{tab:currents1}
and

Code: Select all

\ref{tab:currents1}
You will have to compile your document twice.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How refer to table?

Post by frabjous »

You'll need to compile at least twice before the number will show up. Otherwise, it should work. If not, post a minimal, but compiliable as is example of the problem.
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Re: How refer to table?

Post by artemff »

gmedina,frabjous thanks after 2 compilation all work.
Post Reply