From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11348 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: naming relative paths within a project Date: Wed, 12 Mar 2003 00:31:15 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030312002655.03320008@server-1> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1047463848 30924 80.91.224.249 (12 Mar 2003 10:10:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2003 10:10:48 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Mar 12 11:10:46 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18t3C9-00082X-00 for ; Wed, 12 Mar 2003 11:10:45 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4DC1F10B89; Wed, 12 Mar 2003 11:11:27 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id CEACE10AB6 for ; Wed, 12 Mar 2003 10:57:10 +0100 (MET) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h2C9v4sm027080 for ; Wed, 12 Mar 2003 10:57:05 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h2C9v3Ek003426 for ; Wed, 12 Mar 2003 10:57:05 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11348 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11348 Hi, Indeed you need to add the (relative) path, simply because tex cannot ask for a directory (well, now i think of it, it can by using a sys call; actually i do have a script that generates an xml path structure, so maybe i can add that as feature some day) if your filenames are unique, you can omit the paths and say: \usepath[BodyMatter] \usepath[FrontMatter] context does look for files at . and .. and ../.. and ../../.. (configurable depth) Hans At 08:05 PM 2/24/2003 +0800, you (Guy) wrote: >I've got a very short question, but coupled to a very long >explanation, my question is: when referencing a component file from >within a product file (and given that the component file is stored in >the same directory as the product file, which is in a sub-directory >below my project file) must I include the relative path of the component >file from my project directory, through my sub-directories to my >component file, or can I just refer to the component's filename. > >Now here is the actual example. I've done a little bit of ASCII >artwork below showing the directory structure that I'm following. My >artwork isn't the best, so I've also include some explanation. > >Project > | > ---- EnviromentPageLayout.tex (global environment file) > | > ---- Project.tex (project file) > | > |----| > | FrontMatter (directory) > | | > | ---- EnvironmentFrontMatter.tex (local environment file) > | | > | ---- ProductFrontMatter.tex (product file) > | | > | ---- TitlePage.tex (component file) > | | > | ---- Contents.tex (component file) > | | > | ---- Preface (component file) > | > |----| > | BodyMatter (directory) > | | > | ---- EnvironmentBodyMatter.tex (local environment file) > | | > | ---- ProductBodyMatter.tex (product file) > | | > | ---- Chapter01.tex (component file) > | | > | ---- Chapter02.tex (component file) > | | > |----| > BackMatter (directory) > | > ---- EnvironmentBackMatter.tex (local environment file) > | > ---- ProductBackMatter.tex (product file) > | > ---- Appendix01.tex (component file) > | > ---- Index.tex (component file) > > >In my Project directory I have two files: > > 1) EnvironmentPageLayout.tex > > If you are interested in an environment, the one I've based mine > on is the one posted by David Arnold > > http://ml-archives.mini.pw.edu.pl/ntg-context/msg02853.html > > 2) Project.tex > > ---- > > %project file > > \startproject Project > > \environment EnvironmentPageLayout > > \product FrontMatter/ProductFrontMatter > > \product BodyMatter/ProductBodyMatter > > \product BackMatter/ProductBackMatter > > \stopproject > > --- > > >From the project directory, I've created 3 sub-directories, >FrontMatter, BodyMatter, and BackMatter and each of these >sub-directories contains: > > 1) an Environment file > > 2) a Product file, for example, in the BodyMatter directory, I have > > ----- > > % product file > > \startproduct ProductBodyMatter > > \project Project > > \environment BodyMatter/EnvironmentBodyMatter > > \startbodymatter > > \component BodyMatter/Chapter01 > > \stopbodymatter > > \stopproduct > > ----- > > 3) many Component files, for example, Chapter01.tex, in the BodyMatter > directory, looks like: > > ----- > > % component Chapter01 > > \startcomponent Chapter01 > > \project ProjectJavaXMLManuscript > > \product BodyMatter/ProductBodyMatter > > \chapter[introduction]{Introduction} > > \stopcomponent > > ----- > > >So my question in terms of the above structure, is: must I refer to >each component in the product file by its full path name > > \component BodyMatter/Chapter01 > >or can I refer to it, by just its file name > > \component Chapter01 > >where Chapter01.tex is a file contained in a subdirectory of the >project file. > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > >================================================================ >Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd >op virussen. >Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst >waar op wordt gecontroleerd. ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------