7 May
2009
7 May
'09
6:01 p.m.
Am 07.05.2009 um 19:55 schrieb Wolfgang Schuster:
After reading the following code [1] from the wiki again I will present here my solution:
\def\TextWithSpaces{\framed\bgroup\afterassignment\obeyspaces\let \next}
[1] http://wiki.contextgarden.net/Inside_ConTeXt#Passing_verbatim_text_as_macro_...
With a small modification optional arguments are possible. \def\TextWithSpaces#1#{\framed#1\bgroup\afterassignment\obeyspaces \let\next} This allows: \TextWithSpaces{A gap from here to there!} and \TextWithSpaces[foregroundstyle=bold]{A gap from here to there!} Wolfgang