I am having an issue inserting marginal notes while using the ltxdoc
document class. I see that the default layout is the following:
From what I understand, the margin notes are set up this way because the \DescribeMacro
command places the macro name as a marginal note. I would like to utilize the right margins for inserting my own marginal notes. I tried using
\reversemarginpar\marginpar{Some text to be placed in the right margin}
but this did not do what I wanted. I have also tried using the marginnote
package to no avail...
\marginnote{Still not on the right}
How can I place text in the right margin? Here is an MWE:
\documentclass{ltxdoc}
\usepackage{lipsum}
\usepackage{marginnote}
\newcommand{\rmarginpar}[1]{\reversemarginpar\marginpar{#1}}
\begin{document}
\lipsum[1-2]
\marginpar{This marginal note is on the left. This behavior is expected based on
the page layout.}
\rmarginpar{This marginal note is also on the left, but I want it to appear on the
right of the text.
Even worse, this marginal note overlaps the first note.}
\marginnote[This is on the left, as expected]{}[1in]
\marginnote{This should be on the right of the text.}[2in]
\end{document}
Update 2016/03/08
I have also tried using the marginfix
and mparhack
packages. These did not fix my issues, either. The only improvement is that loading the marginfix
package made the \marginpar
's no longer overlap, but that is not what I am trying to fix.
\reversemarginpar
, I think.... But since you want double margin pars, that's more of a thing.