From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Numbering sections
Date: Mon, 2 Sep 2013 15:28:56 +0200 [thread overview]
Message-ID: <055BEF3D-7D21-491D-A60D-A3AE1289EF5E@gmail.com> (raw)
In-Reply-To: <522490E1.2050007@mmnetz.de>
Am 02.09.2013 um 15:21 schrieb "H. Özoguz" <h.oezoguz@mmnetz.de>:
>> You can the section number with \getmarking[sectionnumber], the chapter number with \getmarking[chapternumber] etc.
>
> Thanks Wolfgang!
>
> And another question about numbering: How can I let start the numbering of chapters with the number n (not 1, as default)? E.g. with n=0 or n=2?
To start chapters with a larger number you have to add \setupheadnumber[chapter][<n-1>] to your document,
when the first chapter should start with 0 you need a conversion which prints always 1 less than the real number.
\defineexpandable[1]\Previousnumber
{\number\numexpr#1-1\relax}
\defineconversion[previousnumber][\Previousnumber]
\setuphead[chapter][conversion=previousnumber]
\starttext
\dorecurse{5}{\chapter{Chapter #1}}
\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:[~2013-09-02 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 13:21 "H. Özoguz"
2013-09-02 13:28 ` Wolfgang Schuster [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-09-02 13:55 "H. Özoguz"
2013-09-02 12:45 "H. Özoguz"
2013-09-02 12:54 ` 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=055BEF3D-7D21-491D-A60D-A3AE1289EF5E@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).