I have been typesetting a two-columned book where I sometimes need to put a mark in the margin to say, that particular line might need special attention. (The book is actually a psalter - for chanting.)
Because it isn't possible to use \marginpar in the multicol environment, I use
\marginnote from the package marginnote instead. The problem is, that all the
margin notes appear in the outer margin of the page. I need each to appear
next to the column, where it occurs - some in the inner margin, some in the outer margin - to match the problematic lines closely.
Is there any way to achieve this? I searched the internet thoroughly and haven't found anything relevant...
\documentclass{article}
\usepackage{multicol}
\usepackage{marginnote}
\begin{document}
\begin{multicols}{2}
Some text, a very long one.
And somewhere in the middle of it I need a (very small) margin note, like this:
Text text text\marginnote{\textbf{!}} and more text...
\end{multicols}
\end{document}


\input; doing\include{file}twice is wrong. – egreg Apr 01 '12 at 09:50\putmarginparcommand defined as in the answer above, I wrap it in another command, which accepts only content to be printed and takes care of generating a new unique label by joining a fixed prefix and a counter incremented every time: ```\newcounter{myCounterName} \setcounter{myCounterName}{1}\newcommand{\makeMarginMark}[#1]{% \stepcounter{myCounterName}% \putmarginpar{labelPrefix:\arabic{myCounterName}}{#1} }```
– igneus Jan 04 '22 at 13:44