Text FormattingMove Heading up for one Chapter

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
stefan_fuglsang
Posts: 12
Joined: Mon Oct 04, 2010 9:41 am

Move Heading up for one Chapter

Post by stefan_fuglsang »

In the report class, chapters begin 70mm from the top edge; that is fine for most purposes, but I need to move the \chapter line up in the appendix section, such that the chapter begins about 40 mm from the top edge.

How can I do this?
-- thanks
Stefan

Code: Select all

\documentclass[11pt,a4paper] {report} 
\usepackage[latin1]{inputenc}
\usepackage[english]{babel} 
\usepackage{blindtext}

\begin{document}
\chapter{Some blindtext}
\Blindtext
\chapter{Some more blindtext}
I would like the above chapter lines to move up a bit.\\
\Blindtext
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Move Heading up for one Chapter

Post by Stefan Kottwitz »

Hi Stefan,

there are several ways:
  • Use scrreprt of KOMA-Script instead, which provides many more features for customization. Here you could redefine \chapterheadstartvskip and it's done.
  • Use titlesec, \titleformat and \titlespacing.
  • Redefine \@makechapterhead of report.cls.
Stefan
LaTeX.org admin
stefan_fuglsang
Posts: 12
Joined: Mon Oct 04, 2010 9:41 am

Move Heading up for one Chapter

Post by stefan_fuglsang »

Thanks Stefan
This seems to do the trick:

Code: Select all

\documentclass[a4paper,11pt] {report} 
\usepackage[latin1]{inputenc}
\usepackage[english]{babel} 
\usepackage{blindtext}
\usepackage[compact]{titlesec}

\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}

\begin{document}
\chapter{Some blindtext}
\Blindtext
\titlespacing*{\chapter}{0pt}{-30mm}{40pt}
\chapter{Some more blindtext}
I have moved the chapter lines up a bit.\\
\Blindtext
\end{document}
Post Reply