Page Layout ⇒ Layout with marginal notes (memoir class)
Layout with marginal notes (memoir class)
\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.
- Attachments
-
- Layout.pdf
- This is the PDF file from my best effort
- (22.1 KiB) Downloaded 533 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Layout with marginal notes (memoir class)
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}