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?

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 Jan 12 '17 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 – David Carlisle Jan 12 '17 at 7:47
  • Unfortunately this doesn't work if you have a \chapter*{Chapter 2} instead of \chapter{Chapter 2}. Any alternative? – Vangelis Tasoulas Mar 22 '17 at 18:15
  • Just solved my problem. Use \@makeschapterhead instead of \@makechapterhead when you have the starred version of \chapter – Vangelis Tasoulas Mar 22 '17 at 18:21
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.