From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85587 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: wider item numbering in toc Date: Sat, 7 Dec 2013 12:11:31 +0100 Message-ID: <0C588C9B-D7F0-4223-849C-97A86E773FC3@gmail.com> References: <31C4D41A-CE79-4C18-AFAF-37E67FC2D1D7@gmail.com> <725C6E2F-5EE6-49D9-92CF-5D5088BE843F@uva.nl> <62257DB8-6040-42F1-876D-6F9B5DEA9655@gmail.com> <31900171-E137-4A9F-A486-752196399EC5@uva.nl> <2993BFF2-BA9E-459A-A955-0368C9EB6755@gmail.com> <8656B715-726A-46D8-A5E2-05BD0E067D71@uva.nl> <6C55D7EA-AA82-4D9D-9F6B-A5325577D63E@gmail.com> 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: multipart/mixed; boundary="===============1185132271==" X-Trace: ger.gmane.org 1386414694 20508 80.91.229.3 (7 Dec 2013 11:11:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Dec 2013 11:11:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 07 12:11:42 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 1VpFnR-00053P-O9 for gctc-ntg-context-518@m.gmane.org; Sat, 07 Dec 2013 12:11:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5ACD101F5; Sat, 7 Dec 2013 12:11:40 +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 RqqFXAAfinyX; Sat, 7 Dec 2013 12:11:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 83BE8101F7; Sat, 7 Dec 2013 12:11:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 97C47101F7 for ; Sat, 7 Dec 2013 12:11:37 +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 V3ygxsF8aori for ; Sat, 7 Dec 2013 12:11:36 +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 B34BB101F5 for ; Sat, 7 Dec 2013 12:11:36 +0100 (CET) Original-Received: from mail-bk0-x229.google.com (mail-bk0-x229.google.com [IPv6:2a00:1450:4008:c01::229]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rB7BBZtw025823 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 7 Dec 2013 12:11:36 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id v15so684267bkz.14 for ; Sat, 07 Dec 2013 03:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=PhUe5peNPpBvH7hhV68Qa9UHBzmEAw6mYUCOyuP1Wvc=; b=fnEl7H9v6h/VL3h18oVnYZAa7zmj67HAm5okXNz++MnZNfAZB/MAprhjLzYvWItv9b vm4AGOqE+vcP+s/bnXoMPcC00RKqYsXvEG3tcgMN7xyWHnXNShnoJJbnU0tPN2P0IL/i ye2SUDondy//rjaiFbD+nUk9n7yCLZP8jlGUdSLktE/9LJt8/RDOl8zXLsOJM2K1bVD2 IwYB5cvDtRmym+FdcC2WaBpzjnzujUwDX2UDkSBrBwFsMSz3expqKCTMgez4SL4DNzgc AGe8AU06hHcHaL3eKSK8/ly1FuptlsdKA7KJg8gJ14ML/3dnitNmE/rIctImisrrGpBI h0HA== X-Received: by 10.204.203.12 with SMTP id fg12mr2694343bkb.31.1386414695778; Sat, 07 Dec 2013 03:11:35 -0800 (PST) Original-Received: from keima.localdomain (x2f2322b.dyn.telefonica.de. [2.242.50.43]) by mx.google.com with ESMTPSA id tb8sm1613381bkb.10.2013.12.07.03.11.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Dec 2013 03:11:33 -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::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KWzbAqW - 1757675aa22a - 20131207 (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:85587 Archived-At: --===============1185132271== Content-Type: multipart/alternative; boundary="Apple-Mail=_4E7BDBCE-BF7C-44F5-BFEF-C9963E338CFD" --Apple-Mail=_4E7BDBCE-BF7C-44F5-BFEF-C9963E338CFD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 06.12.2013 um 21:04 schrieb H. van der Meer : >> \define[1]\ChapterListNumber >> {\simplealignedbox{\listparameter{width}}{flushright}{#1}} >>=20 >> = \setuplist[chapter][width=3D2em,distance=3D1em,numbercommand=3D\ChapterLis= tNumber] >=20 > This now gives a toc looking the way I like. > May I lay at your foot a plea for a change/additional parameter here? = \setuplist[][itemalign=3Dleft/right] or something in that sense. > For numbered chapters I consider an alignment as below most natural, = although opinions may differ. When there would a key for this it should be named numberalign. > By the way, the \define[1] eludes me. Why this particular [1] there? You specify the number of argument for the \define command with the = number, e.g. \define\command{=85} is equal to \unexpanded\def\command{=85} and \define[3]\command{=85} is equal to \unexpanded\def#1#2#3{=85} When you want to create a command which is similar to \def (without = \unexpanded) you can use \defineexpandable[]\command >> Why do you think lists use the itemgroup/itemize mechanism? >=20 > I didn=92t think that exactly, but just tried it in despair and having = the idea that toc items are set as an itemized list (it looks that way, = isn=92t it?). No, they are unrelated but both mechanism use the same low level = commands for the indentation of the text. Wolfgang= --Apple-Mail=_4E7BDBCE-BF7C-44F5-BFEF-C9963E338CFD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 06.12.2013 um 21:04 schrieb H. van = der Meer <H.vanderMeer@uva.nl>:

\define[1]\ChapterListNumber
 {\simplealignedbox{\li= stparameter{width}}{flushright}{#1}}

\setuplist[chapter][width=3D2e= m,distance=3D1em,numbercommand=3D\ChapterListNumber]
=
This now gives a toc looking the way I like.
May I lay at = your foot a plea for a change/additional parameter here? = \setuplist[][itemalign=3Dleft/right] or something in that = sense.
For numbered chapters I consider an alignment as below = most natural, although opinions may = differ.

When there would a = key for this it should be named numberalign.

By the way, the \define[1] eludes me. Why this = particular [1] there?

You specify = the number of argument for the \define command with the number, = e.g.

    \define\command{=85} is = equal to = \unexpanded\def\command{=85}

and

    \define[3]\command{=85} is equal to = \unexpanded\def#1#2#3{=85}


When = you want to create a command which is similar to \def (without = \unexpanded) you can use = \defineexpandable[<number>]\command

Why do you think = lists use the itemgroup/itemize = mechanism?

I didn=92t think that exactly, = but just tried it in despair and having the idea that toc items are set = as an itemized list (it looks that way, isn=92t = it?).

No, they are = unrelated but both mechanism use the same low level commands for the = indentation of the = text.

Wolfgang
= --Apple-Mail=_4E7BDBCE-BF7C-44F5-BFEF-C9963E338CFD-- --===============1185132271== 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 ___________________________________________________________________________________ --===============1185132271==--