From: Stefan Rothe <mail@stefan-rothe.ch>
To: ntg-context@ntg.nl
Subject: combinedlist: different behaviour in mkiv
Date: Thu, 20 Sep 2012 10:04:42 +0200 [thread overview]
Message-ID: <1348128282.3475.7.camel@pan> (raw)
Hi
I have defined a two-level head structure with independent numbering. It
works as intended with mkii, but with mkiv, the top-level number is
prepended to all second-level heads in the table of contents. With
mkii, I get:
Part A First
1 One
2 Two
...
with mkiv:
Part A First
A.1 One
A.2 Two
...
How can I fix this?
Kind regards
Stefan
% Top level head
\definehead [AgendaPart] [section]
\setuphead [AgendaPart] [ownnumber=yes, number=yes,
numbercommand={Part }, style=\bf\tfb]
\newcounter\AgendaPartNumber
\define [1] \agendapart {
\doglobal\increment\AgendaPartNumber
\AgendaPart{\Character{\AgendaPartNumber}}{#1}
}
% Second level head, idependently numbered
\definehead [AgendaItem] [subsubsection]
\setuphead [AgendaItem] [ownnumber=yes, number=yes, style=\bf]
\newcounter\AgendaItemNumber
\define [1] \agendaitem {
\doglobal\increment\AgendaItemNumber
\AgendaItem{\AgendaItemNumber}{#1}
}
\definelist [AgendaPart]
\setuplist [AgendaPart] [width=1.5cm, style=bold, numbercommand={Part }]
\definelist [AgendaItem]
\setuplist [AgendaItem] [width=1.5cm, ownnumber=yes]
\definecombinedlist [toc] [AgendaPart, AgendaItem]
\setupcombinedlist [toc] [pagenumber=no]
% Test
\starttext
\placetoc
\agendapart{First}
\agendaitem{One}
\agendaitem{Two}
\agendapart{Second}
\agendaitem{Three}
\agendaitem{Four}
\stoptext
___________________________________________________________________________________
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 reply other threads:[~2012-09-20 8:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-20 8:04 Stefan Rothe [this message]
2012-09-21 9:24 ` Philipp Gesang
2012-09-21 18:03 ` Wolfgang Schuster
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=1348128282.3475.7.camel@pan \
--to=mail@stefan-rothe.ch \
--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).