Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to have my TOC entries in Small Caps. I cant get by using \textsc{\tableofcontents} rather than \tableofcontents but this adds a blank page before TOC. Any help will be highly appreciated. Thanks

% Document Class
\documentclass[a4paper,12pt]{book}

% Packages
\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{titlesec}
\titlespacing*{\chapter}{0pt}{-50pt}{20pt}
\titleformat{\chapter}[display]{\normalfont\scshape\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}


\titleformat{\section}
  {\normalfont\scshape\Large\bfseries}{\thesection}{15pt}{\LARGE}


\titleformat{\subsection}
  {\normalfont\scshape\large\bfseries}{\thesubsection}{15pt}{\Large}



\begin{document}

\tableofcontents


\chapter{First Chapter}

\section{Introduction}

% Blind Text
\blindtext[1]


\section{Material \& Method}

% Blind Text
\blindmathpaper


\chapter{Second Chapter}

\section{Introduction}

% Blind Text
\blindtext[1]


\section{Material \& Method}

% Blind Text
\blindmathpaper


% End Document
\end{document}
share|improve this question
    
This may not work, but try {\scshape\tableofcontents} instead. –  Sean Allred Jul 23 at 21:28

1 Answer 1

up vote 6 down vote accepted

You can use tocloft and its \cftXfont family of commands:

\documentclass[a4paper,12pt]{book}

% Packages
\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{titlesec}
\usepackage[titles]{tocloft}

\titlespacing*{\chapter}{0pt}{-50pt}{20pt}
\titleformat{\chapter}[display]{\normalfont\scshape\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}


\titleformat{\section}
  {\normalfont\scshape\Large\bfseries}{\thesection}{15pt}{\LARGE}


\titleformat{\subsection}
  {\normalfont\scshape\large\bfseries}{\thesubsection}{15pt}{\Large}

\renewcommand\cftchapfont{\scshape}
\renewcommand\cftsecfont{\scshape}

\begin{document}

\tableofcontents


\chapter{First Chapter}

\section{Introduction}

% Blind Text
\blindtext[1]


\section{Material \& Method}

% Blind Text
\blindmathpaper


\chapter{Second Chapter}

\section{Introduction}

% Blind Text
\blindtext[1]


\section{Material \& Method}

% Blind Text
\blindmathpaper


% End Document
\end{document}

An image of the resulting ToC:

enter image description here

Notice that tocloft was loaded using the titles option:

\usepackage[titles]{tocloft}

so the lists (ToC, LoF and LoT) titles will follow your redefinition using titlesec.

share|improve this answer
    
Probably one would also want \renewcommand\cfttoctitlefont{\normalfont\scshape\huge\bfseries} in this document, to match all the other chapter titles. –  Dan Jul 23 at 22:08
    
@Dan No need for that. ALl that is required is to load tocloft with the titles option (in the exmaple you won't see the difference since the defualt font doesn't provide the boldface smallcaps combination); I edited my answer adding a remark about this. –  Gonzalo Medina Jul 23 at 22:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.