From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86479 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Feature Request: ToC page number alternative Date: Wed, 26 Feb 2014 11:31:04 -0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1393443069 9572 80.91.229.3 (26 Feb 2014 19:31:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2014 19:31:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 26 20:31:20 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 1WIkCL-0003CL-Rc for gctc-ntg-context-518@m.gmane.org; Wed, 26 Feb 2014 20:31:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB47D101EC; Wed, 26 Feb 2014 20:31:16 +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 UrYnkpXadvFq; Wed, 26 Feb 2014 20:31:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 93F3C101E3; Wed, 26 Feb 2014 20:31:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E5721101E3 for ; Wed, 26 Feb 2014 20:31:12 +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 pOTgUVExjPaY for ; Wed, 26 Feb 2014 20:31:11 +0100 (CET) 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 95543101E1 for ; Wed, 26 Feb 2014 20:31:06 +0100 (CET) Original-Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1QJV43Q025402 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 26 Feb 2014 20:31:05 +0100 Original-Received: by mail-ie0-f180.google.com with SMTP id ar20so1107593iec.39 for ; Wed, 26 Feb 2014 11:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7zYeNXemZcoI2shzsRMwbObX7TSCms9EpJP/fcm5p70=; b=kVsuei1iqZUv1KYKld4Lz1Ep7qHk8Bj+/IYvzZB9uyC8BzKkxMiBmQdZc1xQaLzR++ bEgDbM2Jj8QGsuA/PXjJgZPofFeIYCqB7CFXkTaLfne1luuklcJVh5xbG1MZf+lzyeiX EQ4ecGu3UK3dq/atEdl5+K8KRDFPCIFVEKT8LbtDKmNGoNzANWCyU5ZRWltVS/K9yTrx LDE20p/qeNYCVkzpb4QdLKWA/kTZ00sxSzMCTn2QAJUJYdbxRIwsbIKO93legGMh3LzM ys/hHeStCXICL2ADN46L6alM0lgTao9e0Qi1BuP9jWUGn64yKI1+Cgb0ibTREBbbNHa6 CFyQ== X-Received: by 10.50.137.100 with SMTP id qh4mr28972751igb.4.1393443064163; Wed, 26 Feb 2014 11:31:04 -0800 (PST) Original-Received: by 10.43.96.71 with HTTP; Wed, 26 Feb 2014 11:31:04 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Lv7v5tW - 79af7a2675dd - 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:86479 Archived-At: 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. For example: \setupinteraction[state=start,] \setupcombinedlist[content][interaction=all,] \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=command, command=\SectionToCEntry, ] \starttext \placecontent \dorecurse{4}{ \chapter[title={Chapter}] \page \section[title={Section A}] \dorecurse{5}{\input knuth} \section[title={Section B}] \dorecurse{5}{\input ward} } \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________