From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86481 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Feature Request: ToC page number alternative Date: Wed, 26 Feb 2014 22:48:28 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1393451324 10165 80.91.229.3 (26 Feb 2014 21:48:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2014 21:48:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 26 22:48:54 2014 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 1WImLU-0007lN-RW for gctc-ntg-context-518@m.gmane.org; Wed, 26 Feb 2014 22:48:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E88E2101EA; Wed, 26 Feb 2014 22:48:51 +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 xR5AtAYFMR0x; Wed, 26 Feb 2014 22:48:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B688A101E3; Wed, 26 Feb 2014 22:48:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E10A101E3 for ; Wed, 26 Feb 2014 22:48:47 +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 zLd+s-9uBx4k for ; Wed, 26 Feb 2014 22:48:44 +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 D84C8101E1 for ; Wed, 26 Feb 2014 22:48:33 +0100 (CET) Original-Received: from mail-ea0-x236.google.com (mail-ea0-x236.google.com [IPv6:2a00:1450:4013:c01::236]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1QLmWfU023473 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 26 Feb 2014 22:48:33 +0100 Original-Received: by mail-ea0-f182.google.com with SMTP id b10so367802eae.13 for ; Wed, 26 Feb 2014 13:48:32 -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=1UIk9nmj41eyNA0RQhuNk2i/pacsfyfLBaDixmSuAi0=; b=e/QZyaP5DNa4UBalHj8vZEeVffWDsEHP/UMy5Kiu2kGcT5gECkvU2az5ZYqKo4o3tc +cgl7qNk0InFmtnxzyDLJZcDLYCWhg0HPp3wgBQZj228uKonnByClvLg8ALadmhm5H6e QsduitzPJLt4QYqEJM406Y3LvdA9Q7D9uQRDRRK4ZiPXFrPbYZxFoMqSIrfpcVQ1+Z2D 0BIqOQnWRiBk06roeLGNuKshbEQPBSe/HQxQZE1mK6T9iRSOh+D41rAIbphf9k0h2jxC oGSeWhIJnIt1lNtWrLbvXMQihYRH0SPRpN+h1xH1VToMx6mT0yo9z1Jbn6pNky3uqQgm ZV2A== X-Received: by 10.14.110.68 with SMTP id t44mr9417298eeg.74.1393451312762; Wed, 26 Feb 2014 13:48:32 -0800 (PST) Original-Received: from keima.localdomain (x2f221a8.dyn.telefonica.de. [2.242.33.168]) by mx.google.com with ESMTPSA id 48sm5448467eee.2.2014.02.26.13.48.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 13:48:31 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Lv9MxXC - c19df1b9fe03 - 20140226 (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:86481 Archived-At: Am 26.02.2014 um 20:31 schrieb Thangalin : > Hi, > = > The predefined alternative list setups (e.g., a, b, c...) provide > various ways to format the ToC with the page number to the right of > the list entry title. An alternative with the page number to the left > of the list entry title would be useful. > = > \unprotect > = > \define[3]\SectionToCEntry{% > \hbox \strc_lists_get_reference_attribute\v!all{% > \par \leftaligned\bgroup > \hbox to 2em{#3}% > \hskip 1em > \vtop{\hsize\dimexpr\textwidth-3em\relax#2} > \egroup \par% > } > } > = > \protect > = > = > \setuplist[section][ > alternative=3Dcommand, > command=3D\SectionToCEntry, > ] When you want a interactive list entry replace =93alternative=3Dcommand=94 = with =93alternative=3Dinteractive=94. \define[3]\SectionToCEntry {\leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2}% \egroup} \setuplist [section] [alternative=3Dinteractive, command=3D\SectionToCEntry] 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 ___________________________________________________________________________= ________