From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62681 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \ReadFile in MkII vs MkIV Date: Sun, 17 Oct 2010 19:28:44 +0200 Message-ID: <0511A24C-C978-4DE9-804D-1995071C957E@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287336656 8717 80.91.229.12 (17 Oct 2010 17:30:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Oct 2010 17:30:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 17 19:30:55 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P7X4R-0001wl-6i for gctc-ntg-context-518@m.gmane.org; Sun, 17 Oct 2010 19:30:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A89F3CA6E1; Sun, 17 Oct 2010 19:30:53 +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 yUZulrbzAOnj; Sun, 17 Oct 2010 19:30:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C0ABCA758; Sun, 17 Oct 2010 19:30:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1EFEECA758 for ; Sun, 17 Oct 2010 19:30:50 +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 Nv4B24xI6jpr for ; Sun, 17 Oct 2010 19:30:48 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id E7016CA6E1 for ; Sun, 17 Oct 2010 19:30:47 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9HHUkVF017644 for ; Sun, 17 Oct 2010 19:30:47 +0200 Original-Received: by bwz19 with SMTP id 19so95355bwz.14 for ; Sun, 17 Oct 2010 10:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=lAP7dq8yEn8rcqvScm1HHrl50hBIC5UPj5I2mE0u+Iw=; b=hOnOfTvsejTU8vTYUZ5q+cNtR0HxEhMRtzosYEjRXm5itDmDRgkQcnqVgkHya0y99E wQOMPMyT2wrFU24HkCfP4TMbRUK4t9QE0LB3e81L6r3SK6+jopW+s4yDpg0ctXHUkKgy 9woOHaQbD6bPbNCutvXjJU72+TsgWN1+xXnC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=Q/NSQFCvjzz40psVN7KojVrAotQdlovE2F+LJQPlnk1+ZDEl+0R7cSjEFpZjUoAQ1T ZeIbY4CLCM2o6ueCU8DST/QbbZKS94fhTC7MSK7LxPslv9lzuOdeWANBh5JD5xtPlovd /9qKOG7QZLiYAeWyRr0NtW4FkVdzi3Ij0DAcg= Original-Received: by 10.204.84.216 with SMTP id k24mr3418474bkl.132.1287336646414; Sun, 17 Oct 2010 10:30:46 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B297F5E.dip.t-dialin.net [91.41.127.94]) by mx.google.com with ESMTPS id x13sm16075757bki.12.2010.10.17.10.30.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 Oct 2010 10:30:45 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 0xDjRuK3G - 7cf2c8f9dacf - 20101017 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:62681 Archived-At: Am 17.10.2010 um 19:21 schrieb Aditya Mahajan: > It works, but does not fit my need. I wanted to add an option to the filter module to allow the user to say: > > \setupexternalfilters[directory=$TEMP] > > and have all the tmp files created in $TEMP. Having to set this as a relative path will be really ugly. > > I am just looking for macro that takes the filename as a (brace delimited) parameter and typesets it. I can define one on my own; but I thought that \ReadFile is already supposed to do that. > > It is straight forward to "fix" \ReadFile so that absolute paths work: > > \unexpanded\def\readfile #1{\doreadfile{any} \empty{#1}} > \unexpanded\def\ReadFile #1{\doreadfile{any} \empty{#1}\donothing\donothing} > > I just wondering if the current behavior is a design decision or an oversight. What i get from the comments in the source is that \readfile looks for the requested file in the current directory, the parent directories and the tex directory and \ReadFile is a alternative form for \readfile without the second and third argument. You can define your own command \ReadFilter which is based in \readsetfile or \readfixfile. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________