ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* understanding elements and \blank
@ 2014-06-14  9:28 Pablo Rodriguez
  2014-06-15 13:35 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez @ 2014-06-14  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

if I’m not wrong, elements are defined and configured in ConTeXt with
\defineelement and \setupelement in the preamble of the document. Then
they can be invoked using the identifier as a command.

  \definemargindata[MyMarginData][location=outer]
  \starttext
  \MyMarginData{Zapf}\input zapf
  \stoptext

My question is; why are blank elements different?

  \defineblank[MyBlank][10*big]
  \starttext
  \input zapf

  \blank[MyBlank]

  \input zapf
  \stoptext

Sorry for the basic question, but I’m trying to understand the reason
why to explain it to others.

Are there other elements that cannot be invoked with \identifier?

Many thanks for your help,


Pablo
-- 
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: understanding elements and \blank
  2014-06-14  9:28 understanding elements and \blank Pablo Rodriguez
@ 2014-06-15 13:35 ` Hans Hagen
  2014-06-15 16:56   ` Pablo Rodriguez
  2014-06-15 17:10   ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Hans Hagen @ 2014-06-15 13:35 UTC (permalink / raw)
  To: ntg-context

On 6/14/2014 11:28 AM, Pablo Rodriguez wrote:
> Dear list,
>
> if I’m not wrong, elements are defined and configured in ConTeXt with
> \defineelement and \setupelement in the preamble of the document. Then
> they can be invoked using the identifier as a command.
>
>    \definemargindata[MyMarginData][location=outer]
>    \starttext
>    \MyMarginData{Zapf}\input zapf
>    \stoptext
>
> My question is; why are blank elements different?
>
>    \defineblank[MyBlank][10*big]
>    \starttext
>    \input zapf
>
>    \blank[MyBlank]
>
>    \input zapf
>    \stoptext
>
> Sorry for the basic question, but I’m trying to understand the reason
> why to explain it to others.
>
> Are there other elements that cannot be invoked with \identifier?

in retrospect one can wonder if we should have \MyMarginData at all and 
not \invoke{MyMarginData} ...

it's all about potential clashes in names

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: understanding elements and \blank
  2014-06-15 13:35 ` Hans Hagen
@ 2014-06-15 16:56   ` Pablo Rodriguez
  2014-06-15 17:10   ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2014-06-15 16:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 06/15/2014 03:35 PM, Hans Hagen wrote:
> On 6/14/2014 11:28 AM, Pablo Rodriguez wrote:
>>
>> if I’m not wrong, elements are defined and configured in ConTeXt with
>> \defineelement and \setupelement in the preamble of the document. Then
>> they can be invoked using the identifier as a command.
>> [...]
>> My question is; why are blank elements different?
> 
> in retrospect one can wonder if we should have \MyMarginData at all and 
> not \invoke{MyMarginData} ...
> 
> it's all about potential clashes in names

Many thanks for your reply, Hans.


Pablo
-- 
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: understanding elements and \blank
  2014-06-15 13:35 ` Hans Hagen
  2014-06-15 16:56   ` Pablo Rodriguez
@ 2014-06-15 17:10   ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2014-06-15 17:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 15.06.2014 um 15:35 schrieb Hans Hagen <pragma@wxs.nl>:

> On 6/14/2014 11:28 AM, Pablo Rodriguez wrote:
>> Dear list,
>> 
>> if I’m not wrong, elements are defined and configured in ConTeXt with
>> \defineelement and \setupelement in the preamble of the document. Then
>> they can be invoked using the identifier as a command.
>> 
>>   \definemargindata[MyMarginData][location=outer]
>>   \starttext
>>   \MyMarginData{Zapf}\input zapf
>>   \stoptext
>> 
>> My question is; why are blank elements different?
>> 
>>   \defineblank[MyBlank][10*big]
>>   \starttext
>>   \input zapf
>> 
>>   \blank[MyBlank]
>> 
>>   \input zapf
>>   \stoptext
>> 
>> Sorry for the basic question, but I’m trying to understand the reason
>> why to explain it to others.
>> 
>> Are there other elements that cannot be invoked with \identifier?
> 
> in retrospect one can wonder if we should have \MyMarginData at all and not \invoke{MyMarginData} …

The second method is already possible for some commands, e.g.

  - \margindata[inmargin]{…} and
  - \startnamedsection[chapter]

and has only to be extended.

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
___________________________________________________________________________________


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

end of thread, other threads:[~2014-06-15 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-14  9:28 understanding elements and \blank Pablo Rodriguez
2014-06-15 13:35 ` Hans Hagen
2014-06-15 16:56   ` Pablo Rodriguez
2014-06-15 17:10   ` Wolfgang Schuster

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).