Am 26.07.2011 um 23:28 schrieb Daniel Schopper:

> >> So doing \def\removeunwantedspaces{} inside the macro definition does the 
> >> trick (although in a barbaric way)
> > As you don’t use grouping your redefinition is global and can break many 
> > other things.
> 
> Of course, I missed that! Adding \bgroup and \egroup right before and after 
> the \def does make it local and should prevent side effects then, right? 
> Thanks again…

That’s not better, i would go with the following (although a better method to 
pass the references is necessary):

\def\test#1%
  {\dontleavehmode
   \startline[line:0]\pagereference[page:0]%
   #1%
   \stopline[line:0]}

\starttext
\startlinenumbering
One \test{two three} four
\stoplinenumbering
\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to