From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83494 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Numbering enumerations in mkiv Date: Mon, 22 Jul 2013 15:42:18 +0200 Message-ID: <9FC0DF87-8AE0-4DAD-9DE1-EED7F6EDB2A8@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1374500574 25343 80.91.229.3 (22 Jul 2013 13:42:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 13:42:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 22 15:42:55 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 1V1GO7-0006kN-3p for gctc-ntg-context-518@m.gmane.org; Mon, 22 Jul 2013 15:42:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 841A3101EA; Mon, 22 Jul 2013 15:42:40 +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 jUlL8HF+A6-t; Mon, 22 Jul 2013 15:42:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3D216101E6; Mon, 22 Jul 2013 15:42:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28F29101E6 for ; Mon, 22 Jul 2013 15:42:27 +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 jRVig7XPMNoI for ; Mon, 22 Jul 2013 15:42:07 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 32CB9101E3 for ; Mon, 22 Jul 2013 15:42:07 +0200 (CEST) Original-Received: from mail-ee0-x235.google.com (mail-ee0-x235.google.com [IPv6:2a00:1450:4013:c00::235]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6MDgK79001304 for ; Mon, 22 Jul 2013 15:42:20 +0200 Original-Received: by mail-ee0-f53.google.com with SMTP id c41so3866337eek.40 for ; Mon, 22 Jul 2013 06:42:20 -0700 (PDT) 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:x-mailer; bh=D76y/tsLOneozLpSlsqvH50OHJFShi296wcRNjyV+gY=; b=pQtvpk7QEnB6S8OsZVnmCVHohVjO8cdEacuAaVZIfMbAexv7DSRi/IHR3OEJ4alssv SBJjQbHSrn7FjIqGM2qEkAEC3KUR8XUikOlqDECLIG8q0eqCB5vCmitHn1rSBE3bqANO ywbXGyUhIfnyN659bRdZK3kyGEOXI5+SjGCoi6zqpusGi8UURAHndg8buQ/sfYHHf5sr Se7eRiCgbdaSC4P8Nnp0cbLqmSeX+oelMTCj5qS02U2KfjDuBJlZcfkjrbQS6KnV5Bcv +I67TGsroK22i8TiJws4OpK+L6D5geI9fpu6LfDTOFRv/+EsdQaiR8rVRS55xq34VBs4 Jkgw== X-Received: by 10.15.31.9 with SMTP id x9mr27765837eeu.103.1374500540018; Mon, 22 Jul 2013 06:42:20 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf86c1.pool.mediaWays.net. [77.191.134.193]) by mx.google.com with ESMTPSA id e44sm50864642eeh.11.2013.07.22.06.42.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Jul 2013 06:42:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0006 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07K3pGk6r - 36afa25a81dd - 20130722 (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:83494 Archived-At: Am 22.07.2013 um 15:28 schrieb Thomas Friedrich : > Hello, > = > the mechanism for how to share the numbering of enumerations seems to > have changed from mkii to mkiv. I used the following code to typeset > theorems and lemmata in mkii. The typeset is very different when > complied with mkiv: In the following code, for example, the lemma is > missing its number, and there is an additional line break after each > theorem title. > = > ~~~ snip ~~~ > \setupcolors[state=3Dstart] > = > \setupframedtexts > [width=3D\makeupwidth, > frame=3Doff, > bottomframe=3Don, > topframe=3Don, > background=3Dscreen, > backgroundscreen=3D.95] > = > \setupenumerations > [title=3Dyes, > style=3Dnormal, > list=3Dall, > before=3D{\blank[big]}, > after=3D{\blank[big]}, > location=3Dserried, > width=3Dbroad, > distance=3D0.5em, > headstyle=3Dbold, > titlestyle=3Dbold, > way=3Dbychapter, > conversion=3Dnumbers, > before=3D\startframedtext, > after=3D\stopframedtext] > = > \defineenumeration > [theorem] > [text=3DTheorem, listtext=3D{Theorem }] > = > \defineenumeration > [lemma] > [text=3DLemma, listtext=3D{Lemma }, number=3Dtheorem] > = > \starttext > \theorem Something $a=3Dbc$. > = > \theorem Something else. > = > \lemma And something. > = > \theorem And something else. > = > \stoptext > ~~~ snip ~~~ > = > How can I mimic the original typeset produced by 'texexec', so I can use = mkiv? 1. The name of the location key was changed to alternative (i.e. alternativ= e=3Dserried). 2. To use the counter of another enumeration you need the counter key (i.e. counter=3Dtheorem) but you can also make \lemma a copy of \theorem= with \defineenumeration[lemma][theroem][text=3DLemma,=85] 3. You don=92t have to enable colors because MkIV enables them by default. 4. The name of the conversion key has changed to numberconversion. 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 ___________________________________________________________________________= ________