From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86158 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Rearrange Table of Contents section page numbers Date: Fri, 31 Jan 2014 14:20:52 -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 1391206862 16807 80.91.229.3 (31 Jan 2014 22:21:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2014 22:21:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 31 23:21:11 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 1W9MSU-0005oK-Vp for gctc-ntg-context-518@m.gmane.org; Fri, 31 Jan 2014 23:21:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 235E0101FE; Fri, 31 Jan 2014 23:21:10 +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 Bk09rhm9EFJC; Fri, 31 Jan 2014 23:21:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8C707101E6; Fri, 31 Jan 2014 23:21:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE5A8101E6 for ; Fri, 31 Jan 2014 23:21:06 +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 r-kr6KyBMWTQ for ; Fri, 31 Jan 2014 23:21:05 +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 06383101E3 for ; Fri, 31 Jan 2014 23:20:55 +0100 (CET) Original-Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0VMKrku025603 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 31 Jan 2014 23:20:54 +0100 Original-Received: by mail-ig0-f173.google.com with SMTP id c10so356277igq.0 for ; Fri, 31 Jan 2014 14:20:53 -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=8ojbiOGwXpkDAgJFqndmQcXD+J1tI+Ft21c4vvptyUY=; b=kJJ3NVDRb5lh9IIA7JOie4veysnjJjqvS/MyqdUaRkaOW+c856V3OnZpBbOgDuaA5u QWLZLui/7m8R208eaFW5kSsc9HTIEFRnK7PBFWUs2ZEscnFpCWSwyHcTG2OjT9Tyd4Kg UJx0i4O4kd/09qo1d4l+VOKAgtX3cljslhDn2CmBNqNG2hcT5cBZWODUdDdbzBcaEPot 4XDnE1Z76W1Hp7zEw4lqHIr/V6Pj/7mw1dPM8Gzd8VtdgYmQmvy1O+Fxm0l4BE6A3QnT aeuLAPBtqk246PF/uD/sLcsRxA7yN4eTlbnz9nXBGfOdm89rgo3pqwpuGhdXRgZNGeP8 IKkQ== X-Received: by 10.50.55.65 with SMTP id q1mr903827igp.4.1391206852939; Fri, 31 Jan 2014 14:20:52 -0800 (PST) Original-Received: by 10.43.96.71 with HTTP; Fri, 31 Jan 2014 14:20:52 -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:c05::22d; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LkKkSS6 - 60da4780e9e3 - 20140131 (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:86158 Archived-At: Hi, I am trying to recreate the following ToC entries: http://i.stack.imgur.com/ig6LX.png The code on the wiki uses: \doifelse\currentlistentrylocation{\structureheadlocation{chapter}} {{\bfb\currentlistentrytitle}} { \currentlistentrytitle}\NC\NR However, there are syntax errors and the conditional expression assumes that the ToC is being placed on every page. This assumption allows it to resolve the namedstructureheadlocation value. For a ToC at the start of a document, there is no "current chapter" and so the head location for the chapter entry returns 0. Here is what I have so far: \startsetups [list:TOC] \starttabulate \currentlistentrypagenumber{} \hskip 1em \NC \currentlistentrytitle{} \NR \stoptabulate \stopsetups \definelistalternative [TOC] [renderingsetup=list:TOC] % Format the ToC style. \setupcombinedlist[content][ alternative=TOC, ] \starttext \completecontent \startchapter [title=alpha] \stopchapter \startsection[title=alphasec] \stopsection \startchapter [title=beta] \stopchapter \startsection[title=alphasec] \stopsection \startchapter [title=gamma] \stopchapter \startsection[title=alphasec] \stopsection \stoptext How do you determine whether or not the chapter title should be displayed? Thank you! ___________________________________________________________________________________ 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 ___________________________________________________________________________________