Am 22.06.2011 um 09:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
I'm not able to compile the following code with the "ConTeXt ver: 2011.06.15 11:49 MKIV fmt: 2011.6.15 int: english/english":
---- \definestructurelevels [Test] [subsection, subsubsection, subsubsubsection, ]
\starttext \startstructurelevel[Test][title=Title] aaa \stopstructurelevel \stoptext ----
strc-lev.lua: function sections.startautolevel(category) category = category ~= "" and category or default level = level + 1 local lc = levels[category] if not lc or level > #lc then - context.nostartstructurehead { format("%s:%s",category,level) } + context.nostarthead { format("%s:%s",category,level) } else - context.dostartstructurehead { lc[level] } + context.dostarthead { lc[level] } end insert(categories,category) end function sections.stopautolevel() local category = remove(categories) local lc = levels[category] if not lc or level > #lc then - context.nostopstructurehead { format("%s:%s",category,level) } + context.nostophead { format("%s:%s",category,level) } else - context.dostopstructurehead { lc[level] } + context.dostophead { lc[level] } end level = level - 1 end Wolfgang