I need to add the word Figure
and Table
to list of tables and figures. I have the code below to obtain this but my code applies extra space to the first line of the text in the list of tables. All the lines should have no indent.
There are some answers about this topic but they are based on tocloft
. I have a thesis format, so I need a solution without tocloft
.
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\hspace{-1.5em}Table~\oldnumberline}%
\listoftables%
\section{A section}
\begin{table}[h]
\begin{centering}
\begin{tabular}{ccc}
$T_1$ & $T_2$\\
\hline
$75^\circ$ & $25^\circ$\\
\end{tabular}
\par\end{centering}
\caption{\lipsum[4]\label{tab_ref}}
\end{table}
\end{document}
\label
is inside the\caption
? – oliversm May 7 '20 at 13:24\label
in my main document, of course. – mert May 7 '20 at 13:27article
class would work with your unidentified thesis format? – Peter Wilson May 7 '20 at 16:53