TransWikia.com

Small Capitals in contentsname and addcontentsline

TeX - LaTeX Asked on December 21, 2021

How can I use small capitals to write the TABLEs in contentsname and addcontentsline?

documentclass{book}
renewcommand{contentsname}{TABLE of contents}
begin{document}
tableofcontentsaddcontentsline{toc}{chapter}{TABLE of contents}
chapter{text}
section{text}
text
end{document}

One Answer

Of course, textsc{Table} should give the desired result... but unfortunately it doesn't.

That's discernible from this warning warning where the default font (CMR) seems to miss the sc shape.

You may use the times package (or fourier, palatino, bookman, ...)

documentclass{book}
usepackage{times}   %% or use {fourier} {palatino} {bookman} ...

renewcommand{contentsname}{textsc{Table} of contents}
begin{document}
tableofcontentsaddcontentsline{toc}{chapter}{textsc{Table} of contents}
chapter{text}
section{text}
text
end{document}

to get this kind of results, which I hope, is close to what you want :

Answered by Partha D. on December 21, 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