[NTG-context] Struggling with luatools and MacTeX

Jin-Hwan Cho chofchof at ktug.or.kr
Tue May 27 23:37:47 CEST 2008


On May 27, 2008, at 11:23 PM, Hans Hagen wrote:

> Jin-Hwan Cho wrote:
>> 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
>
> well, the !! as well as // are kind of standard web2c / tds / whatever

Finally I found what caused the problem just for me. My "texmf.cnf" had
the following line:

TEXMFHOME=$HOME/share/texmf-hyperref;$HOME/share/texmf-context

After replacing the character ";" to "," I had no problem.

Thanks again, ChoF.


More information about the ntg-context mailing list