From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67119 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.comp.tex.context Subject: Re: Is it possible to generate only a table of contents Date: Fri, 18 Mar 2011 10:35:03 +0100 Message-ID: <87aags3h6g.fsf@micropit.couberia.bzh> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300440919 25955 80.91.229.12 (18 Mar 2011 09:35:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 09:35:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 18 10:35:15 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 1Q0W5R-00088Z-Se for gctc-ntg-context-518@m.gmane.org; Fri, 18 Mar 2011 10:35:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A07C0CAAF3; Fri, 18 Mar 2011 10:35:09 +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 Qlx3KzmEZq+P; Fri, 18 Mar 2011 10:35:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BEA2DCAAED; Fri, 18 Mar 2011 10:35:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76328CAAED for ; Fri, 18 Mar 2011 10:35:04 +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 FFWMitvZlmPW for ; Fri, 18 Mar 2011 10:35:02 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 5AB79CAAD9 for ; Fri, 18 Mar 2011 10:35:02 +0100 (CET) Original-Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr [80.12.242.126]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2I9Z486026536 for ; Fri, 18 Mar 2011 10:35:05 +0100 Original-Received: from micropit.couberia.bzh ([90.12.126.245]) by mwinf5d39 with ME id LZb31g00Y5HnxPe03Zb4pn; Fri, 18 Mar 2011 10:35:04 +0100 Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id 71BD91605D0; Fri, 18 Mar 2011 10:35:03 +0100 (CET) In-Reply-To: (Cecil Westerhof's message of "Fri, 18 Mar 2011 09:32:00 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.126; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEkxz5en - 29bf5140d54d - 20110318 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:67119 Archived-At: Cecil Westerhof writes: > Is it possible to generate only a TOC? (\completecontent) When > creating a document I like to have the 'stakeholders' to have an > indication of what is going on. For this a TOC is enough. I could > create the document and cut out the TOC, but it would be simpler if > that could be auto generated. Perhaps a starting point: \startbuffer[mydocument] \completecontent \dorecurse{50}{\expanded{\chapter{Chapter \recurselevel}}} \stopbuffer \setuplayout[page] \starttext % Here, you must know the number of pages of the toc. % Certaninly, this can be done much better! \dorecurse{3}{\typesetbuffer[mydocument][page=\recurselevel]} \stoptext -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________