Generalneed help with referencing figures in appendices

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ganda97
Posts: 13
Joined: Fri Mar 14, 2008 12:34 am

need help with referencing figures in appendices

Post by ganda97 »

I'm writing my dissertation and need help with appendices. My knowledge of Latex is very limited.

When I reference a figure, equation or a table in my appendices, I get an extra space (i.e. A .1 or B .4). For my regular chapters,
it looks like this: 1.2 , 5.4. Where is the extra space coming from? This extra space shows up when I reference the figure, on the caption, and in the TOC.


This is what I'm using on my main tex file:

\documentclass[12pt]{report}
\usepackage{amsmath,amsthm,amsfonts,amscd} % Some packages to write mathematics.
\usepackage{eucal} % Euler fonts
\usepackage{verbatim} % Allows quoting source with commands.
\usepackage{setspace}
\usepackage[usenames]{color}
\usepackage{colortbl}
\usepackage{hhline}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage[square]{natbib}


\begin{document}

\include{chap1}

\appendix
\include{appendix1}
\end{document}



Thanks for looking and any help you may provide,

Ariel

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

need help with referencing figures in appendices

Post by Juanjo »

There is nothing in the preamble of your tex file that justifies the extra space you report. The problem should be hidden somewhere in the code not shown. So, to be able to help you, you should try to build and provide a minimal working example.

Anyway, it seems that the problem concerns the definition of the \thechapter command, which prints the value of the chapter number, once the \appendix command has been processed. As a workaround, try to put after \appendix the following code:

Code: Select all

\renewcommand{\thechapter}{\Alph{chapter}}
Post Reply