From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84057 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?=22H=2E_=D6zoguz=22?= Newsgroups: gmane.comp.tex.context Subject: Re: Numbering sections Date: Mon, 02 Sep 2013 15:55:16 +0200 Message-ID: <522498C4.4010501@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378130125 30786 80.91.229.3 (2 Sep 2013 13:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 13:55:25 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 02 15:55:29 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGUbH-000250-7q for gctc-ntg-context-518@m.gmane.org; Mon, 02 Sep 2013 15:55:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A6AB01023D; Mon, 2 Sep 2013 15:53:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PkSpVUdUWhva; Mon, 2 Sep 2013 15:53:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C74DD10208; Mon, 2 Sep 2013 15:53:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3137710208 for ; Mon, 2 Sep 2013 15:53:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2AdRHcqH4BKF for ; Mon, 2 Sep 2013 15:53:51 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 52C0F101DE for ; Mon, 2 Sep 2013 15:53:51 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r82DtI1D014896 for ; Mon, 2 Sep 2013 15:55:18 +0200 Original-Received: from [192.168.0.190] (dyndsl-091-096-149-100.ewe-ip-backbone.de [91.96.149.100]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0LxKk2-1W5a3z44ni-017GzJ; Mon, 02 Sep 2013 15:55:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 X-Provags-ID: V02:K0:Vhd9ZOPyEW0s0KiB5mbAX9SVDNfIKEt4cW3g/kH/qrN /dEYdN6RvIyX6BuZEgjbuihIWwK2zKiIudlyfOaICBYxReIidJ FZSGANqkzEomtrgPUVQ9w2++A518N5gwSZHmzmMzqLNTr99Q+O 66hZVHefj/m1eCkKtX/jpYixIz0JQBKpI219/RDhSmT85YJAeo IAROVnXHCdFARgKvSTxtQWs5zLUEHqfDErpd/t921JGGl4y4qg fPaFHioAA3hfg0Z0WOxtkKhPzzrSG/WaaoPW+EaKx5t+z3NXyA o4eNbqZwy6epu6yDx2Y34qp0qSlJ9AgqUGWdKOHc+B9KBWbx/9 8e11YDGw7I5a+WB8P6M8= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.9; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TKkdTiaT - 4ee548368ca1 - 20130902 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84057 Archived-At: 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 ___________________________________________________________________________________