Hello,
thanks for the fix, but -
- but I'm still getting an error, although I've just downloaded the latest beta, I tried, I got errors, so I corrected the strc-lev.lua by your proposition and oops, still the same error.
So? -
(Related files are attached.)
Kind regards,
Lukas
On Wed, 22 Jun 2011 14:19:13 +0200, Wolfgang Schuster
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
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- 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