Framed & before/after
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
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 ---- Best regards, Lukas -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Procházka Lukáš Ing. mailto:LPr@pontex.cz 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
![](https://secure.gravatar.com/avatar/60f3cc97f94fa3690ba406f8c1a7fc4f.jpg?s=120&d=mm&r=g)
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 ______________________________________________________________________________ _____
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
participants (5)
-
Aditya Mahajan
-
Henri Menke
-
Pablo Rodriguez
-
Procházka Lukáš Ing.
-
Wolfgang Schuster