[NTG-context] setups on framed

Aditya Mahajan adityam at umich.edu
Wed Apr 20 18:09:48 CEST 2011


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


More information about the ntg-context mailing list