From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41225 Path: news.gmane.org!not-for-mail From: Jin-Hwan Cho Newsgroups: gmane.comp.tex.context Subject: Re: Struggling with luatools and MacTeX Date: Tue, 27 May 2008 23:17:09 +0900 Message-ID: <29D50E92-8806-47A9-9156-957737254CA7@ktug.or.kr> References: <821D2E8E-8D03-48C8-AC16-39CBB847DC20@ktug.or.kr> <483A7BC7.40601@wxs.nl> <483BC49B.4040800@elvenkind.com> <2C396993-EDE9-4B29-8271-1BF99036E1FC@ktug.or.kr> <483BD930.1000809@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211897953 13241 80.91.229.12 (27 May 2008 14:19:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 14:19:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 27 16:19:44 2008 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 1K101V-0001CS-Ar for gctc-ntg-context-518@m.gmane.org; Tue, 27 May 2008 16:19:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CD0EC1FB6D; Tue, 27 May 2008 16:18:45 +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 05800-03-5; Tue, 27 May 2008 16:17:57 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48C231FC00; Tue, 27 May 2008 16:17:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 93BB51FC00 for ; Tue, 27 May 2008 16:17:55 +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 05800-03-4 for ; Tue, 27 May 2008 16:17:14 +0200 (CEST) Original-Received: from math.suwon.ac.kr (unknown [210.123.54.38]) by ronja.ntg.nl (Postfix) with ESMTP id A57291FBB5 for ; Tue, 27 May 2008 16:17:13 +0200 (CEST) Original-Received: from [10.0.1.3] (unknown [121.161.146.33]) by math.suwon.ac.kr (Postfix) with ESMTP id 46CC22200CC for ; Tue, 27 May 2008 23:16:49 +0900 (KST) In-Reply-To: <483BD930.1000809@wxs.nl> X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:41225 Archived-At: On May 27, 2008, at 6:49 PM, Hans Hagen wrote: > Jin-Hwan Cho wrote: >> On May 27, 2008, at 5:21 PM, Taco Hoekwater wrote: >> >>> Jin-Hwan Cho wrote: >>>> Still luatools cmr10.tfm does not work. But luatools cmr10.tfm* >>>> works. >>>> Is it intended? >>> luatools cmr10.tfm works for me (linux). It could be a Mac thing >>> (\r vs \n) but I have no idea how to test that. >> >> I checked the function input.aux.find_file() in luatools.lua. >> >> In the 4309th line (for _, path in pairs(pathlist) do) the variable >> "path" was >> >> !!/usr/local/texlive/2007/texmf-dist >> >> when "path" indicates the texmf tree having cmr10.tfm. >> >> Here, it did not end with "//" so that the variable recurse became >> "false". >> After I changed the value of "recurse" explicitly to "true", I could >> get the >> right result. >> >> Do you know exact reason? > > // indicates that the tree should be searched recursively In my case, the variable "path" shows the name of the directories written in $TEXMF of texmf.cnf. Of course, every path does not end with "//". But everyone thinks that file must be searched recursively for these directories. In my opinion, the following line is non-sense. if path:find("//$") then recurse = true else recurse = false end After giving "recurse = true" explicitly, everything works fine for me. Best. ChoF. ___________________________________________________________________________________ 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 ___________________________________________________________________________________