Page Layoutmargin notes

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jonathan webley
Posts: 11
Joined: Sun May 03, 2009 8:28 am

margin notes

Post by jonathan webley »

I've trying to typeset a book which is duplex - with different running headers on left and right pages. Margin notes must always be on the left side of the page. However marginpar is not the easiest command to use.

The following is a one page example. Why don't the margin notes appear?

Code: Select all

\documentclass[a4paper,twoside]{book}
\setlength{\textwidth}{4in}
\setlength{\marginparwidth}{2in}
\setlength{\marginparsep}{0.25in}
\setlength{\oddsidemargin}{2in}
\setlength{\evensidemargin}{2in}
\begin{document}
Main body text. \marginpar[margin text]{} more text
\end{document}
But then if I modify it to use the right parameter, I can get a margin note on the right - which I don't want:

Code: Select all

\documentclass[a4paper,twoside]{book}
\setlength{\textwidth}{4in}
\setlength{\marginparwidth}{2in}
\setlength{\marginparsep}{0.25in}
\setlength{\oddsidemargin}{2in}
\setlength{\evensidemargin}{2in}
\begin{document}
Main body text. \marginpar{margin text} more text
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

margin notes

Post by localghost »

Marginal notes are mostly to appear in the outer margin. Trying to typeset notes in the left margin only works on a left (even) page. The first page is always a right (odd) page. Thus the optional argument has no effect. This optional argument can be used in the case it is not sure whether the marginal note will appear on an odd or an even page.

For enhancements to marginal notes you should take a look at marginnote. Page dimensions should be set with the geometry package.


Best regards
Thorsten
Post Reply