From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51944 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to add directory to input path? Date: Tue, 21 Jul 2009 15:31:19 +0200 Message-ID: References: <6faad9f00907210137o4755bd7dm1348c0c5853ece35@mail.gmail.com> <2B815293-5375-4BCD-BDD8-FAB7C9976E02@gmail.com> <6faad9f00907210528k2d9576c4gae9192f87f3417b@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248183159 29175 80.91.229.12 (21 Jul 2009 13:32:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2009 13:32:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 21 15:32:32 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1MTFSG-0000xu-9P for gctc-ntg-context-518@m.gmane.org; Tue, 21 Jul 2009 15:32:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 62E261FB6B; Tue, 21 Jul 2009 15:32:27 +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 22928-03-2; Tue, 21 Jul 2009 15:31:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8113A1FADF; Tue, 21 Jul 2009 15:31:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E12401FAD7 for ; Tue, 21 Jul 2009 15:31:28 +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 22928-03 for ; Tue, 21 Jul 2009 15:31:10 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id 2B0831FADF for ; Tue, 21 Jul 2009 15:31:10 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6LDV8pA028827 for ; Tue, 21 Jul 2009 15:31:09 +0200 Original-Received: by fg-out-1718.google.com with SMTP id l27so1115773fgb.8 for ; Tue, 21 Jul 2009 06:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=9Ul5vKFETsehEccTt1r0MaJuq3mJQ7oahDmXWz9ksk0=; b=no9xd1s0ecXVY6pSJsf9QCbG6ne7qsdYSpEz+PQQ+YuMUKHf9rEw3vJLZ6qcFUA/dz sQQXy2aOSy+P7M4N4X/lCWX0kaGHo0iCLztVP80I/lSBpugZgljqrAGJhSLmhVlsPVwq pZXdapJwMZt++simnmZGtmLu2aCeYCHnGz+kI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=H6X32Nl35d417LAyYldD3/Ukef/nFlNWGq28kFvKlDULzLmh/+6XPS4suutzy4qTE0 qicTFzQof6tavOwHlcGq0XJbEnu+QPU3OlN8aku9ZElUb5iy3/oLgQRzCKykFiR0umIq uyNy/TteET4nVhye76oo7jr21yAAhrbpv8CYA= Original-Received: by 10.86.82.4 with SMTP id f4mr4686734fgb.27.1248183068282; Tue, 21 Jul 2009 06:31:08 -0700 (PDT) Original-Received: from ?192.168.2.23? (p5B297445.dip.t-dialin.net [91.41.116.69]) by mx.google.com with ESMTPS id d6sm14451827fga.0.2009.07.21.06.31.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Jul 2009 06:31:07 -0700 (PDT) In-Reply-To: <6faad9f00907210528k2d9576c4gae9192f87f3417b@mail.gmail.com> X-Mailer: Apple Mail (2.935.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.152; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 263944779 - c625092f1f2d - 20090721 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:51944 Archived-At: Am 21.07.2009 um 14:28 schrieb Mojca Miklavec: > Thanks. So basically there's no way to convince \input to work > "properly" (that is: respecting some additional input path) in mkii? > (In mkiv it seems to work, but it could be that that's just because it > interacts with its own "kpathsea".) The question is should \input kn MkIV behave like it did in MkII or should it take subdirectories into account. > But then I have another question. I actually wanted to use that inside > a module (gnuplot) that uses something like > > \processmyfile[#1][#2]{ > .... > \readlocfile{#2}{}{} > .... > } > > I wish I remembered why I decided for \readlocfile (I guess it was for > error handling that is still waiting to be implemented). How should I > change the module in this particular case? (What should I use instead > of \readlocfile, so that the file will be found?) What behaviour do you want? I would expect when I load a file it should found in the current directory or the TeX tree but not in subdirectories, when you want to take subdirectory searching I would use something like \setupgnuplot[directory={,myplots/}] \def\inputgnuplotfile#1% {\!!donefalse \def\doinputgnuplotfile##1% {\doiffileelse{##1#1} {\readlocalfile{##1#1}{}{}\!!donetrue\quitcommalist} {\!!donefalse}} \processcommacommand[\gnuplotparameter{directory}] \doinputgnuplotfile \!!ifdone\message{gnuplot}{...}\else\message{gnuplot}{file #1 not found}\fi} Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________