From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35062 Path: news.gmane.org!not-for-mail From: nicola Newsgroups: gmane.comp.tex.context Subject: Re: Several environments in a project? Date: Tue, 19 Jun 2007 10:54:03 +0200 Organization: --- Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Content-Type: multipart/mixed; boundary="===============0473297585==" X-Trace: sea.gmane.org 1182243280 19290 80.91.229.12 (19 Jun 2007 08:54:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 08:54:40 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 19 10:54:39 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 1I0ZTy-0002Cb-Ob for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jun 2007 10:54:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75E321FFF7; Tue, 19 Jun 2007 10:54:38 +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 11146-01-4; Tue, 19 Jun 2007 10:54:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 064C620016; Tue, 19 Jun 2007 10:54:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 84C5B20016 for ; Tue, 19 Jun 2007 10:54:30 +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 11146-01-3 for ; Tue, 19 Jun 2007 10:54:27 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id BD78520015 for ; Tue, 19 Jun 2007 10:54:27 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I0ZTj-0002s6-Sv for ntg-context@ntg.nl; Tue, 19 Jun 2007 10:54:23 +0200 Original-Received: from jabberwocky.dimi.uniud.it ([158.110.147.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jun 2007 10:54:23 +0200 Original-Received: from vitacolo by jabberwocky.dimi.uniud.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jun 2007 10:54:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: jabberwocky.dimi.uniud.it User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X) 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:35062 Archived-At: --===============0473297585== In article , Aditya Mahajan wrote: > On Mon, 18 Jun 2007, fiëé visuëlle wrote: > > > Am 2007-06-18 um 12:50 schrieb nicola: > > > >> I have a project with a few products sharing the same layout, which is > >> specified in a global environment file. Each product is in a separate > >> subdirectory together with its components. Then, I want to put some > >> setups and figure definitions in product-specific environments and > >> I do > >> it like this: > >> > >> \startproduct OneProduct > >> \project MyProject > >> \environment OneProductDir/LocalEnvironment > >> ... > >> > >> The problem is that the local environment is not read when I typeset a > >> particular component, but only when I typeset the whole product. > >> How can > >> I fix that? > > > > Put your product specific settings in the product file. > > AFAIU, they will not be executed. There is really no clean way of > doing this without adding extra markup. Suppose I have a product file > which says > > \startproduct product \environemnt env1 \environemnt env2 > Title Text > \component one > \component two > \stopproduct > > and a component > > \startcomponent one > \product product > text > \stopcomponent > > How can TeX parse the product file without typesetting title text? It > would have been simple if title text was surronded by some markup, but > it is not. This is one of the reasons projects are not supposed to > have any matertial that will be typeset. > > So, the short answer is just add \environment commands in your > components. Ok, I had thought about it: it just doesn't feel the "right" way to me (logically, as the enviroment is common to all components, it should be put at a level that is common to all components...) > Another way is to use localenvironments in your > environment file, but I have never used them myself. I have read about \localenvironment and tried it a bit, but without much success: I must say that I find the documentation about it a bit cryptic. I would gladly see a usage example by someone more knowledgeable than myself... Nicola --===============0473297585== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0473297585==--