General ⇒ Change reference labels
Change reference labels
Just working on my thesis. I am using the book document style and everything is
set out in chapters.
Currently, my appendix is set up as a chapter as well. Everything looks find but
rather than my figures and tables in appendix being captioned with "Table 6.1: blah"
I need them to be labeled "Table A", "Figure A" etc.
As I am using a template for my thesis I am about confused about how the system works. Is there an easy way to change the numbering of references in one particular chapter.
Any help, or a nudge in the right direction would be great.
Regards,
Dan
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Change reference labels
if you want to change the numbering I recommend to use the chngcntr package, it allows numbering within sections or chapters and also to remove this behavior.
Further you could modify a counter by yourself using \setcounter:
Code: Select all
\setcounter{table}{5}
To change the appearance of the table or figure counter redefine \thetable or \thefigure, for example:
Code: Select all
\renewcommand*\thetable{\Alph{table}}
Stefan
Change reference labels
So something like this:
Code: Select all
\documentclass[oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\begin{document}
% Normal part
\chapter{Blah}
Blah blah blah
\appendix % Appendix starts here
\chapter{Blah}
\begin{table}
\caption{Blah.}
\begin{tabular}{|c|c|c|c|c|}
\hline
& & & & \tabularnewline
\hline
\hline
& & & & \tabularnewline
\hline
& & & & \tabularnewline
\hline
& & & & \tabularnewline
\hline
& & & & \tabularnewline
\hline
\end{tabular}
\end{table}
\end{document}
ChE
Change reference labels
Thanks very much for the reply, however I am still having a bit of trouble.
Basically, what I am doing is banging all my figures, listings, tables in chap7.tex
During the other chapters I am using something like:
Code: Select all
\textit{(see Table \ref{table})}
I have tried the \appendix suggestion and I am currently investigating the chngcntr package.
Anymore advise would be appreciated I will let you know if I find the solution

As always, thanks very much.
~ Dan