ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: [dev-context] Storing and retrieving two-pass data
       [not found]       ` <20120420173056.07d856ed@Zewz>
@ 2012-04-20 17:55         ` luigi scarso
  2012-04-20 18:32           ` Marco
  0 siblings, 1 reply; 3+ messages in thread
From: luigi scarso @ 2012-04-20 17:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Apr 20, 2012 at 5:30 PM, Marco <netuse@lavabit.com> wrote:
> On 2012-04-19 Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
>
> Hi Wolfgang,
>
> thanks for  the answer. In the first place I also  came up  with a
> similar solution  to yours. But  that's what I meant  by ”manually
> counting” and  wanted to avoid.  Apparently I missed  the obvious,
> there is no special magic needed:
>
> % doesn't seem to be necessary
> % \definedataset [test]
>
> \setdataset [test] [foo] [foo=first]
> \setdataset [test] [foo] [foo=second]
>
> \setdataset [test] [bar] [bar=first]
> \setdataset [test] [bar] [bar=second]
> \setdataset [test] [bar] [bar=third]
>
> \starttext
>        foo is: \datasetvariable{test}{foo}{foo}\crlf
>        bar is: \datasetvariable{test}{bar}{bar}
> \stoptext
>
> Wikified:
> http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Two-pass_data
"""
Two-pass data is data that can be accessed before it has been created.
"""
Hm how can  something be read "before* being created ?

(super-luminal neutrino  is not anymore a valid answer ...)
-- 
luigi
___________________________________________________________________________________
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] 3+ messages in thread

* Re: [dev-context] Storing and retrieving two-pass data
  2012-04-20 17:55         ` [dev-context] Storing and retrieving two-pass data luigi scarso
@ 2012-04-20 18:32           ` Marco
  2012-04-20 18:43             ` luigi scarso
  0 siblings, 1 reply; 3+ messages in thread
From: Marco @ 2012-04-20 18:32 UTC (permalink / raw)
  To: ntg-context

On 2012-04-20 luigi scarso <luigi.scarso@gmail.com> wrote:

> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> Two-pass data  is data  that can  be accessed  before it  has been
> created.
> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> Hm how can something be read "before* being created ?
>
> (super-luminal neutrino is not anymore a valid answer ...)

- Two-pass  data is  data that  can be accessed  before it  has been
- created.

+ Two-pass data is data that is  saved to an external file (the .tuc
+ file)  instead of  being used  directly.  The reason  is that  the
+ information might not be present at that point. One example is the
+ page counter.  It's possible  to print the  total amount  of pages
+ onto the first page.

Otherwise delete the introduction  entirely. Everyone tinkering with
that  knows what  two-pass  data  is, otherwise  he  would just  use
\setvariables, right?


Marco


___________________________________________________________________________________
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] 3+ messages in thread

* Re: [dev-context] Storing and retrieving two-pass data
  2012-04-20 18:32           ` Marco
@ 2012-04-20 18:43             ` luigi scarso
  0 siblings, 0 replies; 3+ messages in thread
From: luigi scarso @ 2012-04-20 18:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Apr 20, 2012 at 8:32 PM, Marco <netuse@lavabit.com> wrote:
> On 2012-04-20 luigi scarso <luigi.scarso@gmail.com> wrote:
>
>> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>> Two-pass data  is data  that can  be accessed  before it  has been
>> created.
>> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>> Hm how can something be read "before* being created ?
>>
>> (super-luminal neutrino is not anymore a valid answer ...)
>
> - Two-pass  data is  data that  can be accessed  before it  has been
> - created.
>
> + Two-pass data is data that is  saved to an external file (the .tuc
> + file)  instead of  being used  directly.  The reason  is that  the
> + information might not be present at that point. One example is the
> + page counter.  It's possible  to print the  total amount  of pages
> + onto the first page.
ok x me

> Otherwise delete the introduction  entirely. Everyone tinkering with
> that  knows what  two-pass  data  is, otherwise  he  would just  use
> \setvariables, right?
No no,  it's ok to keep it .

-- 
luigi
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2012-04-20 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120418125518.2e8a77c9@Zewz>
     [not found] ` <8219268B-17E3-4D69-93A7-EAD24E452BF6@googlemail.com>
     [not found]   ` <20120418141553.7cb36e07@Zewz>
     [not found]     ` <36695353-920B-4AE1-B5BD-8CB7CD172B93@googlemail.com>
     [not found]       ` <20120420173056.07d856ed@Zewz>
2012-04-20 17:55         ` [dev-context] Storing and retrieving two-pass data luigi scarso
2012-04-20 18:32           ` Marco
2012-04-20 18:43             ` luigi scarso

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