Hi,
I need to refere to tables which numbers are set outside the document that I am writing. So I need to switch of the automatic numbering for specific tables and set those numbers myself. Labels should then point to the set number. I.E
First table in chapter 2 should be numbered: 1.3 and using labels to reference that label should return: table 1.3
I really don't know how to do this?
Thanks
Graphics, Figures & Tables ⇒ manual numbering of tables
NEW: TikZ book now 40% off at Amazon.com for a short time.
manual numbering of tables
Hi,
you can manually renumber your tables by redefining the \thetable command; take a look at the following simple example:
you can manually renumber your tables by redefining the \thetable command; take a look at the following simple example:
Code: Select all
\documentclass{book}
\begin{document}
\chapter{Test chapter}
\begin{table}[!ht]
\renewcommand\thetable{4.5}
\centering
\rule{4cm}{2cm}% to simulate an actual table
\caption{test table}
\label{tab:test}
\end{table}
As we see in table \ref{tab:test}...
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: manual numbering of tables
Thanks a lot to gmedina. That's exactly what I needed.
For others: Put
\renewcommand\thetable{4.5}
before the caption, else it woun't work.
For others: Put
\renewcommand\thetable{4.5}
before the caption, else it woun't work.
