2

I would like the section names in the TOC to be uniformly capatalised, either sentence case or not.

I achieve uniformity in section names now using sectsty and \allsectionsfont{\normalfont\scshape}

Is there anything similar for \tableofcontents?

This is my MWE,

\documentclass[paper=a4, fontsize=11pt]{scrartcl} % A4 paper and 11pt font size

\usepackage{sectsty} % Allows customizing section commands
\allsectionsfont{\normalfont\scshape} % Make all sections centered, the default font and small caps

\begin{document}
\tableofcontents
\section{Properly Formatted Section Name}
\section{Not so properly Formatted Section name}
\end{document}

enter image description here

1
1

No need of sectsty with scrartcl. Use

\addtokomafont{disposition}{\normalfont\scshape}

Code:

\documentclass[paper=a4, fontsize=11pt]{scrartcl} % A4 paper and 11pt font size

%\usepackage{sectsty} % Allows customizing section commands
%\allsectionsfont{\normalfont\scshape} % Make all sections centered, the default font and small caps

\addtokomafont{disposition}{\normalfont}               %% add here

\begin{document}
\tableofcontents
\addtokomafont{disposition}{\normalfont\scshape}        %% add here
\section{Properly Formatted Section Name}
\section{Not so properly Formatted Section name}
\end{document}

enter image description here

2
  • I would like to have the section name in the text as small caps, but in ToC, just normal sentence case (i.e 'Not So Properly Formatted Section Name') – Ash Apr 6 '15 at 15:43
  • @Ash See the edit. You have to use \addtokomafont twice. – user11232 Apr 6 '15 at 23:18

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.