Framed & before/after
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
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
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
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 ______________________________________________________________________________ _____
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