ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Joshua Lee <muzili@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: section numbers
Date: Tue, 20 Oct 2009 07:47:34 +0800	[thread overview]
Message-ID: <20091019234734.GA29021@josh-dev> (raw)
In-Reply-To: <200910191817.15103.alan.braslau@cea.fr>

[-- Attachment #1: Type: text/plain, Size: 2618 bytes --]

Hi Alan,
Try attached example.tex.

Best regards,
Joshua

On Mon, 19 Oct 2009, Alan BRASLAU wrote:

> Hello,
> 
> I did not understand that this be the answer to the question,
> but, of course, I cannot contradict he who posted the question
> in the beginning. However, I understood that Thomas still wanted
> chapters to be numbered, but that sections be numbered independently.
> 
> In my case, I have been struggling to have parts numbered
> (I, II, III, IV) and to have chapters numbered independently
> (1, 2, 3, 4, ...), such as:
> 
> Part I
>  Chapter 1
>  Chapter 2
> Part II
>  Chapter 3
>  Chapter 4
> Part III
>  Chapter 5
> 
> For this, I have
> 
> \setuplabeltext[chapter=Chapter ] % By default, blank when using \part
> \doifmodeelse{mkiv}{
>         \setupstructureheads[sectionsegments=2:100]
>         \setupstructurehead[part][resetnumber=no,placehead=yes]
> }{ % mkii
>         \setuplist[chapter,section,subsection,subsubsection][partnumber=no]
> }
> 
> but this is not quite right (works fine in mkii):
> - the parts are not numbered
> - the chapters are numbered 1, 2, 1, 2, 1, ...
> 
> I have not yet figured this out (another problem kept me from
> using mkiv on this problem, resolved only recently).
> 
> Alan
> 
> On Monday 19 October 2009 16:28:10 Thomas A. Schmitz wrote:
> > On Oct 19, 2009, at 4:10 PM, Wolfgang Schuster wrote:
> > > \setuphead
> > >  [section]
> > >  [sectionsegments=3:100] % show only the numbers for level 3
> > > (=section) till 100 (subsubsub...section)
> > >
> > > Wolfgang
> > 
> > Thank you Wolfgang, that does it! At the risk of sounding like a
> > crybaby: would one of the two people who have understood how the new
> > structure code works please add some documentation somewhere? Just
> > imagine what would happen if Hans and Wolfgang were struck by
> > lightning on the same day :-)
> > 
> > Thanks, and all best
> > 
> > Thomas
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

-- 
Joshua Lee
Alpha Networks(Chengdu) Co., LTD
Shanghai Branch

TEL: (86-21)61609650 EXT: 8020
FAX: (86-21)61609650 EXT: 8041
ADD: Suite 301, No.10, 198 Lane, Zhangheng Road,
     ZJ Hi-Tech Park, Shanghai, China 201204


[-- Attachment #2: example.tex --]
[-- Type: application/x-tex, Size: 579 bytes --]

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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:[~2009-10-19 23:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 12:49 Thomas A. Schmitz
2009-10-19 14:10 ` Wolfgang Schuster
2009-10-19 14:28   ` Thomas A. Schmitz
2009-10-19 14:34     ` luigi scarso
2009-10-19 16:17     ` Alan BRASLAU
2009-10-19 23:47       ` Joshua Lee [this message]

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=20091019234734.GA29021@josh-dev \
    --to=muzili@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).