From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47459 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: TOC question Date: Tue, 17 Feb 2009 09:44:09 +0100 Message-ID: <326847810902170044l31b052dm2b9279074a5f83e6@mail.gmail.com> References: <326847810902161022l635ee3fja3b535dbdc163c86@mail.gmail.com> <9761F817-5E76-4039-A5E5-7A4395F05BB7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1477287346==" X-Trace: ger.gmane.org 1234860537 18531 80.91.229.12 (17 Feb 2009 08:48:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 08:48:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 17 09:50:12 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LZLee-0001P2-0C for gctc-ntg-context-518@m.gmane.org; Tue, 17 Feb 2009 09:50:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 24C6B1FB49; Tue, 17 Feb 2009 09:48:49 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08937-01-2; Tue, 17 Feb 2009 09:46:58 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9109B1FADF; Tue, 17 Feb 2009 09:46:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 480DE1FB3C for ; Tue, 17 Feb 2009 09:45:59 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08802-01-2 for ; Tue, 17 Feb 2009 09:44:55 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 2AE181FB1F for ; Tue, 17 Feb 2009 09:44:10 +0100 (CET) Original-Received: from mail-ew0-f11.google.com (mail-ew0-f11.google.com [209.85.219.11]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1H8i95k010975 for ; Tue, 17 Feb 2009 09:44:09 +0100 Original-Received: by ewy4 with SMTP id 4so2219184ewy.2 for ; Tue, 17 Feb 2009 00:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=p5EXX3uY1Tb1jqf0MgmwBZLIe3bNc2qa/EoAFhks69w=; b=qKoWu+iDU7hQAu2Bl7Eigd9vUFB+8j3bpHORqyi8USu2DGebu0WYlEFGCMnHJmgv3q UyGYy68qh/PG09wzTjF/eCG3lI6+yGficooTkzr49ipb4iC4m4YxDTB3f2CHw19fIhmR hFPVicWHhuiXIlKtyrJu4/hMufcfUm/7vFdMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YDsBIpIS22+x9aOtTVmv7pVCSw9jD6WBRIAOXNx/SA1TkflmqIqE7n1dXIBRR3nfS9 1CKPUUy9RHZTarYrHmbtxEq6wLv7VvF1cBxAcR84RJ+WTErMmQYuadcWrrquhbHdve/O sG0eGJtDOanXyhRsNXnhIikPO7/6X6EevtSRo= Original-Received: by 10.210.16.10 with SMTP id 10mr2636945ebp.170.1234860249122; Tue, 17 Feb 2009 00:44:09 -0800 (PST) In-Reply-To: <9761F817-5E76-4039-A5E5-7A4395F05BB7@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.11; 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: 180988715 - 18ecb4b03e95 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47459 Archived-At: --===============1477287346== Content-Type: multipart/alternative; boundary=000e0cd1ea6e7f086f0463194ef3 --000e0cd1ea6e7f086f0463194ef3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, Feb 16, 2009 at 11:28 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > Am 16.02.2009 um 19:22 schrieb Alan Stone: > > How do you get the chapter number in front of the chapter heading in the >> TOC, >> in the following example with \setuphead[chapter][number=no] ? >> >> \setuphead[chapter][% >> % number=yes] >> number=no] >> > > With "number=no" the current section is no longer written to the utility > file > and there is no way to get it in the toc. What you can do is to enable > section > numbering but remove it from the output. > > \setuphead > [chapter] > [numbercommand=\gobbleoneargument, > distance=0pt] Great ! With \setuphead[alternative=middle] there's still an empty/blank space above the chapter head though (where the chapter number is located when leaving out the numbercommand)... \showframe \setuplist[chapter][% alternative=b, criterium=chapter] \setuphead[chapter][% alternative=middle, number=yes, numbercommand=\gobbleoneargument, distance=0pt] \starttext \placecontent[% level=chapter, alternative=b] \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}} \stoptext Alan > > Wolfgang --000e0cd1ea6e7f086f0463194ef3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Feb 16, 2009 at 11:28 PM, Wolfgang Schus= ter <schuster.wolfgang@googlemail.com> wrote:

Am 16.02.2009 um 19:22 schri= eb Alan Stone:

How do you get the chapter number in front of the cha= pter heading in the TOC,
in the following example with \setuphead[chapte= r][number=3Dno] ?

\setuphead[chapter][%
% number=3Dyes]
 num= ber=3Dno]

With "number=3Dno" the curren= t section is no longer written to the utility file
and there is no way t= o get it in the toc. What you can do is to enable section
numbering but remove it from the output.

\setuphead
 [chapte= r]
 [numbercommand=3D\gobbleoneargument,
  distance=3D0pt]<= /blockquote>
 
Great ! With \setuphead[alternative=3Dmiddle] there's still a= n empty/blank space above the chapter head though (where the chapter number=  is located when leaving out the numbercommand)...
\showframe
 
\setuplist[chapter][%
 alternative=3Db,
 criterium=3Dc= hapter]
 
\setuphead[chapter][%
 alternative=3Dmiddle, number=3Dyes,
 numbercommand=3D\gobbleoneargument,
 = ;distance=3D0pt]
 
\starttext
 
 \placecontent[%
  level=3Dchapter,
  a= lternative=3Db]
  
 \dorecurse{2}{\chapter{Chapter #1}= \dorecurse{20}{\input knuth\par}}
\stoptext
 
Alan
 
 

Wolfgan= g
--000e0cd1ea6e7f086f0463194ef3-- --===============1477287346== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1477287346==--