2

I've searched this sites for similar questions, but can only find answers that remove the space for every chapter, whereas I only want it removed in one chapter. The MWE is quite minimal :)

\documentclass{book}
\begin{document}
\chapter{Chapter 1}
Hello
\chapter{Chapter 2}
Bonjour
\end{document}

How can I remove the white space above only one of the chapters?

2 Answers 2

4

enter image description here

\documentclass{book}
\begin{document}
\chapter{Chapter 1}
Hello

\makeatletter
\let\savedchap\@makechapterhead
\def\@makechapterhead{\vspace*{-1cm}\savedchap}
\chapter{Chapter 2}
\let\@makechapterhead\savedchap
\makeatletter

Bonjour

\chapter{Chapter 3}

Ol\'a

\end{document}
4
  • How can I adapt this to a document in which I have a master file and I then insert chapters using the ´\include´ command? I Have been trying most variations to no avail.
    – alonso s
    Commented Jan 12, 2017 at 3:15
  • @user2770617 the use of \include would not affect this at all, just put the redefinition either before the include or at the top of the included file, of course not all document classes necessarily define chapters in terms of \@makechapterhead Commented Jan 12, 2017 at 7:47
  • Unfortunately this doesn't work if you have a \chapter*{Chapter 2} instead of \chapter{Chapter 2}. Any alternative? Commented Mar 22, 2017 at 18:15
  • Just solved my problem. Use \@makeschapterhead instead of \@makechapterhead when you have the starred version of \chapter Commented Mar 22, 2017 at 18:21
2

David's answer is correct, but a bit too overcomplicated. A cleaner solution is, for the chosen chapter, to use:

\chapter{\vspace{-5cm}Chapter 2}

Adjust vspace{} accordingly.

1
  • Thanks. you've save me lots of time. Commented Jan 16, 2023 at 14:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .