Hi!
How can I remove the space before the "References" or "Bibliography" heading using the book documentclass? Also, I need to to the same thing for the "Contents", "List of Figures" and "List of Tables" headings.
Thank you!
Text Formatting ⇒ Remove space before the lists (bibliography, LoF, LoT, ToC)
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Remove space before the lists (bibliography, LoF, LoT, ToC)
Hi cdrueda,
these headings are like chapter headings and can be adjusted using the titlesec package, have a look at its documentation. Use the commands \titleformat and \titlespacing.
Stefan
these headings are like chapter headings and can be adjusted using the titlesec package, have a look at its documentation. Use the commands \titleformat and \titlespacing.
Stefan
LaTeX.org admin
Re: Remove space before the lists (bibliography, LoF, LoT, T
Thank you, but I still don't get it.
This is the way I formatted the Chapter titles:
\titleformat{\chapter}[display]
{\bfseries\Huge}
{%
\vskip-3em
% \titlerule
\filright
\Large\chaptertitlename\
\Large\thechapter}
{0mm}
{\filright}
the \vskip command does the job for the chapter. However, I don't know how to do the same thing for toc, lof, loc, and bibliography. Please help me out here, it's for my thesis.
Thanks!
This is the way I formatted the Chapter titles:
\titleformat{\chapter}[display]
{\bfseries\Huge}
{%
\vskip-3em
% \titlerule
\filright
\Large\chaptertitlename\
\Large\thechapter}
{0mm}
{\filright}
the \vskip command does the job for the chapter. However, I don't know how to do the same thing for toc, lof, loc, and bibliography. Please help me out here, it's for my thesis.
Thanks!
Remove space before the lists (bibliography, LoF, LoT, ToC)
Hi,
it's better to control the spacing before and after the sectional units' titles with \titlespacing, and not with \titleformat. Take a look at the following example:
Changing the second argument you can obtain the desired vertical spacing before the chapter titles.
it's better to control the spacing before and after the sectional units' titles with \titlespacing, and not with \titleformat. Take a look at the following example:
Code: Select all
\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\bfseries\Huge}
{\filright\Large\chaptertitlename\ \thechapter}
{0mm}{\filright}
\titlespacing*{\chapter}
{0pt}{-10pt}{40pt}
\begin{document}
\tableofcontents
\chapter{Test chapter}
test
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Remove space before the lists (bibliography, LoF, LoT, T
Thank you!
But this takes care of the chapter titles only. I need to remove the space above the lof, lot, and bibliography titles.
Thank you!
But this takes care of the chapter titles only. I need to remove the space above the lof, lot, and bibliography titles.
Thank you!
Remove space before the lists (bibliography, LoF, LoT, ToC)
As Stefan_K mentioned, the book document class internally builds the ToC, LoF, LoT and Bibliography titles by using \capther*, so the \titlespacing command do affects them.cdrueda wrote:...But this takes care of the chapter titles only. I need to remove the space above the lof, lot, and bibliography titles...
Take a look at the following example:
Code: Select all
\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\bfseries\Huge}
{\filright\Large\chaptertitlename\ \thechapter}
{0mm}{\filright}
\titlespacing*{\chapter}
{0pt}{-10pt}{40pt}
\begin{document}
{
\titlespacing*{\chapter}
{0pt}{-80pt}{40pt}
\tableofcontents
\listoffigures
}
\chapter{Test chapter}
test
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...