TransWikia.com

How to typeset listof (revisited)

TeX - LaTeX Asked on April 28, 2021

I adapted the first thread to account for the answer. While reduced, the font size of listof still too big to be for what I want to accomplish, leaving the original question standing.

enter image description here

PS: I am aware there are packages dedicated to letters, but I use pkg{report} as it gives more control.

documentclass{report}
% usepackage{tocloft}
usepackage{mwe}
usepackage[titles]{tocloft}

newlistof
{foo}   % counter
{foo}   % file ext
{Encl.}   % title 

makeatletter
@cfthaschapterfalse
makeatother

begin{document}

noindent Dear Sir/Madam,

lipsum[1]

Sincerely,
%chapter*{Bar} % for comparison
listoffoo 

end{document}

One Answer

Don't use the titles option for tocloft.

% listoffontprob.tex  SE 555000

documentclass{report}
usepackage{tocloft} % use this, not the titles option
usepackage{mwe}
%usepackage[titles]{tocloft}

newlistof
{foo}   % counter
{foo}   % file ext
{Encl.}   % title 

renewcommand{cftfootitlefont}{smallitshape} % change the foo title font

makeatletter
@cfthaschapterfalse
makeatother

begin{document}

noindent Dear Sir/Madam,

lipsum[1]

Sincerely,
%chapter*{Bar} % for comparison
listoffoo 

end{document}

Use the tocloft provided method for changing the title font of the list.

Presumably you have set up for foo entries (see tocloft manual) and you can use tocloft methods for adjusting their appearance in the foo list to your needs.

Correct answer by Peter Wilson on April 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP