[texhax] \marginpars on left

Donald Arseneau asnd at triumf.ca
Wed Mar 11 01:55:14 CET 2009

Michael Barr <barr at math.mcgill.ca> writes:

> I tried the technique that Donald Arsenau suggested, namely
> \makeatletter
> \@mparswitchfalse
> \makeatother
> \newcommand\xlabel[1]{\marginpar[#1]{}\label{#1}}

I also said:

> > \newcommand\xlabel[1]{\marginpar[#1]{}\label{#1}}
>And get rid of such horribly broken definitions.

But you retained it.

Just use \marginpar{#1}.

Why don't you just use showkeys or similar package?

If you really need to roll your own, it will probably need some
\@bsphack and \@esphack to prevent double spaces in the text.

Donald Arseneau                          asnd at triumf.ca

More information about the texhax mailing list