[texhax] \marginpars on left

Michael Barr barr at math.mcgill.ca
Sun Mar 8 00:23:23 CET 2009

In other words, roll my own \marginpar.  Obviously I need this only for 
draft mode, so fine typesetting not required.


On Sat, 7 Mar 2009, UweLück wrote:

> At 14:48 07.03.09, Michael Barr wrote:
>> I have been trying to get \marginpars to print all on the left (in a
>> two-sided style).  It appears to me that
>> \newcommand\xlabel[1]{\marginpar[#1]{}\label{#1}}
>> should do it, but it actually prints nothing on odd numbered pages.
> The mandatory argument of \marginpar is typeset on right pages, unless 
> \reversemarginpar.
>> Is there an easy way of doing this?
> Kernel LaTeX seems not to support this, but marginal.sty from sttools seems 
> to do it with \onesidemarginals (not tested).
> You may need the feature at first lines of paragraphs only, you could then 
> start such a paragraph with \xlabel and something like
>     \newcommand\xlabel[1]{%
>         \llap{#1\hspace\marginparsep}%
>         \label{#1}\ignorespaces}
> Cheers,
>    Uwe.

More information about the texhax mailing list