0

I want to have equal spaces between my caption number and caption text on the list of figures and list of tables. I tried modifying the lines as given Here But the list of figures have less space in the table of contents compared to the List of tables. Here is my MWE

   \documentclass{report}
    \usepackage{etoolbox}
    \usepackage{lipsum}
    \usepackage{tocloft}
    \makeatletter
    \patchcmd{\@caption}{\csname the#1\endcsname}{\textbf{\csnamefnum@#1\endcsname:}}{}{}
    \renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{5.6em}} 
    \let\l@table\l@figure 
    \makeatother
    \begin{document}
    \listoffigures
    \listoftables
    \begin{figure}[h]
    \caption{A figure}
    \centering xyz
    \end{figure}
    \lipsum[1-1]
    \begin{table}[h]
    \caption{Some table}
    \centering abc
    \end{table}
    \end{document}

Is it possible to have equal spacing on both tables and figures?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.