![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Hans Hagen wrote:
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}
i suggest that rolf adds en entry to the wiki, with the posted solutions, maybe we need a "how tex treats arguments" corner or so Hans done. And my (first) name is Peter. Thank god I have no middle name....
Greetings, Peter
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context