singlespacing in chapter titles, memoir class

88 views
Skip to first unread message

JT

unread,
Jun 29, 2007, 1:48:57 PM6/29/07
to LaTeX Users Group
I noticed that when doublespacing my document, the chapter titles were
doublespaced as well. It takes up a little more room than I like, so
I started trying to figure out how to singlespace the titles only.
Unfortunately, I don't appear to understand the \makechapterstyle
command in memoir class well enough to renew the appropriate commands.

A minimal example is below. I've tried renewing the chaptitlefont to
include singlespacing, but that leaves a large gap between the first
hrule and the chapter title. I've struggled with renewing the other
commands (such as \printchaptertitle) but haven't had any luck.

I assume that I'm missing something simple? Thank you in advance for
any help!

%-----------------------------------
\documentclass{memoir}
\DisemulatePackage{setspace}
\usepackage{setspace}

\begin{document}

\doublespacing
\chapterstyle{demo}
\renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily\singlespacing}

\chapter{Initial Chapter That Has a Really, Really Long Title}

I just want to make sure this is double-spaced correctly. I just want
to make sure this is double-spaced correctly. I just want to make
sure this is double-spaced correctly. I just want to make sure this
is double-spaced correctly. I just want to make sure this is double-
spaced correctly. I just want to make sure this is double-spaced
correctly.

\end{document}

Werner Grundlingh

unread,
Jun 29, 2007, 3:48:05 PM6/29/07
to LaTeX Users Group

Replace your \renewcomand{\chaptitlefont}{...} with
\renewcommand{\chaptitlefont}{\removelastskip\vskip-\onelineskip
\normalfont\Huge\sffamily\singlespacing}
I just read through the memoir.cls documentclass and found the
definition of the demo chapter heading style. There I found the
relavent skip lengths and 'subtracted' them.

Werner

JT

unread,
Jul 2, 2007, 9:15:23 AM7/2/07
to LaTeX Users Group
Werner, your help is as always very much appreciated, and not just by
me! Works like a charm.

JT

Reply all
Reply to author
Forward
0 new messages