The title pretty much says it all: It is possible to add arbitrary vertical space after the title of the ToC or bibliography page within the report document class?
Asked
Active
Viewed 2,011 times
4
2 Answers
4
It is possible with titlesec to specify different formatting for numbered and unnumbered versions of sectioning commands: Use the numberless key within the first argument of \titleformat and/or \titlespacing. See p. 9 of the titlesec manual for details. (Note: For \titlespacing to work with \chapter or \part, you have to use \titleformat as well.)
\documentclass{report}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename~\thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{50pt}{40pt}
\titlespacing*{name=\chapter,numberless}{0pt}{200pt}{40pt}
\begin{document}
\tableofcontents
\chapter{foo}
\begin{thebibliography}{9}
\bibitem{1} A bibitem.
\end{thebibliography}
\end{document}
lockstep
- 250,273
-
With
sectionsyou either have to definetitleformatfirst to usetitlepacing– A.Ametov May 25 '22 at 13:20
2
The TOC and References use \chapter* in the report class. You can use the titlesec package to format \chapter* or \section* headings (see lockstep's answer) or you could simply modify the code from the class itself:
Add the following to your preamble, and adjust the spacing as you need:
\makeatletter
\def\@makeschapterhead#1{%
\vspace*{50\p@}% space before the title
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@ % space after the title
}}
\makeatother
Alan Munn
- 218,180
-
I have to disagree -- it is possible to define specific formatting for the starred versions of sectioning commands with
titlesec. See my answer. – lockstep Mar 08 '11 at 07:09 -
Thanks. I wasn't aware of that option despite having used
titlesecfor years. I've edited my answer to be an alternative. – Alan Munn Mar 08 '11 at 12:22
titlesecpackage. See e.g. this question: Formatting each part/section/subsection – Alan Munn Mar 08 '11 at 05:25