From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35495 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Several environments in a project? Date: Sat, 21 Jul 2007 17:46:48 +0100 Message-ID: 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: sea.gmane.org 1185036771 31981 80.91.229.12 (21 Jul 2007 16:52:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2007 16:52:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 21 18:52:49 2007 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 1ICICH-0003l0-4c for gctc-ntg-context-518@m.gmane.org; Sat, 21 Jul 2007 18:52:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAFC520053; Sat, 21 Jul 2007 18:52:48 +0200 (CEST) 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 21457-10; Sat, 21 Jul 2007 18:52:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 83B7B2005E; Sat, 21 Jul 2007 18:49:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D53D20053 for ; Sat, 21 Jul 2007 18:49:10 +0200 (CEST) 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 21467-02 for ; Sat, 21 Jul 2007 18:49:07 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with ESMTP id D46652005E for ; Sat, 21 Jul 2007 18:46:49 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1ICI6S-0000Vz-E3; Sat, 21 Jul 2007 17:46:48 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1ICI6S-0006AZ-00; Sat, 21 Jul 2007 17:46:48 +0100 In-Reply-To: Your message of "Mon, 18 Jun 2007 12:50:09 +0200." X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:35495 Archived-At: I had the same question and came to the following solution. The component files begin as follows: \startcomponent extreme-cases \product book \project project \startnotmode[*product] \environment env_book \stopnotmode ... Here, env_book.tex is the product-specific environment file, which is called at the beginning of the product file book.tex. If only a component is being run, the \startnotmode[*product] will ensure that env_book is read in anyway. Let me know if that does what you want (CC me as well as the list, since I'm highly irregular in reading list email these days, due to having a baby, and might miss your response otherwise). -Sanjoy "Creativity can be a social contribution, but only in so far as society is free to use the results." --Richard Stallman ___________________________________________________________________________________ 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 ___________________________________________________________________________________