From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66066 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Chapters not sowing up in ToC Date: Tue, 15 Feb 2011 19:29:03 +0100 Message-ID: References: <00e501cbcc82$91f26db0$b5d74910$@com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297794591 14897 80.91.229.12 (15 Feb 2011 18:29:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 18:29:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 15 19:29:47 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpPei-0000eb-2Q for gctc-ntg-context-518@m.gmane.org; Tue, 15 Feb 2011 19:29:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D888CAA07; Tue, 15 Feb 2011 19:29:43 +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 d0Al7rzxzEvH; Tue, 15 Feb 2011 19:29:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62808CA9E6; Tue, 15 Feb 2011 19:29:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 454D5CA9E6 for ; Tue, 15 Feb 2011 19:29:28 +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 0I7ToY0TOTCO for ; Tue, 15 Feb 2011 19:29:08 +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 60505C9A7C for ; Tue, 15 Feb 2011 19:29:08 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1FIT7UB023042 for ; Tue, 15 Feb 2011 19:29:07 +0100 Original-Received: by bwz16 with SMTP id 16so746779bwz.14 for ; Tue, 15 Feb 2011 10:29:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=zdOXSkgz6YYmzJ2lfy8wmgoTzjyjBtQVrwA0hUhstIA=; b=bIi7OerakYYtVOHT1Gg1K5lw+Ibedn3hvOlqHe5F5RWMBBblUBni6xyFrGsInQOXus 564Em7MINryVNAv3kGB6hSQkVyPCY6wxp/tC0WMW2PYhQSSHeXiQRxVOwsMfuAcy8ILE UcNShL0diM7SjweCCs3R2hL6zksgIrA8KzZmM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=IGg91g7ALKJW5lPmkXrobZ5rHfkFsgQ2aGeIAvtltzxHVVeZhfAvgQ1NjCq1a7YvV1 wwu9LXs0K/EAGg3wZ+J6ZKPXOHaw3n1e7ErPylY3pYQSZHPdtv+SnCHN+f/pRHBiT5+G oRlMOzuzwv18O5iSUn/xJYHTfNzlaocKwJnKo= Original-Received: by 10.204.140.208 with SMTP id j16mr21194386bku.151.1297794546923; Tue, 15 Feb 2011 10:29:06 -0800 (PST) Original-Received: from [192.168.2.29] (p5B293BE6.dip.t-dialin.net [91.41.59.230]) by mx.google.com with ESMTPS id z18sm2808483bkf.20.2011.02.15.10.29.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 10:29:05 -0800 (PST) In-Reply-To: <00e501cbcc82$91f26db0$b5d74910$@com> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 0bE8it7I5 - 95d91fedae7e - 20110215 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:66066 Archived-At: Am 14.02.2011 um 21:05 schrieb Tom: > When attempting to place only the chapter number on the first page of a > chapter, the chapters do not appear in the ToC & the ToC does not display. > Inserting #2 just before the last } in the definition for MyChapterCommand > causes the ToC to appear with chapter names although it and the chapters are > ugly. > > Is it necessary to include chapter names at the beginning of chapters? > Perhaps this is intended because leaving chapter names off the beginning of > chapters would reduce the value of the ToC. Maybe ToCs are not desired in > such situations. > > > %insert #2 before last } to cause ToC to appear although > %very ugly > \def\MyChapterCommand#1#2% #1 is number, #2 is text > {\framed[frame=off] > {\vbox{\centerline{\headtext{chapter} #1}}}} Replace this with: \setuplabeltext[en][chapter=Chapter ] \define[2]\MyChapterCommand % #1 is number, #2 is text {\framed[frame=off,align=middle,width=broad]{#1#2}} \setuphead [chapter] [command=\MyChapterCommand, deeptextcommand=\gobbleoneargument, header=empty, footer=chapter, page=mychapterpagebreak, before={\blank[force,1.0in]}, after={\blank[0.5in]}] Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________