[NTG-context] gobbling previous space

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Dec 9 10:04:09 CET 2007


2007/12/9, Idris Samawi Hamid <ishamid at colostate.edu>:
> Dear gang,
>
> For some macro writing, I need a low-level command that will gobble the
> space before it so that
>
> =========
> Here is some text.%
> \mycommand
> =========
>
> is equivalent to
>
> =========
> Here is some text.
> \mycommand
> =========
>
> without the %. I'm sure there's a context command for this hidden
> somewhere...
>
> Best
> Idris

You can use \removeunwantedspaces, it use plain TeX's \unskip
primtive but only in horizontal mode.

Wolfgang


More information about the ntg-context mailing list