From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27810 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: components and figure search paths Date: Wed, 10 May 2006 16:09:23 +0100 Message-ID: References: <4461FACE.7050001@wxs.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 1147273798 24940 80.91.229.2 (10 May 2006 15:09:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 May 2006 15:09:58 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 10 17:09:53 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 1FdqJf-0001ls-CF for gctc-ntg-context-518@m.gmane.org; Wed, 10 May 2006 17:09:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 23D6D12816; Wed, 10 May 2006 17:09:31 +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 19561-06-3; Wed, 10 May 2006 17:09:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 11CE712813; Wed, 10 May 2006 17:09:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0123512813 for ; Wed, 10 May 2006 17:09:26 +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 19561-06-2 for ; Wed, 10 May 2006 17:09:24 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id CE397127FF for ; Wed, 10 May 2006 17:09:24 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1FdqJX-0005D2-EO; Wed, 10 May 2006 16:09:23 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1FdqJX-0002sb-00; Wed, 10 May 2006 16:09:23 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Wed, 10 May 2006 16:38:06 +0200." <4461FACE.7050001@wxs.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:27810 Archived-At: > so how is this component, when run on itself, supposed to locate itself, Not sure I completely understand your question. But if I run one component, I change to its directory first: cd chap/1 && texexec c_ch1.tex Or is the canonical method: texexec chap/1/c_ch1.tex ? I've been in the habit of not doing it this way with tex tools, since (la/pdf)tex put the generated files in the current directory instead of in the directory of the source file. > - how does the dir structure look ./chap/1/abc-1.eps ./chap/1/c_ch1.tex ./project_books.tex ./env_books.tex ./onebook.tex > - where did you put the file It's in chap/1/ (along with the eps figure) > - where did you run it I ran 'texexec onebook' in the ./ directory. Running the component works fine (if I cd to its directory first), because abc-1.eps is easy to find. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.