# todonotes on both sides of the page

I have defined two commands for todonotes:

\documentclass[12pt,a4paper]{article}
\usepackage[colorinlistoftodos,textsize=scriptsize]{todonotes}


\begin{document}
\note{test} blah\mytodo{test}
\end{document}


Now \mytodo should be on the left margin of the page, \note on the right.

I tried something like this:



But that didn't work.

Help would be appreciated.

You could use marginnote for at least one the notes:

\documentclass[12pt,a4paper]{article}
\usepackage[colorinlistoftodos,textsize=scriptsize]{todonotes}
\usepackage{marginnote}

\newcommand{\mytodo}[2][]{{%
\let\marginpar\marginnote
\reversemarginpar
\renewcommand{\baselinestretch}{0.8}%
\todo[#1]{#2}}}

\begin{document}
\note{test} blah\mytodo{my test}

blub\note{test 2}
\end{document}


• Thanks, that is almost what I had in mind. It doesn't work quite well in the following case: if you paste \mytodo{bla} one below the other you get overlapping notes, while if you remove \let\marginpar\marginnote and \reversemarginpar it is shown on the right side but it doesn't overlap. – doc Mar 7 '16 at 16:19
• Yes, marginnote doesn't float. While it is possible to test for the vertical position and push the notes around it is a lot work to do it properly. In general it is easier if you simply avoid too many notes. – Ulrike Fischer Mar 7 '16 at 16:24