ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \placelist and \writetolist
@ 2011-12-13 10:41 Marco Pessotto
  2011-12-13 11:28 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Pessotto @ 2011-12-13 10:41 UTC (permalink / raw)
  To: ntg-context


Hello!

I can't understand what I'm doing wrong here:

%%%%%

\setuplist[mylist]
          [alternative=c,
            width=0mm,
            style=\tfx,
            criterium=all]

\starttext

\placelist[mylist]

\page[yes]

\input knuth

\writetolist[mylist]{}{Item}

\stoptext
%%%%% 

The document compiles fine with version 2011.05.18 22:2, but it fails
miserably with the latest (2011.11.29 23:11)
! Missing number, treated as zero.

system          > tex > error on line 11 in file prova.tex: Missing number, treated as zero ...

 1     \setuplist[mylist]
 2               [alternative=c,
 3                 width=0mm,
 4                 style=\tfx,
 5                 criterium=all]
 6     
 7     
 8     \starttext
 9     
10     \placelist[mylist]
11 >>  
12     \page[yes]
13     
14     \input knuth
15     
16     \writetolist[mylist]{}{Item}
17     
18     \stoptext

<to be read again> 
                   ,
\doplacestructurelist ...um = "#2", number = "#3",
                                                   extras = "#4", order = "#...
\doplacerawlist ...ras }{\listparameter \c!order }
                                                  \stoplistreferences \endgr...
\doplacelist ...ginoflist \doplacerawlist [#1][#2]
                                                  \doendoflist 
\dodoubleemptyonespaced #1#2->#1[{#2}][]
                                         
<to be read again> 
                   \par 
l.11 
     
? H
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

Thanks in advance.

-- 
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: \placelist and \writetolist
  2011-12-13 10:41 \placelist and \writetolist Marco Pessotto
@ 2011-12-13 11:28 ` Wolfgang Schuster
  2011-12-13 11:43   ` Marco Pessotto
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-12-13 11:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 13.12.2011 um 11:41 schrieb Marco Pessotto:

> 
> Hello!
> 
> I can't understand what I'm doing wrong here:
> 
> %%%%%
> 
> \setuplist[mylist]
>          [alternative=c,
>            width=0mm,
>            style=\tfx,
>            criterium=all]
> 
> \starttext
> 
> \placelist[mylist]
> 
> \page[yes]
> 
> \input knuth
> 
> \writetolist[mylist]{}{Item}
> 
> \stoptext
> %%%%% 
> 
> The document compiles fine with version 2011.05.18 22:2, but it fails
> miserably with the latest (2011.11.29 23:11)

Replace \setuplist with \definelist, before you use a list you should create it.

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

* Re: \placelist and \writetolist
  2011-12-13 11:28 ` Wolfgang Schuster
@ 2011-12-13 11:43   ` Marco Pessotto
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Pessotto @ 2011-12-13 11:43 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> Replace \setuplist with \definelist, before you use a list you should create it.

I knew I was missing something obvious...

Thanks a lot, it works.

Best wishes

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

end of thread, other threads:[~2011-12-13 11:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 10:41 \placelist and \writetolist Marco Pessotto
2011-12-13 11:28 ` Wolfgang Schuster
2011-12-13 11:43   ` Marco Pessotto

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