Re: [NTG-context] setups on framed

2011-04-20 Thread Wolfgang Schuster

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setups on framed

2011-04-20 Thread Aditya Mahajan

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___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] setups on framed

2011-04-20 Thread Wolfgang Schuster

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___