ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Framed & before/after
@ 2018-03-21 13:24 Procházka Lukáš Ing.
  2018-03-21 18:11 ` Pablo Rodriguez
  2018-03-21 20:14 ` Henri Menke
  0 siblings, 2 replies; 5+ messages in thread
From: Procházka Lukáš Ing. @ 2018-03-21 13:24 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

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

[-- Attachment #2: ~2~.mkiv --]
[-- Type: application/octet-stream, Size: 131 bytes --]

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

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

[-- Attachment #3: ~2~.pdf --]
[-- Type: application/pdf, Size: 5101 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Framed & before/after
  2018-03-21 13:24 Framed & before/after Procházka Lukáš Ing.
@ 2018-03-21 18:11 ` Pablo Rodriguez
  2018-03-22 21:59   ` Wolfgang Schuster
  2018-03-21 20:14 ` Henri Menke
  1 sibling, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2018-03-21 18:11 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Framed & before/after
  2018-03-21 13:24 Framed & before/after Procházka Lukáš Ing.
  2018-03-21 18:11 ` Pablo Rodriguez
@ 2018-03-21 20:14 ` Henri Menke
  2018-03-22 15:09   ` Aditya Mahajan
  1 sibling, 1 reply; 5+ messages in thread
From: Henri Menke @ 2018-03-21 20:14 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Framed & before/after
  2018-03-21 20:14 ` Henri Menke
@ 2018-03-22 15:09   ` Aditya Mahajan
  0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2018-03-22 15:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Framed & before/after
  2018-03-21 18:11 ` Pablo Rodriguez
@ 2018-03-22 21:59   ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2018-03-22 21:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 603 bytes --]



> 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

[-- Attachment #1.2: Type: text/html, Size: 1858 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-22 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-21 13:24 Framed & before/after Procházka Lukáš Ing.
2018-03-21 18:11 ` Pablo Rodriguez
2018-03-22 21:59   ` Wolfgang Schuster
2018-03-21 20:14 ` Henri Menke
2018-03-22 15:09   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).