I need a special format for the \listoffigures and the \listofalgorithms.
It should be:
List of Tables
Table 1: T1.....................1
and respective
List of Algorithms
Algorithm 1: A1.................1
For the Table I found:
\renewcommand*\cfttabpresnum{Table~}
\settowidth{\cfttabnumwidth}{\cfttabpresnum}
\renewcommand{\cfttabaftersnumb}{$\;$$\;$:~}
which works perfectly.
For the Algorithms I found
\let\oldlistofalgorithms\listofalgorithms
\renewcommand{\listofalgorithms}{%
\begingroup%
\let\oldnumberline\numberline%
\renewcommand{\numberline}{Algorithmus:~\oldnumberline}%
\oldlistofalgorithms%
\endgroup}
from here: Add the word "Algorithm" before each entry in the List of Algorithms
which also works. But the style is
List of Algorithms
Algorithm 1 A1................1
so the ":" is missing. I tried to solve it by myself but I couldn't figure out. Could you held me please?
Greets,Tony
Best Answer
The idea is to first register the list of algorithms so that
tocloft
is aware of it; this can be done, for example using egreg's answer to Customizing the list of listings generated by \lstlistoflistings?. The relevant part, adjusted to the case of algorithms, isOnce this has been done, you can use the
\cft...
family of commands to customize the entries format:An image of the list of tables:
An image of the list of algorithms: