[NTG-context] \item doesn't work with ConTeXt (works with LuaTeX/TeX)

Hans Hagen pragma at wxs.nl
Fri Oct 31 15:35:21 CET 2008


Mildred Ki'Lya wrote:
> Hi,
> 
> I have a strange error with ConTeXt. This error isn't produced using
> LuaTeX. The error seems to be in one of the CoTeXt files but I can't
> understand it. I hope some of you will be able to help me there.
> 
> The code is as simple as that:
> 
> 
>   ===== test.tex =====
> 1 \begingroup
> 2   \item{1} test 1
> 3   \item{2} test 2
> 4 \endgroup
> 5
> 6 \end
> 7
>   ====================
> 
> 
> 
> Now, if I run 'context test', I get at some point the following error:
> 
> ! Missing } inserted.
> <inserted text> 
>                 }
> <to be read again> 
>                    \endgroup 
> \stopitemgroup ...mdepth }\egroup \else \endgroup 
>                                                   \global \advance \itemdept...
> l.5 
>     
> ?
> 
> 
> Attached, the complete log.
> 
> I hope you'll be able to understand that strange error.

 > 1 \begingroup
 > 2   \item{1} test 1
 > 3   \item{2} test 2
 > 4 \endgroup

in this case \item grabs a paragraph and therefore the whole bunch till 
after the \endgroup

 > 1 \begingroup
 > 2   \item test 1 \par
 > 3   \item test 2 \par
 > 4 \endgroup

or

 > 1 \startitemize[n,packed]
 > 2   \item test 1
 > 3   \item test 2
 > 4 \stopitemize



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