27 Jul
2011
27 Jul
'11
10:47 a.m.
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