Am 18.10.2013 um 11:25 schrieb "Keith J. Schultz"
Hi everbody,
I would like to do some very special settings using frames possibly structures to!
NMW % declartion of MyFarme and setup \defineframed[MyFrame][framed] \setupframed[MyFrame][\rulethickness=3pt, frameoffset=.8 rulethickness] … startext
\MyFrame[\rulethickness=3pt{What goes into the frame} stop
I would like to adjust the frameoffset according to the value of \rulethickness, to be exact I would prefer using a command that calulates a value.
How do I go about it. According to the Manuals and the Wiki I can use a command
How can I access rulethickness in such a manner?
I know I could right a command in lua that injects the proper output into the TeX stream, but I am afraid that the the side effects.
Could do it in TeX to, but I am not that comfortable with TeX and processing key values therein.
Any help and ideas appreciated.
\defineframed [MyFrame] [rulethickness=3pt, frameoffset=\dimexpr\framedparameter{rulethickness}*3/10\relax] \starttext \MyFrame{What goes into the frame} \blank \MyFrame[rulethickness=1pt]{What goes into the frame} \blank \MyFrame[rulethickness=10pt]{What goes into the frame} \stoptext Wolfgang