# \marginpar trick: not considered as float

I've found on the net a useful trick that does exactly what the title says. This is the code:

\newcommand{\mymarginpar}[1]{%


It works fine, the only problem is that the note is created in the left margin. Is it possible to put it in the right margin instead?

• Why don't you use the package marginnote, which provides marginnotes, which are not floats? Jul 14 '13 at 18:13
• For no particular reason: I'd like to know in which way that command could be tweaked, as I can't figure it out on my own. I find it a neat solution.
– uldi
Jul 14 '13 at 18:19
• \reversemarginpar could be your friend. Jul 14 '13 at 18:41
• That command doesn't seem to have any effect on my code.
– uldi
Jul 14 '13 at 18:49
• Does this answer solve your problem?
– Fran
Jul 14 '13 at 18:51

An equivalent definition for right-side margin paragraphs would be:

\newcommand{\lmarginpar}[1]{%

\lmarginpar sets a left-overlap of a paragraph of width \marginparwidth plus a right-hand gap of \marginparsep. \rmarginpar sets a left-hand gap of \linewidth+\marginparsep followed by a paragraph of width \marginparwidth.