Re: [NTG-context] Framed & before/after

2018-03-22 Thread Wolfgang Schuster




Procházka Lukáš Ing. 
21. März 2018 um 14:24
Hello,

does \framed recognize before and after keys, as mentioned here:

http://wiki.contextgarden.net/Command/defineframed
or:http://wiki.contextgarden.net/Command/setupframedtexts ?

In the following example it seems both keys are ignored:


\defineframed[AddressBox][before=\red,after=\small]

\starttext
  \green A
  \AddressBox{\cldcontext{"Hele"}}
  B
\stoptext

The values of the before and after keys are only used when you write

\startAdressBox
…
\stopAdressBox


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framed & before/after

2018-03-22 Thread Aditya Mahajan

On Thu, 22 Mar 2018, Henri Menke wrote:


On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote:

Hello,

does \framed recognize before and after keys, as mentioned here:

http://wiki.contextgarden.net/Command/defineframed
or: http://wiki.contextgarden.net/Command/setupframedtexts ?

In the following example it seems both keys are ignored:


Is this going to do what you need?

\defineframed[AddressBox][extras=\red]

\starttext
   \green A
   \AddressBox{\cldcontext{"Hele"}}
   B
\stoptext


Or the more direct

\defineframed[AddressBox][framecolor=red,foregroundcolor=red]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Henri Menke
On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote:
> Hello,
> 
> does \framed recognize before and after keys, as mentioned here:
> 
>   http://wiki.contextgarden.net/Command/defineframed
> or:   http://wiki.contextgarden.net/Command/setupframedtexts ?
> 
> In the following example it seems both keys are ignored:

Is this going to do what you need?

\defineframed[AddressBox][extras=\red]

\starttext
   \green A
   \AddressBox{\cldcontext{"Hele"}}
   B
\stoptext

> 
> 
> \defineframed[AddressBox][before=\red,after=\small]
> 
> \starttext
>    \green A
>    \AddressBox{\cldcontext{"Hele"}}
>    B
> \stoptext
> 
> 
> Best regards,
> 
> Lukas
> 
> 
> __
> _
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> __
> _
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Pablo Rodriguez
On 03/21/2018 02:24 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> does \framed recognize before and after keys, as mentioned here:
> 
>   http://wiki.contextgarden.net/Command/defineframed
> or:   http://wiki.contextgarden.net/Command/setupframedtexts ?

Hi Lukáš,

\framed inherits from \setupframed (as explained in
tex/texmf-context/tex/context/interface/mkiv/i-context.pdf).

\setupframedtext (which I don’t think is exactly the same as
\setupframed) inherits from \setupplacement (which contains both keys
before and after).

That being said, I don’t know why before and after don’t work with
framed texts.

Pablo


> In the following example it seems both keys are ignored:
> 
> 
> \defineframedtext[AddressBox][before=\red,after=\small]
> 
> \starttext
>\green A
>\AddressBox{\cldcontext{"Hele"}}
>B
> \stoptext
> 
> 
> Best regards,
> 
> Lukas


-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___