1

I am using the following document:

\documentclass[12pt,a4paper]{report} \usepackage{fontspec} \usepackage{xunicode} \usepackage{polyglossia} \usepackage[maxlevel=3]{csquotes} \usepackage{graphicx} \usepackage[style=authoryear, language=french]{biblatex} \setmainfont[Ligatures=TeX]{FreeSerif} \setmainlanguage{french} \setotherlanguage{english} \usepackage{placeins} \usepackage{setspace} \onehalfspacing \usepackage{etoolbox} \makeatletter \patchcmd{\@dottedtocline} {\rightskip\@tocrmarg} {\rightskip\@tocrmarg plus 4em \hyphenpenalty\@M} {}{} \makeatother \usepackage[raggedright]{titlesec} 

How can I reduce the size of the subsection and subsubsection titles in the Table of Contents ?

1 Answer 1

2

Since you are already using titlesec.sty, you could use the companion package titletoc.sty and customize your TOC:

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{lmodern,lipsum} \usepackage{titletoc} \titlecontents{section}[1.5pc] {\bfseries\filright} {\contentslabel{1.5pc}}{\hspace*{-1.5pc}} {\mdseries\titlerule*[0.7pc]{.}\bfseries\contentspage} \titlecontents{subsection}[3.5pc] {\addvspace{0.1pc}\filright\footnotesize} {\contentslabel{2pc}}{\hspace*{2pc}} {\titlerule*[0.7pc]{.}\contentspage} \titlecontents{subsubsection}[5.5pc] {\addvspace{0.1pc}\filright\tiny} {\contentslabel{2pc}}{\hspace*{-2pc}} {\titlerule*[0.7pc]{.}\contentspage} \begin{document} \tableofcontents \section{Section} \lipsum \subsection{Sub-Section} \lipsum \subsubsection{Subsub-Section} \lipsum \end{document} 

enter image description here

3
  • I also need to enlarge the space between the section and the subsection numbers and their title. For now, I have the following results: "11.2Lorem ipsum" or "11.2.2Lorem ipsum" Commented Oct 28, 2015 at 19:17
  • I fount it myself using the \usepackage{tocloft} with \setlength{\cftbeforesecskip}{6pt} Commented Oct 28, 2015 at 19:35
  • @Leo - You can achieve that also by customizing the values of \titlecontents{subsection}[4.5pc] and {\contentslabel{3pc}}. Check the documentation of titlesec for more information. Further, I suggest you use either tocloft.sty or titletoc.sty and not both at same time. Commented Oct 28, 2015 at 20:45

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.