From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27579 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \typefile with a file in \usepath fails Date: Sun, 30 Apr 2006 18:59:53 +0200 Message-ID: <4454ED09.6090004@wxs.nl> References: <44549270.2080506@wxs.nl> <4454BA29.9020106@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146416431 27342 80.91.229.2 (30 Apr 2006 17:00:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 17:00:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 30 19:00:28 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FaFHU-0007SN-9l for gctc-ntg-context-518@m.gmane.org; Sun, 30 Apr 2006 19:00:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A339112778; Sun, 30 Apr 2006 19:00:23 +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 12544-06; Sun, 30 Apr 2006 19:00:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 620D2127A7; Sun, 30 Apr 2006 19:00:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9DDF9127A7 for ; Sun, 30 Apr 2006 19:00:14 +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 16346-05 for ; Sun, 30 Apr 2006 19:00:11 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 6E66F12778 for ; Sun, 30 Apr 2006 19:00:00 +0200 (CEST) Original-Received: from [10.10.10.187] (unverified [10.10.10.187]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 14749 for ; Sun, 30 Apr 2006 20:59:56 +0400 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: mailing list for ConTeXt users In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:27579 Archived-At: nico wrote: > On Sun, 30 Apr 2006 15:22:49 +0200, Hans Hagen wrote: > > >>>> what version of context do you run? i though that i added support for >>>> that some time ago >>>> >>> Version 2006.04.27. >>> >>> \dodotypefile checks where the file is, but a following call to >>> \makelocreadfilename seems to set improperly \readfilename, but I'm not >>> sure to understand correctly the code. >>> >>> >> \tracefilestrue >> >> > Hm, verbatim seems not using the file interface: there's no trace about > file found or not related to typefile. Another thing I did is to patch > \processfileverbatim to trace what is actually the file used: > > \def\processfileverbatim#1% > {\par > \bgroup > \writestatus{jo}{file=#1} > ... > > And doing: > > \typefile{list1.tex} % file in the current directory (ok) > \typefile{test-001.tex} % file in the \usepath directory (nok) > \typefile{joke} % file that does not exist (ok, an error is printed) > \typefile{pos2.tex} % again a local existing file (ok) > > Gives the traces: > > systems : begin file typefile at line 79 > jo : file=list1.tex > systems : searching for pdfr-ec on tex path > systems : pdfr-ec located > (/usr/local/share/texmf-local/tex/context/base/pdfr-ec.tex) > jo : file=test-001.tex > verbatim : file joke does not exist > jo : file=pos2.tex > > So, the actual file path is not used, but it is the argument passed that > is always used. > > it's \makelocreadfilename{#3}% that does the search ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------