From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81150 Path: news.gmane.org!not-for-mail From: Jonathan Barchi Newsgroups: gmane.comp.tex.context Subject: Re: TOC: Chapters with and without page-numbers Date: Fri, 15 Mar 2013 13:24:30 -0400 Message-ID: References: <5142C3C5.4020307@mmnetz.de> <20130315115311.07a2e1e6@localb.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363368300 20521 80.91.229.3 (15 Mar 2013 17:25:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Mar 2013 17:25:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 15 18:25:22 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UGYNb-0008JR-Mw for gctc-ntg-context-518@m.gmane.org; Fri, 15 Mar 2013 18:25:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AC85210202; Fri, 15 Mar 2013 18:24:56 +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 Yzfk7+T0O0YH; Fri, 15 Mar 2013 18:24:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DA8E4101EE; Fri, 15 Mar 2013 18:24:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28AF9101EE for ; Fri, 15 Mar 2013 18:24:54 +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 KLETxrVGx7o1 for ; Fri, 15 Mar 2013 18:24:52 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 7D8B6101E8 for ; Fri, 15 Mar 2013 18:24:52 +0100 (CET) Original-Received: from mail-oa0-f50.google.com (mail-oa0-f50.google.com [209.85.219.50]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2FHOoMs003146 for ; Fri, 15 Mar 2013 18:24:51 +0100 Original-Received: by mail-oa0-f50.google.com with SMTP id l20so3621053oag.23 for ; Fri, 15 Mar 2013 10:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=kzeJ8/xk0KMmZWmhX5BtAyYm4/kegcrQ3AoT55xQyDw=; b=lKXx8P9pB81FDyTMi2tScuYHvhsMHajGbFwawcu2Pq3wlABQiUb9BG5eW5jtzOPMJz D2cm42pGeHe/naw2epfN0dE84EnWMXiKY7EWpUpfb4PNDAW4R0E8PimeIHJkK23eJ0vL 6Yn1WngsfkAn77Rn7RrZLbN6N39dkbsoqk14wOOFOxoS23aa1Vl0PalBFm5dZ8zd+yyd rXeyOcNCeKj7dF67+v92BOTLd+lceBLkGxwgZz8dVM9ml941uIRTgDInRdvoAjNOZaLs LsFNgwsUdSuPkImNtKM0r0atrtdi2sVlC0lS00/Yu3Kl0TmOBnym7ACr/qQPoW1+0Xqq CUsQ== X-Received: by 10.182.245.72 with SMTP id xm8mr3360119obc.1.1363368290553; Fri, 15 Mar 2013 10:24:50 -0700 (PDT) Original-Received: by 10.60.144.226 with HTTP; Fri, 15 Mar 2013 10:24:30 -0700 (PDT) In-Reply-To: <20130315115311.07a2e1e6@localb.wexfordpress.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.50; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJbRoPfp - 47a73cadecc7 - 20130315 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:81150 Archived-At: On Fri, Mar 15, 2013 at 11:53 AM, john Culleton wro= te: > On Fri, 15 Mar 2013 09:07:33 +0100 > "Keith J. Schultz" wrote: > >> Hi, >> >> I could find any options to do what you want. >> >> I assume you would have to redefine completecontent command to get >> the functionality you need. >> >> I have not checked, but I assume that completecontent accesses a >> Lua-table with the TOC information. It should be easy enough to use >> this table to create the effect you want. >> >> regards >> Keith. >> >> Am 15.03.2013 um 07:46 schrieb H. =D6zoguz : >> >> > Maybe I have not made it clear, what I mean? >> > >> > My Minexample is: >> > >> > \setuplist[chapter][pagenumber=3Dno] >> > \starttext >> > \completecontent >> > \chapter{Chapter 1} >> > \section{Section 1} >> > \chapter{Chapter 2} >> > \stoptext >> > >> > Now Chapter 1 is without pagenumber in the TOC, correct, because it >> > has a section after the chapter-title! But Chapter 2 has no >> > sections, so it need a page number, how to do that? >> >> ________________________________________________________________________= ___________ >> 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 >> ________________________________________________________________________= ___________ > > > With other versions of TeX (eplain comes to mind) You can edit the > TOC file external to the tex program, and then take a second run > without recording page numbers. There is a command for this. > With Context this might be too complex. > > I see no problem with having a page number on chapter 1 however. > Most books look that way. The Chicago Manual of Style has: > > Proofs (a chapter) 91 > Introduction (a section) 91 > > > -- > John Culleton > Wexford Press > Free list of books for self-publishers: > http://wexfordpress.net/shortlist.html > PDF e-book: "Create Book Covers with Scribus" > available at http://www.booklocker.com/books/4055.html > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ I think you may be able to do this with a combination of \setupheads and \setuphead commands, along with possibly defining a new head that inherits from chapter (\definehead[name][chapter], then \setuphead[name]). I don't really have time to play much with this now, but see the following links for a bunch more information on the commands above and on section heads in general. There are several arguments to setupheads/setuphead that modify how numbering is handled. 1. http://wiki.contextgarden.net/Category:Command/Sections 2. http://wiki.contextgarden.net/Titles The second article, in particular, has been very helpful for me in setting up some of the headers for my dissertation. Jon ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________