\...structurelevel - probably a bug in the last version
Hello, I've just updated ConTeXt. The following code used to work so far, now I'm getting error: ---- \definestructurelevels[A][section,] \starttext \startstructurelevel[A][title=Title] \input knuth \stopstructurelevel \stoptext ---- " This is LuaTeX, Version beta-0.70.1-2012032923 (TeX Live 2012) ... ConTeXt ver: 2012.04.07 14:42 MKIV fmt: 2012.4.9 int: english/english ... ! LuaTeX error <main ctx instance>:1: attempt to call field 'startautolevel' (a nil value) stack traceback: <main ctx instance>:1: in main chunk. system > tex > error on line 4 in file C:/Lukas/Jobs/D5-035.Zat/SO_201/Texts/Test/t2.mkiv: 1 \definestructurelevels[A][subsubsubsection,] 2 3 \starttext 4 >> \startstructurelevel[A][title=Title] 5 \input knuth 6 \stopstructurelevel 7 \stoptext 8 " Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 09.04.2012 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
I've just updated ConTeXt.
The following code used to work so far, now I'm getting error:
---- \definestructurelevels[A][section,]
\starttext \startstructurelevel[A][title=Title] \input knuth \stopstructurelevel \stoptext ----
Change this in strc-lev.mkvi: \unexpanded\def\strc_levels_start[#category]% {\doifassignmentelse{#category} - {\ctxcommand{startautolevel("\v!default")}[#category]} - {\ctxcommand{startautolevel("#category")}}} + {\ctxcommand{startsectionlevel("\v!default")}[#category]} + {\ctxcommand{startsectionlevel("#category")}}} As you can see in the file the commands have new names and the old names are synonyms for backward compatibility. Wolfgang
participants (2)
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster