[NTG-context] itemize with zero start

Hans Hagen pragma at wxs.nl
Sun Jul 29 19:23:24 CEST 2007


Wolfgang Schuster wrote:
> On Fri, 27 Jul 2007 22:47:33 -0400
> "Hamid Kamrani" <hamid.kamrani at gmail.com> wrote:
> 
>> Here is a minimal example of how this happens. I had posted it sometime back.
>>
>> \starttext
>> \setupitemize[each][][stopper=:]
>> \bTABLE
>> \bTR
>> \bTD
>> \startitemize[a]
>> \item Bla
>> \item Blub
>> \item Bautz
>> \stopitemize
>> \eTD
>> \eTR
>> \eTABLE
>> \stoptext
> 
> This is a problem related to the new way with twopassdata.
> 
> You can solve it by changing one line in the definition of
> \checkcurrentnofitems in core-itm.tex
> 
> \def\checkcurrentnofitems
>   {\splititemtwopassdata\noflists
>    \iftwopassdatafound
>      \ifcase\scratchcounter
>        \let\currentnofitems   \!!zerocount
>        \let\currentminnofitems\!!zerocount
> 
>        the last line should be:
>        \let\currentminnofitems\plusone
> 
>        \let\currentmaxnofitems\!!zerocount
>      \else
>      ...rest of the macor} 


\def\checkcurrentnofitems
   {\splititemtwopassdata\noflists
    \iftwopassdatafound
      \ifcase\itemdatan\relax % \scratchcounter




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list