我正在使用以下文档:
\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}
如何减小目录中小节和小小节标题的大小?
答案1
由于您已经在使用titlesec.sty
,您可以使用配套包titletoc.sty
并自定义您的目录:
\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}