From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88243 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: project structure Date: Sun, 27 Jul 2014 15:59:35 +0200 Message-ID: <53D505C7.5080808@wxs.nl> References: <53D36E5B.9060900@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1406469603 20574 80.91.229.3 (27 Jul 2014 14:00:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jul 2014 14:00:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 27 15:59:59 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XBOzW-0005NM-JX for gctc-ntg-context-518@m.gmane.org; Sun, 27 Jul 2014 15:59:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1650A10297 for ; Sun, 27 Jul 2014 15:59:58 +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 U8V-f-rINaFE for ; Sun, 27 Jul 2014 15:59:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7483010224 for ; Sun, 27 Jul 2014 15:59:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDCB5101E6 for ; Sun, 27 Jul 2014 15:59:45 +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 ZD18rxWmhrEf for ; Sun, 27 Jul 2014 15:59:40 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 72222101E2 for ; Sun, 27 Jul 2014 15:59:40 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6RDxdfL031232 for ; Sun, 27 Jul 2014 15:59:39 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.5a2) with ESMTP id 1510-1713362 for ; Sun, 27 Jul 2014 15:59:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NMvpXDfl - 46fa4957f835 - 20140727 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:88243 Archived-At: On 7/27/2014 1:24 PM, Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. wrote: > Hello, > > On Sat, 26 Jul 2014 11:01:15 +0200, Hans Hagen wrote: > >> Hi, >> >> There is a new experimental feature (one of the side effects of >> discussions with Alan about bibliographies and using distributed files >> in a project structure). >> >> Say that you have this: >> >> test1.tex : uses \component one/test2 >> >> one/test2.tex : uses \component two/test3 >> >> etc. There can be resources under one/two that test3 needs and one way >> out is to add this path to the used paths. Doing that automatically can >> result in side effects when multiple resources with the same name are >> used. >> >> However, we now have a concept of the local job path, so when test2 is >> read the jobfile: prefix will use path one, and when reading test3, that >> prefix will trigger one/two usage. > > very nice and handy feature, thanks for that. > > Just a remark - > - there was a similar prefix "toppath:" introduced some time ago. > > And - IIUC - "jobfile" refers to a dir rather than to a file, so > wouldn't be better to call the prefix "jobdir:" or "jobpath:"? The difference is that toppath: works on the input stack and jobfile: on = the accumulated subpaths (normally in a job structure) ... in fact, both = could work out the same but the top of the inputstack could be different = ... it's all a matter of experiencing, so \usepath[jobfile:] \setupexternalfigures[directory=3Djobfile:] \usepath[toppath:] \setupexternalfigures[directory=3Dtoppath:] could have the best of both worlds. toppath =3D=3D dir of top of inputstack jobfile =3D=3D dir of current jobfile maybe jobpath is indeed better (i'll change it and keep the old one for = a while) >> For this to work, one has to say: >> >> \usepath[jobfile:] >> \setupexternalfigures[directory=3Djobfile:] >> >> To what extent this all works out well is to be tested. >> >> 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 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 ___________________________________________________________________________= ________