From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79570 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: toppath Date: Tue, 27 Nov 2012 10:33:54 +0100 Message-ID: References: <50B47D58.4060501@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"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354008852 28474 80.91.229.3 (27 Nov 2012 09:34:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2012 09:34:12 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 27 10:34:24 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 1TdHYe-0008DR-Hi for gctc-ntg-context-518@m.gmane.org; Tue, 27 Nov 2012 10:34:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D60AA10234; Tue, 27 Nov 2012 10:34:12 +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 c4TY2GrE4hYw; Tue, 27 Nov 2012 10:34:10 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D600F10236; Tue, 27 Nov 2012 10:34:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 723D610236 for ; Tue, 27 Nov 2012 10:34:08 +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 Hs+HIbGWlVJ0 for ; Tue, 27 Nov 2012 10:34:03 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 635EB10234 for ; Tue, 27 Nov 2012 10:34:03 +0100 (CET) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAR9Y0fS005034 for ; Tue, 27 Nov 2012 10:34:01 +0100 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Tue, 27 Nov 2012 10:33:57 +0100 In-Reply-To: <50B47D58.4060501@wxs.nl> User-Agent: Opera Mail/12.11 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Isxy08n - ace50a5ce541 - 20121127 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:79570 Archived-At: ... I'd need to refer to a file from within a file, not in via '--path' opt= ion... My case is more complicated - a file is included from more other files in v= arious directory levels. BTW: I was also thinking about \processedfile (http://wiki.contextgarden.ne= t/Command/processedfile) and about splitting it (taking the part up to the = last / or \) but \processedfile gives nothing - try: ---- \enabletrackers[resolvers] \starttext T \processedfile %\input toppath:/t-Hello.mkiv \stoptext ---- Lukas On Tue, 27 Nov 2012 09:44:08 +0100, Hans Hagen wrote: > On 11/27/2012 8:43 AM, Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. wrote: >> Hello, >> >> there was a discussion about 'toppath' or 'pathrelativetome'. >> >> Is 'toppath:' prefix working? >> >> Or what other way is to refer to the path of the current file (i.e. the >> file I'm referring from)? >> >> The following code doesn't work - "t-Hello.mkiv" is not found although >> it's located in the same directory as "t-TopPath.mkiv"; the >> "t-TopPath.mkiv" is compiled from ONE LEVEL UP. >> >> So e.g. let's have: >> >> c:\Lukas\ConTeXt\Test\t-TopPath.mkiv >> c:\Lukas\ConTeXt\Test\t-Hello.mkiv >> >> and let's switch to current (working) directory to: >> >> c:\Lukas\ConTeXt >> >> and call: >> >> context.exe Test\t-TopPath.mkiv >> >> In this situation compilation fails. >> >> How to make it work? > > mtxrun --path=3DTest --script context t-TopPath.mkiv > > ----------------------------------------------------------------- > 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 > ----------------------------------------------------------------- > -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________