Hi As a follow-up to this: http://www.ntg.nl/pipermail/ntg-context/2011/058569.html I was wondering if it is possible to something like this: \startsetups test \setupframed[frame=off,topframe=on,leftframe=on] \stopsetups \starttext \framed[setups=test]{A fancy title} \stoptext Adam PS: I am aware of defineframed, but I don't want a new "command", I want to use different setups on exisiting framed elements.
Am 20.04.2011 um 12:35 schrieb Reviczky, Adam:
Hi
As a follow-up to this: http://www.ntg.nl/pipermail/ntg-context/2011/058569.html
I was wondering if it is possible to something like this:
\startsetups test \setupframed[frame=off,topframe=on,leftframe=on] \stopsetups \starttext \framed[setups=test]{A fancy title} \stoptext
\framed[extras=\setup{test}]{…} but you can’t change all values because the hook is called to late. Wolfgang
On Wed, 20 Apr 2011, Wolfgang Schuster wrote:
Am 20.04.2011 um 12:35 schrieb Reviczky, Adam:
Hi
As a follow-up to this: http://www.ntg.nl/pipermail/ntg-context/2011/058569.html
I was wondering if it is possible to something like this:
\startsetups test \setupframed[frame=off,topframe=on,leftframe=on] \stopsetups \starttext \framed[setups=test]{A fancy title} \stoptext
\framed[extras=\setup{test}]{…}
but you can’t change all values because the hook is called to late.
Another approach: \unprotected\getparameters[defaultoptions][frame=off,topframe=on,leftframe=on,parent=\??ol] \setupframed[framecolor=green] \starttext \framed[parent=defaultoptions]{test} \stoptext Aditya
Am 20.04.2011 um 18:09 schrieb Aditya Mahajan:
Another approach:
\unprotected\getparameters[defaultoptions][frame=off,topframe=on,leftframe=on,parent=\??ol]
\setupframed[framecolor=green]
\starttext \framed[parent=defaultoptions]{test} \stoptext
The parent setting is nothing you should care about on the user side. BTW: here is my alternative: \presetlocalframed[defaultoptions] \copylocalframed[myoptions][defaultoptions] \getparameters[defaultoptions][framecolor=green] \getparameters[myoptions][frame=off,topframe=on,leftframe=on] \starttext \localframed[myoptions]{test} \stoptext Wolfgang
participants (3)
-
Aditya Mahajan
-
Reviczky, Adam
-
Wolfgang Schuster