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]{}

  • 5
    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
    Commented Jan 7, 2012 at 21:16
  • 8
    And please use a better title for your questions. Commented Jan 7, 2012 at 22:21
  • The spacing tag seems to be appropriate for your first question.
    – lockstep
    Commented Jan 8, 2012 at 3:11

1 Answer 1


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


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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .