Text FormattingFormatting part title one word per line

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Bram
Posts: 20
Joined: Sat Jul 14, 2012 12:54 pm

Formatting part title one word per line

Post by Bram »

I would like to format the part title (in a book) one word per line, something like:

This
is
a
part
title

I want to keep the title itself untouched, as it also appears in the table of contents.
Any help would be appreciated. This is my code:

Code: Select all

\documentclass{memoir}
\begin{document}
\part{This is a part title}
\chapter{This is a chapter title}
This is some body text
\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.

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

Formatting part title one word per line

Post by Stefan Kottwitz »

This can be solved by
  • Inserting line breaks via \\ into the title
  • Adding the title without line breaks as optional argument, which will be used by the table of contents

Code: Select all

\part[This is a part title]{This\\is\\a\\part\\title}
Stefan
LaTeX.org admin
Post Reply