Hi everyone,
I would like to reduce the automatic space that latex creates in the header of chapters, table of contents, references etc.
In fact I reduced successfully the header for the entire document but the code doesn't work in chapters, table of contents etc.
I've been searching in this forum even in Google but I didn't find any solution.
Can anyone know how to do?
Thanks for your feedback
Cheers
Rodrigue
General ⇒ I want latex to reduce the space in the header of chapters table of contents etc.
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
I want latex to reduce the space in the header of chapters table of contents etc.
This depends on the class you are using and if you are using a package for the chapter/section titles like titlesec also on that package. So without
minimal working example I can only gamble and give some general information: With the standard classes book and report you need an extra package to change the space before the chapter title. See e.g. the already linked titlesec. With a KOMA-Script class you can simply use

\RedeclareSectionCommand
to change that space. See the manual for more information. memoir also has its own commands so configure the chapter title. See the manual for more information. Other classes may also have similar features (again, see the manual) or allow to use titlesec.Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

I want latex to reduce the space in the header of chapters table of contents etc.
\documentclass[a4paper, 12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{natbib}[square,sort,comma,numbers]
\usepackage[french]{babel}
\usepackage{hyperref}
\usepackage{titlesec}
\begin{document}
\tableofcontents
\listoftables
\listoffigures
\chapter{}
\end{document}
Hi Ijon Tichy and thanks for your reply. Find above the MWE.
I also went through the links you suggested me but I've been interrupted while trying to download the packages. However, I've already installed the titlesec package but the problem is still there.
Let me reformulate it.
In the above MWE, you may look at the top position of "Table des matières", "Liste des tableaux", Liste des figures" and "Chapitre 1". I want to reduce the space in the header which is too large to me.
How can i do that?
\usepackage[utf8]{inputenc}
\usepackage{natbib}[square,sort,comma,numbers]
\usepackage[french]{babel}
\usepackage{hyperref}
\usepackage{titlesec}
\begin{document}
\tableofcontents
\listoftables
\listoffigures
\chapter{}
\end{document}
Hi Ijon Tichy and thanks for your reply. Find above the MWE.
I also went through the links you suggested me but I've been interrupted while trying to download the packages. However, I've already installed the titlesec package but the problem is still there.
Let me reformulate it.
In the above MWE, you may look at the top position of "Table des matières", "Liste des tableaux", Liste des figures" and "Chapitre 1". I want to reduce the space in the header which is too large to me.
How can i do that?
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
I want latex to reduce the space in the header of chapters table of contents etc.
Which space exactly, the vertical space before the chapter titles? If so, see, e.g., optionIn the above MWE, you may look at the top position of "Table des matières", "Liste des tableaux", Liste des figures" and "Chapitre 1". I want to reduce the space in the header which is too large to me.
compact
or command \titlespacing
(don't miss the note at the end of the description) in the titlesec manual.BTW: hyperref should be loaded after titlesec (usually hyperref has to be the last package, but there are some exceptions). And options to natbib should be before the package name not after it (there is also an optional argument at the end, but it has another meaning). And also see the warning:
Package french.ldf Warning: OT1 encoding should not be used for French. (french.ldf) Add \usepackage[T1]{fontenc} to the preamble (french.ldf) of your document; reported on input line 8.
Code
button or the Select code
selector to tag your code.\documentclass[a4paper,12pt]{report} \usepackage[utf8]{inputenc}% Only needed for out-dated LaTeX versions. \usepackage[square,sort,comma,numbers]{natbib}% biblatex would be a good alternative \usepackage[T1]{fontenc}% See the warning of french.ldf without this package. \usepackage[french]{babel} \usepackage{titlesec} \usepackage{hyperref} \titleformat{\chapter}[display]{\Huge\bfseries}{\chaptertitlename~\thechapter}{20pt}{}{}% see titlesec manual \titlespacing*{\chapter}{0pt}{0pt}{\baselineskip}% see titlesec manual \begin{document} \tableofcontents \listoftables \listoffigures \chapter{Test} \end{document}
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

I want latex to reduce the space in the header of chapters table of contents etc.
Thank you very much.
I'm talking about the vertical Space. I will let you know whether your description provides me the best solution.
Thanks again
I'm talking about the vertical Space. I will let you know whether your description provides me the best solution.
Thanks again