From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79719 Path: news.gmane.org!not-for-mail From: Romain Diss Newsgroups: gmane.comp.tex.context Subject: Reading product environment within a component file Date: Sun, 2 Dec 2012 22:56:02 +0100 Message-ID: <201212022256.03363.romain.diss@yahoo.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354485385 3792 80.91.229.3 (2 Dec 2012 21:56:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2012 21:56:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 02 22:56:36 2012 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 1TfHWc-0007uj-79 for gctc-ntg-context-518@m.gmane.org; Sun, 02 Dec 2012 22:56:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8989D1021A; Sun, 2 Dec 2012 22:56:21 +0100 (CET) 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 5MqoillmvufM; Sun, 2 Dec 2012 22:56:18 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C175910211; Sun, 2 Dec 2012 22:56:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59D5C10211 for ; Sun, 2 Dec 2012 22:56:17 +0100 (CET) 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 mH7oimixgNn8 for ; Sun, 2 Dec 2012 22:56:15 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id E42601020F for ; Sun, 2 Dec 2012 22:56:14 +0100 (CET) Original-Received: from nm6-vm0.bullet.mail.ukl.yahoo.com (nm6-vm0.bullet.mail.ukl.yahoo.com [217.146.183.234]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB2Lu48l020211 for ; Sun, 2 Dec 2012 22:56:10 +0100 Original-Received: from [217.146.183.215] by nm6.bullet.mail.ukl.yahoo.com with NNFMP; 02 Dec 2012 21:56:04 -0000 Original-Received: from [217.146.183.124] by tm8.bullet.mail.ukl.yahoo.com with NNFMP; 02 Dec 2012 21:56:04 -0000 Original-Received: from [127.0.0.1] by smtp101.mail.ukl.yahoo.com with NNFMP; 02 Dec 2012 21:56:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1354485364; bh=AoYMV1CZaNI7co2g564djjyzx+S4HqVODKQyDp0VJDU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id; b=BnuiN0G/CpDjELnVRm+krSxT3FAvhzNBtXy2/3tme4Ye8cckNniYSHr2oTKfzzeiCsa7P4RGUaxQhE8AINOGaAOXIQf+zF5C+NNA4zKxMrO2skdj0Wg2TbfGCPZnZQ3T2JSNpq8PhmZKe5HzNHHQ+vTD17WIwWiDJUtnjgFPrxo= X-Yahoo-Newman-Id: 377426.83938.bm@smtp101.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 8K2VPQoVM1lW5mtK7GbaW04dmik.n_mlrTNGrdRfOSBmK8G Sp9pyxy3r2YFgOHOlpyEswAA3QueW8oyUZQ8TGOBvctiKWlxRV2y0iFRtEe8 tX3WYAnmrO9kpmYSGtBg6N5TPbBb24m.5SYiXJ.2xf_R9O9JACoY5_XJyeU3 N5m7wwwVpBivP8OOVZuEg_3pkUrsRfrLiPeBrTaK7V11z8A3_dtI9j.KgMzr Cn3u_aG9doxaU3uxQSUsJoAdS8XCb.gO_WEFFFsFkINJkCSgCIbANhu.R3C. 3rfvPIc.sZaQyCTZNIZmsf0d3iySVWR71LcvTTIMfiRmcQXNVZSCQkIHd8t5 hFNaEH92_uekmSok247TDrsVy117D_pDjG0l_QdJSSdIJTG.vfzJQY07PLNS FxSg_lR1QSJfZY03NWpjZ_jbRcBu8.v3Bl7K7lawfgZ_uVGh_sLiRZMMKVf6 nlCohVqimtMZnmHwqWl0Ct3bg8WzSbq3yTT1VWcu_tolhi.r5OCLkIra5uNx 2sHZoMwhg4J0- X-Yahoo-SMTP: S1hYNv6swBAmdDgiTrR1jsHHwRWtJLYt Original-Received: from nereid.localnet (romain.diss@89.226.19.105 with plain) by smtp101.mail.ukl.yahoo.com with SMTP; 02 Dec 2012 13:56:04 -0800 PST User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) X-Bayes-Prob: 0.6754 (Score 1, tokens from: @@RPTN) X-CanIt-Geo: ip=217.146.183.234; country=GB; latitude=54.0000; longitude=-2.0000; http://maps.google.com/maps?q=54.0000,-2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RIuJU4St - 88e4c36d1579 - 20121202 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:79719 Archived-At: Hi all, Since I read the thread concerning the LaTeX \includeonly equivalent, I tried again to make to project structure work for me (I gave up some time ago). Here is my problem: I have a product file p.tex %% p.tex \startproduct p \environment e \component c \component d \stopproduct %% end an environment file e.tex %% e.tex \startenvironment e % style commands... \stopenvironment %% end and two component files c.tex and d.tex %% c.tex (d.tex is the same file, except content part) \setupreferencing[autofile=yes] \setupinteraction[state=start] \startcomponent c \product p % content \stopcomponent but no project file. When I run context on the product file, everything is ok. But when I run context on one component file, it doesn't read the environment file because the \product command doesn't seem to be read (that's what I understand from the documentation). So, how should I do to inform context to read the environment mentionned in the product file. Is it obligatory to use a project file to be able to read the parent environment when processing a component? Another question which I think is linked to the previous one is: is one supposed to run context on a component? My different tests shows that a run on a component load all the other components mentionned in the product. So it seems to be equivalent to run context on a product or on a component (except for the environment problem mentionned before). That's also what the wiki seems to say (http://wiki.contextgarden.net/Project_structure): "In addition, you have to keep in mind that when compiling a product or component file, ConTeXt goes "up" to the project file and compiles everything it finds in there that is not a \product". So, actually, I'm not able to reproduce the \includeonly equivalent with \component (even if I use \setupreferencing[autofile=yes] and \setupinteraction[state=start]). Do I miss something? All the best. -- Romain Diss ___________________________________________________________________________________ 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 ___________________________________________________________________________________