From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Latest beta: Problems with \startstructurelevel (bug?)
Date: Wed, 22 Jun 2011 14:19:13 +0200 [thread overview]
Message-ID: <E5715D73-89DD-4ACB-A83E-9BC9AF3085AF@googlemail.com> (raw)
In-Reply-To: <op.vxgwckastpjj8f@lpr>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-06-22 12:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 7:56 Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-22 12:19 ` Wolfgang Schuster [this message]
2011-06-22 12:51 ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-22 12:59 ` Wolfgang Schuster
2011-06-22 13:09 ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-22 13:11 ` luigi scarso
2011-06-22 13:17 ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-23 6:25 ` Procházka Lukáš Ing. - Pontex s. r. o.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E5715D73-89DD-4ACB-A83E-9BC9AF3085AF@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).