From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29586 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: document structure Date: Sat, 22 Jul 2006 13:38:16 +0200 Message-ID: <28439B97-4AB7-4F5D-A1C3-019A18D09DE7@science.uva.nl> References: <74B0153C-8A9C-45BD-94DB-6B52CD54CDFA@science.uva.nl> <44C0CF64.7050002@elvenkind.com> <63C28589-B3A5-410D-BE33-3A07730BA871@science.uva.nl> <44C1DF93.4060609@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 1153568389 18561 80.91.229.2 (22 Jul 2006 11:39:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2006 11:39:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 22 13:39:44 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 1G4Fpc-0006dZ-Pv for gctc-ntg-context-518@m.gmane.org; Sat, 22 Jul 2006 13:39:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BECC0128BD; Sat, 22 Jul 2006 13:39:40 +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 05647-05; Sat, 22 Jul 2006 13:39:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3D67C127B1; Sat, 22 Jul 2006 13:39:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CBE8F127B1 for ; Sat, 22 Jul 2006 13:39:25 +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 05648-04 for ; Sat, 22 Jul 2006 13:39:19 +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 84DBB127A3 for ; Sat, 22 Jul 2006 13:39:17 +0200 (CEST) Original-Received: from 118-212.uva.surfnetthuis.nl [145.98.118.212] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k6MBdBv22407; Sat, 22 Jul 2006 13:39:12 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ In-Reply-To: <44C1DF93.4060609@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:29586 Archived-At: On Jul 22, 2006, at 10:19, Taco Hoekwater wrote: > Hans van der Meer wrote: >>> >> 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 > > My unsterstanding is that you do it like this: > > % syllabys-s.tex > \project syllabus > \localenvironment syllabus-local-setup > \starttext > \stoptext > > % syllabys-p.tex > \project syllabus > \localenvironment syllabus-local-setup > \starttext > \stoptext > > % syllabus.tex: > \environment syllabus-setup > > % syllabus-setup.tex > \writestring{global env settings} > > % syllabus-local-setup.tex > \startlocalenvironment[syllabus-s] > \writestring{this is only for the screen version} > \stoplocalenvironment > \startlocalenvironment[syllabus-p] > \writestring{this is only for the print version} > \stoplocalenvironment > > (Untested) > No, I must be my fault, but even with the above help I cannot get it working. As far as I can figure out the value of \currentproduct seems NOT to guard entry to the body of \startlocalenvironment[syllabus-s]. Although the manual here explicitely mentions "component or product", I cannot see that happen. Also \localenvironment seems to accept any file for reading instead of rejecting everything except the current product/component. In the code of core-job.tex I read: % more or less replaced by modes \setvalue{\e!start\v!localenvironment}[#1]% .... Must I conclude from this that localenvironments are more or less passe? So that I can better avoid them and use modes (after \enablemode) as discriminating criterium? Hans van der Meer