From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: Re: Numbering sections
Date: Mon, 02 Sep 2013 15:55:16 +0200 [thread overview]
Message-ID: <522498C4.4010501@mmnetz.de> (raw)
Thanks Wolfgang, nearly perfect, what I wanted.
The problem left is here:
\defineexpandable[1]\Previousnumber
{\number\numexpr#1-1\relax}
\defineconversion[previousnumber][\Previousnumber]
\setuphead[section][conversion=previousnumber]
\starttext
\dorecurse{5}{\chapter{Chapter #1}
\section{Section #1}
\section{Section #1}
\section{Section #1}
\section{Section #1}
}
\stoptext
Now I want the section-numbers in each chapter to start with x.1 (never
x.0). But I had to subtract from all section numbers 1, to let the
section numbers begin with 1 in the second chapter (my first chapter is
without numbering and without sections, there this question comes from).
So in the above example everything is fine, besides this "x.0", the
second numbers (indicating the section) should always begin with "1". Is
that possible?
Huseyin
___________________________________________________________________________________
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:[~2013-09-02 13:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 13:55 "H. Özoguz" [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-09-02 13:21 "H. Özoguz"
2013-09-02 13:28 ` Wolfgang Schuster
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=522498C4.4010501@mmnetz.de \
--to=h.oezoguz@mmnetz.de \
--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).