I have a document that looks the way I want on A4 paper with a 24 x 17 cm print area, but I need to modify it to have a text area of 19 cm high x 9.5 cm wide, with marginal notes 4 cm wide separated by 0.6 cm from the main text. As far as I can work out from the layout chapter of the memoir manual (which I have read and re-read all day), the following should produce the desired result:
\documentclass[a4paper]{memoir} %A4 paper because that what my printer uses; the final size will be about B5
...
\begin{document}
\setstocksize{29.7cm}{21cm}
\settrimmedsize{29.7cm}{21cm}{*}
\settrims{0pt}{0pt}
\settypeblocksize{19.7cm}{9.5cm}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{*}{*}{1.618}
\setmarginnotes{0.6cm}{4cm}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\checkandfixthelayout %gives no errors
\chapter{Introduction} \label{chap:introduction}
\section{A section title} \label{sec:escom}
\label{section:escom}
\markboth{\ref{chap:introduction}. Introduction}{\ref{sec:escom} A section title}
Enough text to fill more than two pages, with two marginal notes, one on p. 1, the other on p. 2.
\end{document}
Result
1. The main text is 12 cm wide, not 9.5 cm (but the text height is 19.7 cm as expected).
2. The print area is centred on even-numbered pages, but not on odd-numbered pages (so on these pages marginal notes extend outside the page).
3. The headers are 9.5 cm wide -- as asked for, but not the same as the text width.
Page Layout ⇒ Layout with marginal notes (memoir class)
Layout with marginal notes (memoir class)
- Attachments
-
- Layout.pdf
- This is the PDF file from my best effort
- (22.1 KiB) Downloaded 499 times
Layout with marginal notes (memoir class)
1. Dimension settings go before \begin{document} (i.e. in the preamble).
2. If you still have problems with memoir's way of defining dimension settings, why not using geometry package instead? Here's an example:
2. If you still have problems with memoir's way of defining dimension settings, why not using geometry package instead? Here's an example:
Code: Select all
\documentclass[a4paper]{memoir} %A4 paper because that what my printer uses; the final size will be about B5
\usepackage{lipsum}% just for generating some dummy text
\usepackage[textheight={19cm},textwidth={9.5cm},%
marginparsep={0.6cm},marginparwidth={4cm},
includemp,centering]{geometry}
%\setstocksize{29.7cm}{21cm}
%\settrimmedsize{29.7cm}{21cm}{*}
%\settrims{0pt}{0pt}
%\settypeblocksize{19.7cm}{9.5cm}{*}
%\setulmargins{4cm}{*}{*}
%\setlrmargins{*}{*}{1.618}
%\setmarginnotes{0.6cm}{4cm}{\onelineskip}
%\setheadfoot{\onelineskip}{2\onelineskip}
%\checkandfixthelayout %gives no errors
\begin{document}
\chapter{Introduction} \label{chap:introduction}
\section{A section title} \label{sec:escom}
\label{section:escom}
\markboth{\ref{chap:introduction}. Introduction}{\ref{sec:escom} A section title}
Enough\marginpar{A margin note that goes over two lines} text to fill more than two pages, with two marginal notes, one on p. 1, the other on p. 2.
\lipsum[1-3]
Some text.\marginpar{Another margin note that goes over two lines}
\lipsum[1-3]
\end{document}
Re: Layout with marginal notes (memoir class)
Thanks. This solved the problem, though I'm a little puzzled, because I thought I'd tried this before posting my original query, and only put the sizing information in the document itself after I'd had a series of errors when I put the same lines in the preamble (mainly "missing \begin{document}").