2

In my twocolumn document, I want to place the margin notes between the two columns. The (reasonable) default is to place them in the margins of the page. \reversemarginpar seems to have no effect with twocolumn.

\documentclass[landscape, twocolumn]{article}

\usepackage{mwe} % only for blind text

\setlength\columnsep{3cm}
\setlength\marginparwidth{1cm}
\setlength\marginparsep{.3cm}

\begin{document}

\lipsum[1]
\marginpar{first margin paragraph}

\lipsum[2-3]
\marginpar{second margin paragraph}

\lipsum[4]

\end{document}

The output of the MWE above.

How can I place the margin notes in the margin between the columns?

3

This does no checks on whether the notes will overprint, just swaps the side.

enter image description here

\documentclass[landscape, twocolumn]{article}

\usepackage{mwe} % only for blind text
\usepackage{etoolbox}

\setlength\columnsep{3cm}
\setlength\marginparwidth{1cm}
\setlength\marginparsep{.3cm}

\makeatletter
\patchcmd\@addmarginpar{\if@firstcolumn}{\if@firstcolumn\else}
   {\typeout{yes}}{\typeout{no}}
\makeatother

\begin{document}

\lipsum[1]
\marginpar{first margin paragraph}

\lipsum[2-3]
\marginpar{second margin paragraph}

\lipsum[4]

\end{document}

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.