From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26136 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: skipping parts in compiling Date: Wed, 22 Feb 2006 16:44:38 +0100 Message-ID: <6faad9f00602220744j593bf165tb4eb91b7ca2e4e4b@mail.gmail.com> References: <16a274457127983c4bc0d92953663662@di.unito.it> <6faad9f00602210859ne44c997w6da7da3ac19861cb@mail.gmail.com> <5840b78786d212d447df88f448df53ba@di.unito.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140623102 16307 80.91.229.2 (22 Feb 2006 15:45:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2006 15:45:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 22 16:44:58 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FBwAa-0004Ym-3t for gctc-ntg-context-518@m.gmane.org; Wed, 22 Feb 2006 16:44:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 978C41279A; Wed, 22 Feb 2006 16:44:46 +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 19797-04; Wed, 22 Feb 2006 16:44:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8F7E12783; Wed, 22 Feb 2006 16:44:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7350F12783 for ; Wed, 22 Feb 2006 16:44:40 +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 19964-02-2 for ; Wed, 22 Feb 2006 16:44:39 +0100 (CET) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.193]) by ronja.ntg.nl (Postfix) with SMTP id 0BEB71276B for ; Wed, 22 Feb 2006 16:44:38 +0100 (CET) Original-Received: by nproxy.gmail.com with SMTP id y25so1020040nfb for ; Wed, 22 Feb 2006 07:44:38 -0800 (PST) Original-Received: by 10.49.8.11 with SMTP id l11mr1914248nfi; Wed, 22 Feb 2006 07:44:38 -0800 (PST) Original-Received: by 10.48.14.20 with HTTP; Wed, 22 Feb 2006 07:44:38 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: <5840b78786d212d447df88f448df53ba@di.unito.it> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26136 Archived-At: > > If you mean "can I recompile only page 3 and 4 out of my 100-page book > > and get the whole document" that answer is no I think. But there are > > other ways. > > > > I suspected. Well, you also have texmfstart newtexexec.rb --pfdcombine | copy | select | trim I don't know how exactly to use them (to hans: lines 351-359 in newtexexec.rb, "def copyortrim" seem to be broken a bit - wrong number of arguments), but I guess that you could combine parts of your document together again this way (I wouldn't use this approach however). But what's wrong with using modular approach (to compile just the chapter or section you're currently working on, so that it compiles fast enough and you can fix bugs, and then compile everything together when you need the whole document)? You don't need to change a single line if you compile separate chapters or if you compile everything together. Except that you might need to split the document in separate files (using projects/products is really a great thing). If you don't want to split your document, you can also use modes: \starttext \startmode[everything] \enablemode[chapter1] \enablemode[chapter2] \stopmode \chapter{Introduction} \startmode[chapter1] \chapter{Chapter A} \stopmode \startmode[chapter2] \chapter{Chapter B} \stopmode \stoptext Then you can compile the document with texexec --mode=chapter1 filename or texexec --mode=chapter1,chapter2 filename or texexec --mode=everything filename Mojca