1

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

\documentclass{book}
\renewcommand{\contentsname}{TABLE of contents}
\begin{document}
\tableofcontents\addcontentsline{toc}{chapter}{TABLE of contents}
\chapter{text}
\section{text}
text
\end{document}
0

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}
\tableofcontents\addcontentsline{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 :

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.