From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29587 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: document structure (small bug) Date: Sat, 22 Jul 2006 14:19:28 +0200 Message-ID: <44C217D0.8000208@elvenkind.com> 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> <28439B97-4AB7-4F5D-A1C3-019A18D09DE7@science.uva.nl> 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 1153570804 24124 80.91.229.2 (22 Jul 2006 12:20:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2006 12:20:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 22 14:19: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 1G4GSX-00038K-67 for gctc-ntg-context-518@m.gmane.org; Sat, 22 Jul 2006 14:19:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A2D861277B; Sat, 22 Jul 2006 14:19:51 +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 07602-03-3; Sat, 22 Jul 2006 14:19:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EC29E1277C; Sat, 22 Jul 2006 14:19:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3576C1277C for ; Sat, 22 Jul 2006 14:19:35 +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 07602-03-2 for ; Sat, 22 Jul 2006 14:19:31 +0200 (CEST) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with SMTP id CFD361277B for ; Sat, 22 Jul 2006 14:19:29 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:54826 helo=[10.10.0.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1G4GS8-0006xH-Pz for ntg-context@ntg.nl; Sat, 22 Jul 2006 12:19:28 +0000 User-Agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <28439B97-4AB7-4F5D-A1C3-019A18D09DE7@science.uva.nl> 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:29587 Archived-At: Hi Hans-es, Hans van der Meer wrote: > > > 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]. This took a bit of digging, it appears to be a bug in core-job.tex. The definition of \setvalue{\e!start\v!localenvironment} ends with: {\grabuntil{\e!stop\v!localenvironment}\relax}} but that should be: {\grabuntil{\e!stop\v!localenvironment}\gobbleoneargument}} > Also \localenvironment seems to accept any > file for reading instead of rejecting everything except the current > product/component. Yes, it only guards against loading the environment file twice. The name is irrelevant. > 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? There are probably system modes predefined for the products name etc. I'll leave the question to be answered by Hans. Taco