From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29575 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: document structure Date: Fri, 21 Jul 2006 20:02:55 +0200 Message-ID: <63C28589-B3A5-410D-BE33-3A07730BA871@science.uva.nl> References: <74B0153C-8A9C-45BD-94DB-6B52CD54CDFA@science.uva.nl> <44C0CF64.7050002@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153505074 10321 80.91.229.2 (21 Jul 2006 18:04:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2006 18:04:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 21 20:04:32 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 1G3zMK-0000ds-Gw for gctc-ntg-context-518@m.gmane.org; Fri, 21 Jul 2006 20:04:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5AD17128B6; Fri, 21 Jul 2006 20:04:20 +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 29124-03-3; Fri, 21 Jul 2006 20:04:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA059128AE; Fri, 21 Jul 2006 20:04:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 86107128A9 for ; Fri, 21 Jul 2006 20:04:07 +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 29124-03-2 for ; Fri, 21 Jul 2006 20:04:00 +0200 (CEST) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 790A4128B3 for ; Fri, 21 Jul 2006 20:03:57 +0200 (CEST) Original-Received: from 119-141.uva.surfnetthuis.nl [145.98.119.141] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k6LI3ov00446; Fri, 21 Jul 2006 20:03:50 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ In-Reply-To: <44C0CF64.7050002@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new 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:29575 Archived-At: On Jul 21, 2006, at 14:58, Taco Hoekwater wrote: > > > Hans van der Meer wrote: >> Must I understand that "\startlocalenvironment[abc]" within an >> environment file means that this codeblock is used only for >> typesetting >> product/component abc and excluded automatically when another >> product/component is typeset? > > I believe so. > >> How does this relate to the above question about setup-file >> structure? > > \localenvironment is sort of an alias of \environment. > > Differences: there is a but less bookkeeping done, and the file > is loaded only once in a run, never repeatedly (so that the command > can safely be used in a number of components). The files' name > (== the argument) is unimportant. > Sorry, but I think I do not yet understand and I do not get it right. Next is in a nutshell my setup of the environments, the relevant projects are syllabus-s and syllabus-p % calls up the product, file syllabus-s.tex \startproduct syllabus-s \project onderwijs \environment syllabus-setup ... \stopproduct % common initializations, file syllabus-setup.tex \startenvironment syllabus-setup \writestring{LOADED ENVIRONMENT SYLLABUS-SETUP}\writeline \startlocalenvironment[syllabus-s] \localenvironment syllabus-s-setup \stoplocalenvironment \startlocalenvironment[syllabus-p] \localenvironment syllabus-p-setup \stoplocalenvironment % setups local to p-version, file syllabus-p-setup.tex \startlocalenvironment[syllabus-p-setup] \writestring{LOADED ENVIRONMENT SYLLABUS-P-SETUP}\writeline \stoplocalenvironment % setups local to s-version, file syllabus-s-setup.tex \startlocalenvironment[syllabus-s-setup] \writestring{LOADED ENVIRONMENT SYLLABUS-S-SETUP}\writeline \stoplocalenvironment Running from product syllabus-s.tex I get this in the log: systems : begin file syllabus-setup at line 10 (./syllabus-setup.tex LOADED ENVIRONMENT SYLLABUS-SETUP systems : begin file syllabus-s-setup at line 6 (./syllabus-s-setup.tex LOADED ENVIRONMENT SYLLABUS-S-SETUP ) systems : end file syllabus-s-setup at line 6 systems : begin file syllabus-p-setup at line 10 (./syllabus-p-setup.tex LOADED ENVIRONMENT SYLLABUS-P-SETUP ) systems : end file syllabus-p-setup at line 10 And this shows that running the product syllabus-s still loads both localenvironments and goes inside both \startlocalenvironments! What I am doing wrong here? Hans van der Meer