From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78194 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Search path. Date: Mon, 10 Sep 2012 09:09:28 +0200 Message-ID: <504D9228.9020807@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347260983 12401 80.91.229.3 (10 Sep 2012 07:09:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 07:09:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 10 09:09:44 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 1TAy7p-0002BX-8J for gctc-ntg-context-518@m.gmane.org; Mon, 10 Sep 2012 09:09:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B680101DF; Mon, 10 Sep 2012 09:09:37 +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 8QU5lHoVvfxd; Mon, 10 Sep 2012 09:09:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 86F21101EA; Mon, 10 Sep 2012 09:09:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24DBD101EA for ; Mon, 10 Sep 2012 09:09:33 +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 tUncudGNiYT6 for ; Mon, 10 Sep 2012 09:09:32 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 05EE3101DF for ; Mon, 10 Sep 2012 09:09:32 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8A79Vu6010264 for ; Mon, 10 Sep 2012 09:09:31 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 5673-1713362 for multiple; Mon, 10 Sep 2012 09:09:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=16; city=Zeewolde; latitude=52.3302; longitude=5.5364; http://maps.google.com/maps?q=52.3302,5.5364&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QHVj9vHa - 1c4f6525a2a8 - 20120910 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:78194 Archived-At: On 10-9-2012 04:45, Andre Caldas wrote: > Hello, list! > > I am really new to ConTeXt. I am writing a book > http://topologia-geral.ourproject.org/ > It is written in LaTeX and I intend to migrate it to ConTeXt. > > I want to migrate and I want to be as far from HACKS as I can. So I > want to know the recommended way to do things. One of my first > difficulties comes from the "search path" used by texexec. It seems to > me that the path searched for components, products and environments > depends on the path were the script was called from. That is, it > depends on the "current working directory". > > My question (honestly) is: > - Why would I want this behavior? > > When I write a project, product, component or environment file, why > would I want the references I made to be dependent on the directory > where the script was called? Shouldn't things be like the > #include "relative_path.h" > used in the C language, for example? That is, shouldn't those paths be > relative to the script that refers to them? > > Am I missing something? The way tex (and its path) are set up is that files are looked up on the current path (.) or relative to it, or in the (tds compliant) tex tree. Auxiliary files are created in the current directory. One can hardcode a path in the tex source if needed. Another option is to move to the source path (something texmfstart --path ... texexec ... or mtxrun --path ... --script context ...) but what's best depends on the kind of project. Do you really need to use context mkii? As it's a new project, using context mkiv might be a better idea. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________