On my list of figures and list of tables pages there is no space between the figure number (or table number) and the caption. I would like to control this spacing. I would also like to control the alignment of the caption. So if the caption runs into other lines then these should be aligned with the first line. How can I control these?
Asked
Active
Viewed 121 times
\documentclass{...}and ending with\end{document}. Do you use any related packages? – Marco Daniel May 20 '13 at 13:38\documentclass[11pt,a4paper]{report}\usepackage{tocloft}\renewcommand{\cftfigfont}{Figure } \renewcommand{\cfttabfont}{Table }
– Peter Palmer May 20 '13 at 13:43\documentclass[11pt,a4paper]{report}\usepackage{tocloft}\begin{document}\renewcommand{\cftfigfont}{Figure }\renewcommand{\cfttabfont}{Table }\begin{document}– Peter Palmer May 20 '13 at 13:50\newlength{\mylenf}\setlength{\cftfignumwidth}{\dimexpr\mylenf+3.5em}\setlength{\cfttabnumwidth}{\dimexpr\mylenf+3.5em}helped to control the spacing. Can you give a suggestion to control the alignment of the caption when it runs into other lines? – Peter Palmer May 20 '13 at 14:15\renewcommand{\cftfigfont}{Figure } \renewcommand{\cfttabfont}{Table }` to insert the words Figure and Table before the figure (table) number.
– Peter Palmer May 20 '13 at 15:12\cftfigfontand\cfttabfontto add the words "Figure" and "Table" (those commands are only meant to change font attributes). Use these instead: `\renewcommand\cftfigpresnum{Figure\ } \renewcommand\cfttabpresnum{Table\ }\newlength\mylenf \settowidth\mylenf{\cftfigpresnum} \addtolength\cftfignumwidth{\mylenf} \addtolength\cfttabnumwidth{\mylenf}`
– Gonzalo Medina May 20 '13 at 19:34\cftfigpresnumundefined and\cfttabpresnumundefined. The following code found at link solves the problem\makeatletter \patchcmd{\@caption}{\csname the#1\endcsname}{\csname fnum@#1\endcsname:}{}{} \renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{7.0em}} \let\l@table\l@figure \makeatother. – Peter Palmer May 21 '13 at 03:32