I'm drafting a document using a required style file for a conference, which is a two sided style. (i.e. odd and even pages are different.)
During the drafting process, I like to use the marginnote
package to put comments to myself and colleagues in the margin. Sometimes I want these notes to appear on the right and sometimes the left. I know that the side the notes appear on can be controlled using \reversemarginpar
and \normalmarginpar
.
However, since it's a two-sided document, the side that's considered "normal" changes depending on whether it's an odd or an even page. I don't want that. How can I put a note in the margin that will always be on the right or always on the left, regardless of odd or even pages?
Note that this is only a 'temporary' measure, in that all margin comments will be removed before submitting the paper, so if the solution changes (for example) the running head etc. I don't mind. However, I don't want to remove the style file or use a different one, since it's important to make sure the text will fit within the page limit when the final style is applied.
The following mwe demonstrates the issue, using the twoside
option to the article
class instead of a style file. (Sorry it's not quite as minimal as it could be - it seems there has to be a certain amount of text on the page otherwise \marginnote
just goes mad and positions things randomly, but that's a separate issue.)
\documentclass[a4paper,twoside]{article}
\usepackage[margin=1.75in,marginparwidth=1.4in]{geometry}
\usepackage{marginnote}
\begin{document}
Some text.
{\marginnote{On the right}}%
{\reversemarginpar\marginnote{On the left}}%
Some more text.
Some more text.
Some more text.
Some more text.
{\marginnote{Still right}}%
{\reversemarginpar\marginnote{Still left}}%
Some more text.
Some more text.
\raggedbottom
\pagebreak
Some text.
{\marginnote{On the right?}}%
{\reversemarginpar\marginnote{On the left?}}%
Some more text.
Some more text.
Some more text.
{\marginnote{Still right?}}%
{\reversemarginpar\marginnote{Still left?}}%
Some more text.
Some more text.
\end{document}
Page 1 of the output looks like this:
but page 2 looks like this, with the "normal" marginpars on the left and the "reverse" ones on the right.
(Note: there are some similar old questions, but as far as I can tell none quite cover my situtation. This one, this one and this one could all be solved with a twoside=semi
option that the third-party style file I'm using doesn't accept, the solution to this one seems to be specific to a two-column document, and the solutions to this one seem to put all the notes on the left, so that \reversemarginpar
cannot be used to put them on the right.)
\marginpar
on the right side, or its hyperlink "finding if you’re on an odd or an even page" ? A bit of customizing things to your requirements could solve your problem... though it doesn't use themarginnote
package as such !\makeatletter \@mparswitchfalse% \makeatother \normalmarginpar
(the answer below does not always works, e.g. if you copy-pasted many more timesSome more text. \rightmarginnote{Still right}
over a few pages: some notes will appear on the left instead of the right-hand side)