Page LayoutChapter Format

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jpehs
Posts: 5
Joined: Sat Apr 11, 2009 10:00 am

Chapter Format

Post by jpehs »

I'm publishing a book with a publisher that requires this simple formatting for chapter titles:
  • Chapter number: 14pt, flush left on text line 2
  • 0.5pt vertical rule x 2 picas centred between chapter number and chapter title in both directions
  • Chapter title: 14/19pt, indented 3 picas on text line 2
An example chapter title, provided by the publisher, looks like this:
Screen Shot 2011-10-21 at 08.25.05.png
Screen Shot 2011-10-21 at 08.25.05.png (4.98 KiB) Viewed 3584 times
I'm trying to reproduce this with the titlesec package with the following code:

Code: Select all

\usepackage[rigidchapters]{titlesec}
	
\titleformat{\chapter}[block]
{\normalfont\LARGE}
{\makebox[3pc][l]{\LARGE\thechapter}}
{0pt}
{\LARGE}
\titlespacing*{\chapter}{0pt}{0pt}{82pt}
This handles the font size correctly, and the vertical spacing between the chapter title and the chapter text (the spacing before the title should be on line 2 of the text but a spacing of 0pt seems to produce this: I don't know why). But I've got two problems:
  1. I don't know how to create a vertical line, 0.5pt wide and 2pc high
  2. I don't know how to centre that line between the RH side of the chapter number and the LH side of the chapter title.
I'd be very grateful if anyone could help.
Last edited by jpehs on Sun Oct 23, 2011 4:37 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Chapter Format

Post by localghost »

jpehs wrote:[…] But I've got two problems:
  1. I don't know how to create a vertical line, 0.5pt wide and 2pc high
  2. I don't know how to centre that line between the RH side of the chapter number and the LH side of the chapter title.
[…]
Both issues are solved with the below code. Note that the vertical line will always be centered between the number and the heading of the chapter. This effect becomes clear for two-digit chapter numbers.

Code: Select all

\documentclass[12pt,english]{report}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[rigidchapters]{titlesec}
\usepackage{blindtext}
   
\titleformat{\chapter}
{\normalfont\LARGE}
{\makebox[3pc][l]{\LARGE\thechapter\hfil\rule[-6pt]{0.5pt}{2pc}}}
{0pt}
{\LARGE}
\titlespacing*{\chapter}{0pt}{0pt}{82pt}

\begin{document}
  \blinddocument
\end{document}
The packages babel (with its global language option) and blindtext are not part of the solution. They have only been used to create dummy text.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
jpehs
Posts: 5
Joined: Sat Apr 11, 2009 10:00 am

Re: Chapter Format

Post by jpehs »

Thanks, Thorsten: that's absolutely perfect and does precisely what I want. Very kind of you.
Post Reply