From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Continuous Item Numbering throughout an Entire Document
Date: Thu, 8 May 2014 06:33:42 +0200 [thread overview]
Message-ID: <D86A209D-D837-4CDD-AE87-37504F3C1C26@gmail.com> (raw)
In-Reply-To: <BA6C9E97-B6EB-4DC6-8A66-E2DB8EB8E59F@stien.de>
Am 08.05.2014 um 01:17 schrieb Malte Stien <malte@stien.de>:
> Hi all,
>
> I have a rather long document listing a number of items, which I need to be numbered continuously throughout the entire document. The following approach appears to work well, except that the numbering restarts at the beginning of every chapter. Is there a way that can be avoided?
>
> \startitemize[n]
> \item bar
> \item faz
> \stopitemize[n]
>
> \startitemize[n, continue]
> \item foo
> \item bla
> \stopitemize[n]
1. Show complete examples and not only code snippets.
2. The \stopitemize command has *no* argument.
3. You have to use the \setupcounter command to set a continues numbering.
\setupcounter[itemgroup:itemize][way=bytext]
\setupitemgroup[itemize][each][n,continue]
\starttext
\dorecurse{2}
{\chapter{First chapter}
\dorecurse{2}
{\startitemize
\dorecurse{3}{\item Item \recurselevel}
\stopitemize}}
\stoptext
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:[~2014-05-08 4:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 23:17 Malte Stien
2014-05-08 4:33 ` Wolfgang Schuster [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-05-07 23:11 Dr Malte Stien
2014-05-08 10:49 ` Mikael P. Sundqvist
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=D86A209D-D837-4CDD-AE87-37504F3C1C26@gmail.com \
--to=schuster.wolfgang@gmail.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).