From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96021 Path: news.gmane.org!.POSTED!not-for-mail From: Florian Leupold Newsgroups: gmane.comp.tex.context Subject: Enumeration: chapter in counter, problem next to placefigure, and documentation issues Date: Sun, 4 Sep 2016 19:37:05 +0200 Message-ID: <753E37B0-7521-4DF5-8FAB-5DA799DCE9C6@posteo.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/mixed; boundary="===============5289293905526018168==" X-Trace: blaine.gmane.org 1473010666 13826 195.159.176.226 (4 Sep 2016 17:37:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Sep 2016 17:37:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 04 19:37:42 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgbMQ-0002ZP-9w for gctc-ntg-context-518@m.gmane.org; Sun, 04 Sep 2016 19:37:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AA27416E3D; Sun, 4 Sep 2016 19:37:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WeXZJ_kNcW8p; Sun, 4 Sep 2016 19:37:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 02EC716E42; Sun, 4 Sep 2016 19:37:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 84B0F16E3E for ; Sun, 4 Sep 2016 19:37:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vgk79CM4-_zG for ; Sun, 4 Sep 2016 19:37:20 +0200 (CEST) Original-Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D660616E3D for ; Sun, 4 Sep 2016 19:37:10 +0200 (CEST) Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 9C83920A35 for ; Sun, 4 Sep 2016 19:37:08 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3sS0RS3K7pz105g for ; Sun, 4 Sep 2016 19:37:06 +0200 (CEST) X-Pgp-Agent: GPGMail X-Mailer: Apple Mail (2.3124) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:96021 Archived-At: --===============5289293905526018168== Content-Type: multipart/signed; boundary="Apple-Mail=_C48A2FC0-A3F7-4A15-AE6F-8E7001F91597"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_C48A2FC0-A3F7-4A15-AE6F-8E7001F91597 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear list, I am trying to use enumerations with MKIV I am a bit at a loss when it = comes to the documentation (see below for a few issues). Working on a concrete example, I have come pretty close to what I want = for my enumeration =E2=80=98theorem=E2=80=99: \setupexternalfigures[location=3Ddefault] \setupenumerations[ alternative=3Dleft, text=3DTheorem, headstyle=3Dbold, title=3Dno, way=3Dbychapter, stopper=3D{:}, distance=3D1ex, width=3Dfit, style=3Dnormal, hang=3Dfit] \defineenumeration[theorem] \starttext \chapter{First chapter} \starttheorem The square on the hypotenuse is equal to the sum of the squares on the = other two sides. \stoptheorem \chapter{Second chapter} \placefigure[right, none]{}{\externalfigure[mill]} \starttheorem The square on the hypotenuse is equal to the sum of the squares on the = other two sides. \stoptheorem \stoptext QUESTIONS: 1) I would like to prefix the theorem counter with the chapter number, = such that the number of the second theorem becomes 2.1. Can this be = done? 2) Is it possible to circumvent the misplacement of the second theorem = due to the placed figure? Ideally, the theorem would just use the space = to the left it. Issues with the documentation: - In =E2=80=9CConTeXt Commands=E2=80=9D, it says on page 224 that = \setupenumeration inherits from \setupcounter; but in =E2=80=9CConTEXt = reference manual", it says on page 246 that \setupenumerations inherits = from \setupdescriptions. - In =E2=80=9CConTEXt reference manual=E2=80=9D, the key =E2=80=9Clocation= =E2=80=9D for \defineenumeration should probably replaced by = =E2=80=9Calternative=E2=80=9D. Right now, all examples on page 247 are = unaffected by this setting and hence look the same. - The wiki seems to use MKII, which makes a difference for the example = on http://wiki.contextgarden.net/Command/enumeration, which compiles = differently under ConTeXT online. Thanks for your help! Best regards, Florian --Apple-Mail=_C48A2FC0-A3F7-4A15-AE6F-8E7001F91597 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXzFvCAAoJECjJXJRicdfxFHYP/R+XXwfDhPMVL/anyu/2GgPo vFCVAW6y0jvjgAOCUXj7bBFQYONcTwfbtNV8mdd9E81PNxiMbnwG1Q+bFLot2xGA KKAFK07b7qJpZabhnrYlOB2G8tJgBMEIruZo6qfUaOsnBdpNMkDoyfHXrCA0IUeG N1aVLF5add3hchRBV7x63phP+YuzFTb+380wCGl+smBSMpQoLXzkBkQz4UYLa2vY 0GZp2jbm/ClJjuLqLNAXWs+IqW12DRJMj0vHPdJ8DUg5flbYjSads6fUxG+tftaq oLNCnw5kJmPbDGGXLxQnWiKNXm0SEa5lzvU0/9QRYClfXZf1qrFRBNkBudXh75h4 Y/x6zpjgGTsa9Q0RRsye6Kbdn8+DGTa+V76HgOffGxEQ2EYI5rp5vR0JW6lak2HR l7TFch6btEdvDfbU9jOQ8+rihbDgRQKsHCPOSTsKuxVBvXUKXAM1ijBZJ42h2TVc Q1rjt2YbRp+RsLJn0fS7t7MbjICNy+op4UM/w46xJQIaGGjqdAR31KnVHwFq44gD GJZ+VYJSgAi3dDcmYSo7IAmo+6I/JV2f0aclfzNir4fwFsYkU/+X5WlI5gZfW7HG QrlO3wm9H5+bVXAFaiz94IHFiE28z8RDTRubU3Zb2mydPC0VKRGYnQYit3VwYY8+ W+XX1RtTpZQMZe7jwvv7 =pTfr -----END PGP SIGNATURE----- --Apple-Mail=_C48A2FC0-A3F7-4A15-AE6F-8E7001F91597-- --===============5289293905526018168== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5289293905526018168==--