1

Is there a way to specify the side of the margin note in a double-sided paper according to where \marginnote is called?

The following figure explains what I mean:

enter image description here

Here is my test code:

%% PNAStwoS.tex
%% Sample file to use for PNAS articles prepared in LaTeX
%% For two column PNAS articles
%% Version: Apr 15, 2008 


%% BASIC CLASS FILE
\documentclass{pnastwo}

\usepackage{caption}
\usepackage{subcaption}
\usepackage[usenames,dvipsnames]{xcolor}

\usepackage{ragged2e}
\usepackage[cmex10]{amsmath}
\usepackage{float}

%% ADDITIONAL OPTIONAL STYLE FILES
\usepackage[dvips]{graphicx}
\usepackage{pnastwoF}
\usepackage{amssymb,amsfonts,amsmath}

\usepackage{marginnote}

\setlength{\marginparwidth}{1.5cm}
\setlength{\marginparsep}{0.1cm}

%% OPTIONAL MACRO DEFINITIONS
\def\s{\sigma}


%%%%%%%%%%%%
%% For PNAS Only:
\url{www.pnas.org/cgi/doi/10.1073/pnas.0709640104}
\copyrightyear{2008}
\issuedate{Issue Date}
\volume{Volume}
\issuenumber{Issue Number}
%\setcounter{page}{2687} %Set page number here if desired
%%%%%%%%%%%%

\begin{document}

\title{Almost sharp fronts for the surface geostrophic equation}

\author{xxxx\affil{1}{xxxx},
xxx\affil{2}{xxxn},
\and
xxx\affil{2}{}}

\contributor{xxx}

\maketitle

\begin{article}
\begin{abstract}
\marginnote{Note on the left} xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

\end{abstract}

\keywords{monolayer | structure | x-ray reflectivity | molecular electronics}

\abbreviations{SAM, self-assembled monolayer; OTS,
octadecyltrichlorosilane}

\dropcap{I}n this article we study the evolution of ``almost-sharp'' fronts
for the surface quasi-geostrophic equation. This 2-D active scalar
equation reads for the surface quasi-geostrophic equation. 

\marginnote{Note on the right} end.

\end{article}

\end{document}

The result of such code is:

enter image description here

All notes are on the right. I need one of them to be on the left.

I have upload a smallest test and its required class files to: https://dl.dropboxusercontent.com/u/45318932/mariginnotetest.zip

  • Using the twoside class option should do this, as in \documentclass[twoside]{article} (the book class uses twoside by default). – Gonzalo Medina Apr 8 '14 at 17:23
  • I am using a customized latex template. It is double-sided, but I do not need to put twoside on the \documentclass option. I tried to put [twoside] there. There seems to be no difference made. All notes are on the rigth hand sight. – Changwang Zhang Apr 8 '14 at 17:29
  • Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. – cmhughes Apr 8 '14 at 17:37
  • @Leo Relevant information is missing; can you add a minimal example of code and also a link for the customized class? – egreg Apr 8 '14 at 18:01
  • You don't need twoside, but twocolumn; but the marginnote package is not able to put notes on the nearest margin; it uses the outer margin for twoside and always the right margin for oneside. On the other hand, \marginpar fails with the pnastwo class. :-( – egreg Apr 8 '14 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.