From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75385 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Enumerations: location=serried ignored Date: Wed, 28 Mar 2012 18:20:20 +0200 Message-ID: References: <4F72FAD5.5070203@sercz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/mixed; boundary="===============1270766600==" X-Trace: dough.gmane.org 1332951632 5536 80.91.229.3 (28 Mar 2012 16:20:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2012 16:20:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 28 18:20:29 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SCvbp-0005KI-5R for gctc-ntg-context-518@m.gmane.org; Wed, 28 Mar 2012 18:20:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F0E810194; Wed, 28 Mar 2012 18:20:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OrcWPW8mg4sP; Wed, 28 Mar 2012 18:20:26 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B7F9101E2; Wed, 28 Mar 2012 18:20:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1CA6D101E2 for ; Wed, 28 Mar 2012 18:20:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xGsn0tlWvkCO for ; Wed, 28 Mar 2012 18:20:24 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id F1ADD10194 for ; Wed, 28 Mar 2012 18:20:23 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2SGKMOG001885 for ; Wed, 28 Mar 2012 18:20:22 +0200 Original-Received: by bkwq16 with SMTP id q16so1465786bkw.14 for ; Wed, 28 Mar 2012 09:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=naU31Za8E7RpR4HtA0ph/LKnFJ0tYzuJvfFBUUm95BA=; b=EIqN8mqXDnL9guom0Vb/80XFa13jcTpdwB/D5ITmTheZ1qkocjCtzqyzmTWZqX4KU2 BDArB6pon010niJSQtCF7BqCk6jAYj9AHDm2C1IaoOos556BUfOqKxPiCB5E4+KFYawS jtwyXnXzz4bqayVxxpjGXWvZDh8BdXstShIPrr58BgADwt7HKDHlaqXhxkfsXmW8Efa+ xCaoP/pG6kVE7Lf0HOe8BYXe8+XIWRf7jkHphSPw0DuK2GwNGpeE2+lM8EbNzlOu+ugm HdPc5b6Ff3vpHeyGWGfWDAM51dvv7ivoVfHhbQmEDGiZ1MEjXOKDYU2Y4K7DYg1DqO/P UC3Q== Original-Received: by 10.204.150.82 with SMTP id x18mr12075470bkv.10.1332951622237; Wed, 28 Mar 2012 09:20:22 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFDC59.dip.t-dialin.net. [87.175.220.89]) by mx.google.com with ESMTPS id p19sm7742776bka.1.2012.03.28.09.20.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Mar 2012 09:20:21 -0700 (PDT) In-Reply-To: <4F72FAD5.5070203@sercz.de> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RGP4kmHH - a8dfead92a8e - 20120328 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:75385 Archived-At: --===============1270766600== Content-Type: multipart/alternative; boundary="Apple-Mail=_295BC183-421B-454E-84FD-45CFA5CCF5EF" --Apple-Mail=_295BC183-421B-454E-84FD-45CFA5CCF5EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 28.03.2012 um 13:49 schrieb Diane Uschner: > Hello, >=20 > I noticed that the enumerations environment is behaving oddly when = used for theorem environments. In the following minimal example, the = option "location=3Dserried" (which should result in an inline heading) = is ignored. >=20 > Furthermore, the number of corrolary is not displayed, instead of = being shared with theorem. The general idea of this exaple is from [1]. = I've not managed to figure out on my own what I'm doing wrong. Any = suggestions are appreciated.=20 1. The =93location=94 key was replaced with the =93alternative=94 key. 2. You need the =93counter=94 key to share counters. \setupenumeration[alternative=3Dserried,width=3Dbroad,distance=3D0.5em] \defineenumeration[theorem][text=3DSatz,title=3Dyes] \defineenumeration[corollary][counter=3Dtheorem,text=3DKorollar] \starttext \starttheorem[title=3D{Pythagoras Theorem}] The square on the hypotenuse is equal to the sum of the squares on = the other two sides. \stoptheorem \startcorollary The sum of angles of a quadrilateral is 360 degrees. \stopcorollary \stoptext Wolfgang= --Apple-Mail=_295BC183-421B-454E-84FD-45CFA5CCF5EF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
=20 =20
Hello,

I noticed that the enumerations environment is behaving oddly when used for theorem environments. In the following minimal example, the option "location=3Dserried" (which should result in an inline = heading) is ignored.

Furthermore, the number of corrolary is not displayed, instead of being shared with theorem. The general idea of this exaple is from = [1]. I've not managed to figure out on my own what I'm doing wrong. Any suggestions are appreciated.

1. The =93location=94= key was replaced with the =93alternative=94 = key.

2. You need the =93counter=94 key to share = counters.

\setupenumeration[alternative=3Dse= rried,width=3Dbroad,distance=3D0.5em]
\defineenumeration[theorem= ][text=3DSatz,title=3Dyes]
\defineenumeration[corollary][counter= =3Dtheorem,text=3DKorollar]

\starttext
=
\starttheorem[title=3D{Pythagoras = Theorem}]
    The square on the hypotenuse is equal = to the sum of the squares on the other two = sides.
\stoptheorem

\startcorollary
    The sum of angles of a quadrilateral is 360 = degrees.
\stopcorollary

\stoptext
=

Wolfgang= --Apple-Mail=_295BC183-421B-454E-84FD-45CFA5CCF5EF-- --===============1270766600== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1270766600==--