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}}%

% output is ok
\framed{\obeyspaces{A gap from here      to here!}}
% no big gap between 'here' and 'to'
\TextWithSpaces{A gap from here      to here!}

\s

\def  \TextWithSpaces  {\framed\bgroup\obeyspaces\doTextWithSpaces}
\def\doTextWithSpaces     #1{#1\egroup}

just postpone argument loading Hans
-----------------------------------------------------------------
                                         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

Reply via email to