I'd like to change my list of listings to match my list of figures, which I have changed using tocloft
:
\renewcommand{\cftfigfont}{\sffamily\mdseries\upshape}
Is there a way to do the same with my list of listings?
fontslistingstable of contents
I'd like to change my list of listings to match my list of figures, which I have changed using tocloft
:
\renewcommand{\cftfigfont}{\sffamily\mdseries\upshape}
Is there a way to do the same with my list of listings?
Best Answer
This is not possible using
tocloft
commands, but you can emulatetocloft
's behaviour by redefining\l@lstlisting
. (Note: If you don't want to redefine\cftfigpagefont
, you have to omit the second\sffamily
in my redefinition of\l@lstlisting
.)