From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67118 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: Is it possible to generate only a table of contents Date: Fri, 18 Mar 2011 10:09:11 +0100 Message-ID: References: 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 1300439378 17889 80.91.229.12 (18 Mar 2011 09:09:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 09:09:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 18 10:09:33 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 1Q0VgY-0006XN-Q7 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Mar 2011 10:09:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0303CAAF0; Fri, 18 Mar 2011 10:09:25 +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 IR1ENKg49Zss; Fri, 18 Mar 2011 10:09:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47114CAAED; Fri, 18 Mar 2011 10:09:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 736B1CAAED for ; Fri, 18 Mar 2011 10:09:21 +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 GnynDS-BvvVX for ; Fri, 18 Mar 2011 10:09:10 +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 4A21BCAAD9 for ; Fri, 18 Mar 2011 10:09:10 +0100 (CET) Original-Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.31.24]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2I99CeH003860 for ; Fri, 18 Mar 2011 10:09:13 +0100 Original-Received: from [89.247.119.152] (helo=[192.168.1.4]) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Q0VgG-0004AY-9j for ntg-context@ntg.nl; Fri, 18 Mar 2011 10:09:12 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Df-Sender: 698580 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.31.24; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEkx9dbA - b4d36d2e3814 - 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:67118 Archived-At: Am 18.03.2011 um 09:32 schrieb Cecil Westerhof: > 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. In MkII this was possible by accessing the TUO file (which contains the TOC entry information) directly and independently . When typesetting a document "MyFile.tex" there is an accompanied TUO file generated "MyFile.tuo". Just copy this file and re-name to eg. MyFileX.tuo Then you can run \placelist[chapter, section,...][file=MyFile] from any document that contain these line: \unprotect \def\FrozenTUO{../MyFileX} \def\doplacerawlist[#1][#2]% {\begingroup \dogetcommalistelement1\from#1\to\firstlistelement \dosetuplist[#1][#2]% \doifvalue{\??li\firstlistelement\c!coupling}\v!on {\startlistreferences{#1}}% \dosettoclevel\??li\firstlistelement \honorlocalfilterlevel \doutilities{listentries,#1}\FrozenTUO{#1}\relax\par \stoplistreferences{#1}% \dosetlistmode \endgroup} \protect In MkIV this is not possible up to now due to the completely different structure of TOU and TUC files (see Hans below) ... unfortunately. Steffen Am 23.02.2010 um 23:27 schrieb Hans Hagen: > On 23-2-2010 21:18, Steffen Wolfrum wrote: >> >> \def\FrozenTUO{MyFile} >> >> .... thus each \placelist run would read from that paticular MyFile.tuo >> >> The quoted code above was written by Hans to provide a way to implement a kind of \placelist[chapter, section,...][file=MyFile] in MkII. > > the file= option will not come back, at least not soon, as we now have a completely different way of dealing with tables of contents (and actually all multipass data) ___________________________________________________________________________________ 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 ___________________________________________________________________________________