3

I am trying to change the width of figure numbers in the toc, lof, and lot. This works fine for the toc:

\documentclass{memoir}
\newcommand{\Fig}{\begin{figure}\caption{test}\rule{10pt}{10pt}\end{figure}}
\setlength{\cftchapternumwidth}{20mm}
\setlength{\cftsectionnumwidth}{20mm}
\setlength{\cftsectionindent}{0mm}
\begin{document}
\tableofcontents
\listoffigures
\chapter{One} \Fig
\section{OneOne} \Fig
\section{OneTwo} \Fig
\chapter{Two} \Fig
\section{TwoOne} \Fig
\section{TwoTwo} \Fig
\end{document}

But the list of figures is unchanged; how can I change that, too? Here is my output:

enter image description here

5

You can use

\setlength{\cftfigurenumwidth}{20mm}
\setlength{\cfttablenumwidth}{20mm}

A complete example:

\documentclass{memoir}
\newcommand{\Fig}{\begin{figure}\caption{test}\rule{10pt}{10pt}\end{figure}}
\setlength{\cftchapternumwidth}{20mm}
\setlength{\cftsectionnumwidth}{20mm}
\setlength{\cftfigurenumwidth}{20mm}
\setlength{\cfttablenumwidth}{20mm}
\setlength{\cftsectionindent}{0mm}
\begin{document}
\tableofcontents
\listoffigures
\chapter{One} \Fig
\section{OneOne} \Fig
\section{OneTwo} \Fig
\chapter{Two} \Fig
\section{TwoOne} \Fig
\section{TwoTwo} \Fig
\end{document}

enter image description here

4
  • Great! I have been looking for that for days! But where do I find this? It's not in memoir.cls, nor in memman.pdf. – Wybo Dekker Sep 18 '12 at 13:52
  • 1
    @WyboDekker yes, it is. In Table 9.3 (page 162) of memman you see the various values for the K placeholder in the \cftX... family of commands; amongst them you find figure and table – Gonzalo Medina Sep 18 '12 at 13:56
  • Thanks - I missed that one, i.e. I didn't realize that that was what I needed. – Wybo Dekker Sep 18 '12 at 20:35
  • Table 9.3's on p150 now, but also search for cftKnumwidth. – joharr Jun 9 '15 at 21:30

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.