2 Aug
2005
2 Aug
'05
10:51 a.m.
Taco Hoekwater wrote:
Peter Rolf wrote:
Hi all,
I need to pass a short text as parameter to a defintion. My problem is, that the significant spaces are removed in this process. Hmm.....no clue.
% interface=en output=pdftex \starttext
\def\TextWithSpaces#1{\framed{\obeyspaces#1}}%
A two-part solution is needed:
\def\TextWithSpaces{\bgroup\obeyspaces\doTextWithSpaces} \def\doTextWithSpaces#1{\framed{#1}\egroup}
stupid me. \obeyspaces changes the cat-code of the space char, so...
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Many thanks Taco! Greetings, Peter