Currently, I have an issue that in my thesis the numbering of listings in the appendix is not as desired. I currently only get Listing 1 as the numbering of the first listing in the first Appendix, instead of Listing A.1. For figures and tables, I already achieve the desired behavior, that is, the figures and tables get, for instance, the following numbering: Figure A.1.
I just discovered that at the appendix I use the following Latex commands to, obviously, control the behavior of figure and table numbering:
\renewcommand{\thesection}{\Alph{section}}
\renewcommand\thetable{\Alph{section}.\arabic{table}}
\renewcommand\thefigure{\Alph{section}.\arabic{figure}}
What do I have to add to get this to work for listings in the appendix?
\renewcommand{\thelstlisting}{\Alph{section}.\arabic{lstlisting}}
– beta Jun 16 '16 at 12:56\thesection
as part of\thefigure
,\thetable
and\thelstlisting
, not\Alph{section}
. That implies a recursive definition which will change with every change to\thesection
. – Werner Jun 16 '16 at 18:28