Although I consider it absolutely pointless to prefix the numbers in the list of figures or list of tables with “figure” or “table”, because nobody would expect anything other than a figure or table in the corresponding directory, the KOMA-Script classes nevertheless offer the option listof=entryprefix
. The text used is then \listof*file extension*entryname
before the number, i.e. \listoflofentryname
for the list of figures and \listoflotentryname
for the list of tables. These are predefined in the KOMA-Script classes with \figurename
or \tablename
and are therefore dependent on the current language.
Example:
\documentclass[listof=entryprefix]{scrartcl}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\section{Example}
This is an example section with a figure and a table.
\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{A square of 1\,cm width and height}
\end{figure}
\begin{table}
\centering
\begin{tabular}{lr}
left & right \\
1 & 2 \\
\end{tabular}
\caption{A left aligned left column and a right aligned right column}
\end{table}
\end{document}
More information on the listof=entryprefix
option can be found in the user manual.