I am using tocloft and subcaption package, and I would like to suppreess page numbers and dot line for subfigures in LOF.

I know, if one uses tocloft and subfigure package, this can be done with the next command:


So, I would like to emulate this command with subcaption package. The point is that I have all the subfigures done with subcaption package, and I would not like to change the code of all them.

2 Answers 2


Here's one possibility which enables you to use all of tocloft features for subfigure entries when using the subcaption package; in particular, you can suppress the page numbers and the leaders (the dots from the entry to the page number):


  \ifnum \c@lofdepth > \toclevel@subfigure
    \vskip \cftbeforesubfigskip
    {\leftskip \cftsubfigindent\relax
     \rightskip \@tocrmarg
     \parfillskip -\rightskip
     \parindent \cftsubfigindent\relax\@afterindenttrue
     \@tempdima \cftsubfignumwidth\relax
     \let\@cftbsnum \cftsubfigpresnum
     \let\@cftasnum \cftsubfigaftersnum
     \let\@cftasnumb \cftsubfigaftersnumb
     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
     {\cftsubfigfont #1}\nobreak
  \setlength\cftbeforesubfigskip{\z@ \@plus.2\p@}



\caption{test subfigure A}
\caption{test subfigure B}
\caption{Test figure}

\caption{test subfigure C}
\caption{test subfigure D}
\caption{Test figure}


enter image description here

  • It works perfectly.
    – Gitano
    Aug 23, 2013 at 3:14

The tocloft package can offer a bunch of useful macro to tweak the formatting of subfigures if you pass the option subfigure to it.

In this case the package will assume that you use the subfigure package and that the counters lofdepth and lotdepth are defined by the subfigure package.

But if you want to use packages tocloft with subcaption instead of subfigure the said counters are not created by tocloft nor subcaption packages.

Just load the packages and define these counters to make everything works properly.


% here you have access to all tocloft subfig macro

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .