On Mon January 26 2009 10:57:23 am Wolfgang Schuster wrote:
Am 26.01.2009 um 17:51 schrieb Bart C. Wise:
Thanks Wolfgang for the insight.
Here is one that did exactly you wrote, nothing else.
\defineframedtext[CenteredTextFrame][width=fit,location=middle]
\def\startCenteredText {\dosingleempty\dostartCenteredText}
\def\dostartCenteredText[#1]% {\bgroup \iffirstargument \def\docommand##1{\getparameters[][##1]}% \processcommalist[#1]\docommand \fi \startCenteredTextFrame}
\def\stopCenteredText {\stopCenteredTextFrame \egroup}
\starttext
\startCenteredText[myownparm="This is a test"] \startlines My own parm is: \myownparm \stoplines \stopCenteredText
\stoptext
Yes, a much simpler solution, but I appreciate having both. Thanks, Bart