ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: how to (re)set section numbers
Date: Thu, 1 Jan 2015 20:00:00 +0100	[thread overview]
Message-ID: <0F330292-451C-47E1-A7BB-5D5EA052BAB9@gmail.com> (raw)
In-Reply-To: <op.xro25joup7eajd@muck.fritz.box>


> Am 30.12.2014 um 20:01 schrieb j. van den hoff <veedeehjay@googlemail.com>:
> 
> I have followed the recommendations how to include unnumbered sections in the table-of-content along
> the lines
> 
> \setuphead[subject]
>     [incrementnumber=yes,number=no]
> 
> 
> etc.
> this works OK if the unnumbered sections are at the end of the document. otherwise the enumeration of the actually
> (visibly) numbered sections is messed up (i.e. if a `subject' section goes, e.g. _before_ all actually enumerated
> sections, there counters are off by one).
> 
> question: what is the best way of (re)setting the section counters? i.e. if the doucment structure is, e.g.,
> 
> \subject
> \section
> \subsection
> \section
> \subject
> 
> I'd like to end up with the ToC containing entries for all subjects and sections but the numbered sections should occur (in ToC and document) as 1, 1.1, 2 rather than 2 2.1, 3 (in this example). I was not able to find a solution in the documenation/wiki.

Can you send a *working* minimal example.

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
___________________________________________________________________________________

  reply	other threads:[~2015-01-01 19:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30 19:01 j. van den hoff
2015-01-01 19:00 ` Wolfgang Schuster [this message]
2015-01-01 19:16   ` j. van den hoff
2015-01-01 19:48     ` Wolfgang Schuster
2015-01-01 20:22       ` j. van den hoff
2015-01-01 20:57       ` j. van den hoff

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=0F330292-451C-47E1-A7BB-5D5EA052BAB9@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).