TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Having made the changes Werner very helpfully suggested in the Separate table of appendices - pdf bookmarks & avoid previous chapter's format, my list is up and running but I have some spacing problems.

I now have an extra space before my figure and table numbers from the appendices. For example, A.1 in the table of contents. This means it no longer lines up with the lines from the main chapters. In the entry in the .lot file there is a space before { A.1}.

Misaglined List of Tables/Figures with entries from appendeices

Here is the a minimal working example (or at least my best shot at it):

\usepackage[colorlinks=true, allcolors=black]{hyperref}


\newcommand{\listappendixname}{List of Appendices}

  \chapter*{Appendix \theappendix\space #1}%
  \markboth{}{\MakeUppercase{Appendix}\ \theappendix\space #1}\par

  \section*{\thesubappendix.\space #1}%




\section{Get it done}
\caption[Short name for a figure]{Loooong name for the figure with lots of explanation}
\caption[Short name for my table]{Loooong name for the my  with lots of explanation}

\clearpage \phantomsection
\renewcommand{\thefigure}{ \theappendix.\arabic{figure}}
\renewcommand{\thetable}{ \theappendix.\arabic{figure}}

\myappendix{VBA code for Extension of Jaccard Measure}
\caption[Code for functions that do this and that]{}
\caption[Table showing not very much]{}

share|improve this question
As your two questions cover two separate matters, please remove one of them from this question and post it as a new question. This way, other users looking for help can find solutions more easily. Also don't forget to provide a minimal working example (MWE) for each question. – doncherry Jan 7 '12 at 21:16
And please use a better title for your questions. – Martin Schröder Jan 7 '12 at 22:21
The spacing tag seems to be appropriate for your first question. – lockstep Jan 8 '12 at 3:11
up vote 5 down vote accepted

There are spurious blank spaces in the redefinition of \thefigure and \thetable; use:


(in both cases I removed the blank spaces before \theappendix).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.