From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27583 Path: news.gmane.org!not-for-mail From: nico Newsgroups: gmane.comp.tex.context Subject: Re: \typefile with a file in \usepath fails Date: Sun, 30 Apr 2006 21:02:18 +0200 Message-ID: References: <44549270.2080506@wxs.nl> <4454BA29.9020106@wxs.nl> <4454ED09.6090004@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 1146423641 15294 80.91.229.2 (30 Apr 2006 19:00:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 19:00:41 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 30 21:00:39 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 1FaH9j-0007Gq-B7 for gctc-ntg-context-518@m.gmane.org; Sun, 30 Apr 2006 21:00:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E0113126F8; Sun, 30 Apr 2006 21:00:30 +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 12658-05; Sun, 30 Apr 2006 21:00:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 99E96127AA; Sun, 30 Apr 2006 20:58:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CBBB127AA for ; Sun, 30 Apr 2006 20:58:41 +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 10966-05-2 for ; Sun, 30 Apr 2006 20:58:40 +0200 (CEST) Original-Received: from swip.net (mailfe02.tele2.fr [212.247.154.44]) by ronja.ntg.nl (Postfix) with SMTP id 8E5AC126F8 for ; Sun, 30 Apr 2006 20:58:40 +0200 (CEST) X-T2-Posting-ID: 3brHPWvyEzVNt0QNlxQWsxGJRDYe7rueGgqwO1zxZAg= X-Cloudmark-Score: 0.000000 [] Original-Received: from [83.179.152.93] (HELO localhost) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 190036390 for ntg-context@ntg.nl; Sun, 30 Apr 2006 20:58:39 +0200 Original-To: "mailing list for ConTeXt users" In-Reply-To: <4454ED09.6090004@wxs.nl> User-Agent: Opera M2/7.54 (FreeBSD, build 955) 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:27583 Archived-At: On Sun, 30 Apr 2006 18:59:53 +0200, Hans Hagen wrote: > 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. > it's > > \makelocreadfilename{#3}% > > that does the search With the following patch it works: the \filepath found is used to expand the filename. \makelocreadfilename is still used, but i don't understand its role. \def\dodotypefile[#1][#2]#3% {\bgroup \let\currenttypingclass\??tp \edef\currenttyping{#1}% \typingparameter\c!before \doiflocfileelse{#3} \donetrue % sets \readfilename {\doifinputfileelse{#3} {\donetrue\def\readfilename{\pathplusfile{\filepath}{#3}}} % here the filename is absolute \donefalse}% \ifdone \startpacked % includes \bgroup \dosetuptypelinenumbering{#2}% \doifinset{\typingparameter\c!option}{\v!commands,\v!slanted,\v!normal} {\setuptyping[#1][\c!option=\v!none]}% \doif{\typingparameter\c!option}\v!color {\expandafter\aftersplitstring#3\at.\to\prettyidentifier \settypingparameter\c!option{\prettyidentifier}}% \initializetyping \startverbatimcolor % still use this macro, but applied to \readfilename instead of #3 \makelocreadfilename{\readfilename}% \doifundefinedelse{\currenttypingclass#3\v!global\c!start} ... Now it can wait a real fix :-) Regards, BG