Graphics, Figures & TablesTable referencing problems

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zigga150
Posts: 7
Joined: Thu Sep 10, 2009 9:35 am

Table referencing problems

Post by zigga150 »

Hey guys, I am using a latex template for my thesis. I have my tables and figures in appendix (which is denoted as chapter 6 of the thesis).

The problem is that when I reference the tables I am getting something like: (see Table 6) for all the tables I reference. Where I should be getting (see table 6.1), (see table 6.2).

Any ideas on how I can get an extra digit on my table references.

Thanks in advance :)

~ Dan

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

Table referencing problems

Post by localghost »

A minimal working example (MWE) could have been helpful. Otherwise this could dwindle into a quiz. If not done yet, place labels behind captions in the source code.

Code: Select all

\begin{figure}[!ht]
  \centering
  \rule{6.4cm}{3.6cm}
  \caption{Dummy figure}\label{fig:dummy}
\end{figure}

Best regards
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Table referencing problems

Post by Stefan Kottwitz »

Hi Dan,

if you didn't use \caption like Thorsten did, the reference could point to the chapter number, here 6. Otherwise you could check if you've redefined the macro \thetable incorrectly, it could be redefined like

Code: Select all

\renewcommand\thetable{\thechapter.\arabic{table}}
forgetting \arabic{table} could cause it too, but I guess there could just \caption be missing or misplaced.

Stefan
LaTeX.org admin
zigga150
Posts: 7
Joined: Thu Sep 10, 2009 9:35 am

Re: Table referencing problems

Post by zigga150 »

Yep my labels and captions were around the wrong way. Thanks for the very prompt reply! :)

~ Dan
Post Reply