From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81797 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Using Product-component Date: Tue, 16 Apr 2013 11:25:10 -0400 (EDT) Message-ID: References: <2D100C28-1E9E-4D5E-A303-2FB607590717@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-722090609-1366125912=:29770" X-Trace: ger.gmane.org 1366125923 851 80.91.229.3 (16 Apr 2013 15:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2013 15:25:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 16 17:25:27 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1US7l9-0005TS-4z for gctc-ntg-context-518@m.gmane.org; Tue, 16 Apr 2013 17:25:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3E73C10228; Tue, 16 Apr 2013 17:25:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1JkoFlgxFNdC; Tue, 16 Apr 2013 17:25:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 86847101F8; Tue, 16 Apr 2013 17:25:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE4C5101F8 for ; Tue, 16 Apr 2013 17:25:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id B+aevRhdB4Hh for ; Tue, 16 Apr 2013 17:25:16 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id A5E5C101E3 for ; Tue, 16 Apr 2013 17:25:16 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3GFPDwo019820 for ; Tue, 16 Apr 2013 17:25:15 +0200 Original-Received: FROM mint ((null) [70.52.113.158]) By hackers.mr.itd.umich.edu ID 516D6D57.F0DDD.25166 ; Authuser adityam; 16 Apr 2013 11:25:12 EDT In-Reply-To: <2D100C28-1E9E-4D5E-A303-2FB607590717@gmail.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08JoDpdMN - 2a839be09102 - 20130416 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81797 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-722090609-1366125912=:29770 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 16 Apr 2013, Wolfgang Schuster wrote: > > Am 16.04.2013 um 09:32 schrieb Aditya Mahajan : > >> Has something changed recently on how product-component structure is sup= posed to >> be used? I have three files: >> >> 1. prd.tex >> >> \environment env >> >> \startproduct prd >> >> \component cmp >> >> \stopproduct >> >> 2. env.tex >> >> >> \startenvironment env >> >> \define\testing{This is a test} >> >> \stopenvironment >> >> 3. cmp.tex >> >> >> \product prd >> >> \startcomponent cmp >> >> Testing \testing >> >> \stopcomponent >> >> When I compile cmp.tex, I get: >> >> %--------------------------%<----------------------------- >> [=85] >> mtx-context | fatal error: return code: 1% %------------------------= --%<----------------------------- >> >> Shouldn't the product file not load the component file (or anything else= inside >> \startproduct .. \stopproduct) when compiling a component? > > The product file loads the component but this isn=92t what you=92re doing= =2E > > You process the component which doesn=92t load product file because this = would end in a loop > because the product would then again load the component etc. > > Add =93\environment env=94 at the begin of your component file and the pr= oblem disappears. > Since environment files are loaded only once it doesn=92t matter when the= line is in each > component file. I thought that the whole point of adding `\product ...` in a component=20 file was so that I do not have to add all the `\environment ...` in the=20 component file. Actually, if I change the product -> component then everything works as=20 expected, so perhaps I did not remember correctly how the=20 project-product-component hierarchy is to be used. I thought that the=20 project part was optional, but it seems that one must include a project as= =20 well (if you want not to add all the environments in the component file) Aditya --8323329-722090609-1366125912=:29770 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323329-722090609-1366125912=:29770--