[luatex] Where to put luatex-fonts-names.lua?

Matthew J. Fisher mfisher_ix at maine.rr.com
Sat Jul 17 00:56:03 CEST 2010


I'm having trouble with the luatex-test.tex file from TeX Live 2010:

$ luatex luatex-test.tex
This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev
3736) 
 restricted \write18 enabled.
(/usr/local/texlive/2010/texmf-dist/tex/generic/context/luatex-test.tex
! Font \testa=file:lmroman10-regular at 12pt not loadable: metric data
not found or bad.

Prior to this, I had done a clean install of TeX Live 2010 in my i386
Linux system, and appended TeX Live 2010's bin path to the PATH variable
in /etc/profile. Then:

$ cd /usr/local/texlive/2010/texmf-dist/tex/generic/context
$ cp luatex-plain.fmt /usr/local/texlive/texmf-local/web2c/luatex/
$ sudo luatex --ini luatex-plain.tex
$ sudo luatools --generate
$ sudo mxtrun --script font --names

As expected, that last step generated the luatex-fonts-names.lua script,
which does contain an entry for lmroman10-regular.otf:

return {
 ["mappings"]={
 ....
 ["lmroman10regular"]={ "LMRoman10-Regular", "lmroman10-regular.otf" },
 .... 

Hans Hagen's presentation from TUG 2009 [1] indicates that the
luatex-fonts-names.lua script must be placed where LuaTex can find it. I
thought perhaps one of the paths suggested by kpsewhich might work
(kpsewichi --show-path=lua). But alas, no.

Thanks in advance for any assistance.

 - Matt Fisher

[1] http://luatex.org/talks/print-plain-tug-2009.pdf



More information about the luatex mailing list