On Sun January 25 2009 5:11:25 am Wolfgang Schuster wrote:
Am 24.01.2009 um 15:30 schrieb Bart C. Wise:
I'm trying to have a centered text frame. There are two examples in the code below. 1) This one works. It uses a text frame that is in line in the code. 2) This one does not work! It's using a defined text frame and flushes the text frame to the left. How do I fix this?
\defineframedtext[CenteredText][width=fit,location=middle]
\starttext
\startCenteredText \startlines The quick brown fox jumps over the lazy dog. \stoplines \stopCenteredText
Thanks Wolfgang. Is there a way to pass in my own defined parameters to such a function? I would like to be able to do something similar to the following: \startCenteredText[myownparm="This is a test"] \startlines My own parm is: \myownparm \stoplines \stopCenteredText Bart