From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85299 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Unexpected behaviour of enumeration in mkiv Date: Mon, 18 Nov 2013 10:45:06 +0100 Message-ID: <2BCBB3D2-B817-4574-BBE6-A133AB1C2B52@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384767911 31254 80.91.229.3 (18 Nov 2013 09:45:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 09:45:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 18 10:45:17 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 1ViLOO-0006wS-Iu for gctc-ntg-context-518@m.gmane.org; Mon, 18 Nov 2013 10:45:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0CC5101EB; Mon, 18 Nov 2013 10:45:15 +0100 (CET) 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 PC+VVDZp012B; Mon, 18 Nov 2013 10:45:10 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8EF5E101F2; Mon, 18 Nov 2013 10:45:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BB15C101F2 for ; Mon, 18 Nov 2013 10:45:09 +0100 (CET) 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 UKL2ZUdrwMqt for ; Mon, 18 Nov 2013 10:45:08 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 9EC00101EB for ; Mon, 18 Nov 2013 10:45:08 +0100 (CET) Original-Received: from mail-bk0-x236.google.com (mail-bk0-x236.google.com [IPv6:2a00:1450:4008:c01::236]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAI9j7fJ018192 for ; Mon, 18 Nov 2013 10:45:07 +0100 Original-Received: by mail-bk0-f54.google.com with SMTP id v16so668012bkz.13 for ; Mon, 18 Nov 2013 01:45:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=IGqShtIKfE5OM9+wlGDiuMG8qhffTUl9YkRP1L7hBqk=; b=E5Jj6v0pdSgzNAhTAIjhIf+lHLQMUvdh+OzA6iLk0J3l54HleZzLTqo/0OiGoMG7Fi aq8DXxMRLzzsEzH2PH27/OKTWCg9X6R4Pa65F99Lw55m9bcsk4c3FDdlMj5pPeqZOHoL E20ldOnLrxTyfI8GeYoga6ZoOtckZOoqOlXPfMq/onOcFtVWrrGyhpRuO+hv6FDchzLk 37947IYJPd/Cw+68arEfOaZL5UecykwgbX/uA+GfRVcZcme74BHWoFQ3/7FyofQ8kBtb i3lGnXDC3VjTuTPJa8bT2G6jDrQzbtOug/W+gVVNwsmOiiAIEoU5zvzuc8QuSteqr5+L VtCw== X-Received: by 10.204.226.135 with SMTP id iw7mr11946036bkb.4.1384767907421; Mon, 18 Nov 2013 01:45:07 -0800 (PST) Original-Received: from keima.localdomain (x2f231ba.dyn.telefonica.de. [2.242.49.186]) by mx.google.com with ESMTPSA id z6sm15972332bkn.8.2013.11.18.01.45.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 01:45:06 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1822) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KOVJ719 - 16505e43bb35 - 20131118 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:85299 Archived-At: Am 15.11.2013 um 17:02 schrieb Thomas M=F6bius : > Hi, > = > please have a look at the minimal example at the bottom. I am > typesetting theorems and lemmata which are numbered consecutively > within chapters in a book. I used the same code for a document > written in mkii, and I thought I could just reuse it in mkiv. > Obviously, there is something I am missing. Question: How do I get > the same output when compiling the following code with 'context' as > when compiled with 'texexec'. > = > When compiled with 'context', the chapter number is missing in the > numbering of theorems. Lemmas are not numbered at all. > = > ~~~snip~~~ > \setupenumerations > [title=3Dyes, > style=3Dnormal, > list=3Dall, > before=3D{\blank[big]}, > after=3D{\blank[big]}, > location=3Dserried, Change =93location=3Dserried=94 to =93alternative=3Dserried=94. > width=3Dbroad, > distance=3D0.5em, > headstyle=3Dbold, > titlestyle=3Dbold, > way=3Dbychapter, > conversion=3Dnumbers] You have to change =93conversion=94 to =93numberconversion=94 but this isn= =92t necessary because numbers are the default conversion format. To have chapter numbers as part of the counter add =93prefix=3Dyes=94. > \defineenumeration > [theorem] > [text=3DTheorem, listtext=3D{Theorem }] > = > \defineenumeration > [lemma] > [text=3DLemma, listtext=3D{Lemma }, number=3Dtheorem] To use the counter of another enumeration use =93counter=3Dtheorem=94, not = =93name=3Dtheorem=94. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________