[texhax] need help... two concerns about marginal notes

Donald Arseneau asnd at triumf.ca
Mon Aug 31 21:49:09 CEST 2009

Lars Madsen <daleif at imf.au.dk> writes:

> I.J.L. Garces wrote:
> > \marginpar[\begin{flushright}...\end{flushright}]{\begin{flushleft}...\end{flushleft}}
> > I do this every time I need to write a marginal note. Is there a one-time
> > way to do to avoid this long syntax all the time?
> use \raggedleft instead of flushright and \raggedright instead of flushleft

Yes, that shortens it, but I think the point of the question
is more to removing the duplication, as with

\newcommand\mnote[1]{\marginpar[\raggedleft #1\par]{\raggedright #1\par}

> > (2) I also noticed that when the marginal note occurred on the first line
> > of the page, it is not on the proper side. 

I believe the package named mparhack is meant to fix this deficiency.

Donald Arseneau                          asnd at triumf.ca

More information about the texhax mailing list