From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81792 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Using Product-component Date: Tue, 16 Apr 2013 14:51:21 +0200 Message-ID: <2D100C28-1E9E-4D5E-A303-2FB607590717@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1366116691 19754 80.91.229.3 (16 Apr 2013 12:51:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2013 12:51:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 16 14:51:33 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 1US5MC-0002tF-Mn for gctc-ntg-context-518@m.gmane.org; Tue, 16 Apr 2013 14:51:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 31A85101FE; Tue, 16 Apr 2013 14:51:32 +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 2LKWiQF-D2eb; Tue, 16 Apr 2013 14:51:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 58F0C101EB; Tue, 16 Apr 2013 14:51:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77B7F101EB for ; Tue, 16 Apr 2013 14:51:29 +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 qccmz0IxKj75 for ; Tue, 16 Apr 2013 14:51:25 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 687C7101E3 for ; Tue, 16 Apr 2013 14:51:25 +0200 (CEST) Original-Received: from mail-ea0-x230.google.com (mail-ea0-x230.google.com [IPv6:2a00:1450:4013:c01::230]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3GCpOgk023799 for ; Tue, 16 Apr 2013 14:51:24 +0200 Original-Received: by mail-ea0-f176.google.com with SMTP id h10so222415eaj.21 for ; Tue, 16 Apr 2013 05:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=YM9+aSNZkAZ/+rp5RnWI6sRMjpNPELEM1Jt4Btx3j9Q=; b=SOk8+XiXRhMKMbYJYP0OZbvFdISCYNGDcpDbA8MpMa0LdMirtpeb+dbBSzmTvx7rfD mufAWtsaootHcfRFI6tZKQP6A10bZCwri/NqCOC/oUZ0Otudd0kXQT/xjwr7qZICmaML 3TZPKnD7VWH35m/a0eBDWcom14ZblXY8upPYlEbcc7NL1L3ez2y6mytSrkvXkYmP2Pt0 kVnNcg2hTN+75wLPDJTn6u7vFfxCK7If9X3sF84pp5X81FnP5msBxIGuVvFbQVDbRp9A Zk6lMH96jEOon6ggmURSzN6hADALKnyohsZXZ7nu4Ip6WRgyeh3QT+ui1+FrMvut3PXn 95HA== X-Received: by 10.14.107.69 with SMTP id n45mr6119580eeg.23.1366116684385; Tue, 16 Apr 2013 05:51:24 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d075373.pool.mediaWays.net. [77.7.83.115]) by mx.google.com with ESMTPS id b5sm2653711eew.16.2013.04.16.05.51.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Apr 2013 05:51:23 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::230; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03JoAPolR - b43179989933 - 20130416 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:81792 Archived-At: Am 16.04.2013 um 09:32 schrieb Aditya Mahajan : > Has something changed recently on how product-component structure is supp= osed 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. You process the component which doesn=92t load product file because this wo= uld 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 prob= lem disappears. Since environment files are loaded only once it doesn=92t matter when the l= ine is in each component file. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________