Document Classesmemoir | Onehalf spaced Heading in Margin

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
rdonohoe
Posts: 3
Joined: Fri Sep 09, 2011 5:33 pm

memoir | Onehalf spaced Heading in Margin

Post by rdonohoe »

Hi,

I have the memoir class set up for my thesis and have used the example of whole \paragraph headings into the margin given on page 109 of the class manual.

Code: Select all

\newcommand{\marginbox}[1]{%
\parbox[t][0pt]{6em}{\itshape\raggedleft\mbox{} #1}}
\newcommand{\marginhead}[1]{%
{\llap{\marginbox{#1}\kern0.5em}}}
\setparaindent{0em}
\setafterparaskip{0em}
\setparaheadstyle{\marginhead}
\setparahook{\setsecnumformat{\csname the##1\endcsname\ }}
\paragraph{Hang the whole heading in the margin}
However, in my rendered PDF the heading is onehalfspaced, because the substantive text is too, and it doesn't seem to be in a smaller font size or in \itshape.

Any advice would be great.

R

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

Post Reply