On Mon, 17 Dec 2007, Aditya Mahajan wrote:
On Mon, 17 Dec 2007, Hans Hagen wrote:
Aditya Mahajan wrote:
Why did luatools decide not to scan my user texmf trees? Since the new files are located at /home/adityam/texmf and this tree is not scanned, format generation does not work.
maybe --verbose helps
with luatools --generate, --verbose does not give any additional
information.
Ok. Finally had to read luatools.lua. MTX_INPUT_TRACE=10 luatools --generate gives a bit more info. This is what I think is happening. I do sudo mktexlsr and get mktexlsr: Updating /usr/local/share/texmf/ls-R... mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Done. ls-R-TEXMFMAIN and ls-R-TEXLIVE and symlinked in other directories. But no ls-R was created for TEXMFHOME. Luatools looks in directors in TEXMF containing ls-R files. It does not find any in $HOME/texmf, so it does not include it in the hash for where to look for files. When it searches for cont-en.tex it finds one in /usr/share/texmf/ (the distribution directory). kpsewhich on the other hand (it appears) also searches files in the TEXMF tree. This is what kpsewhich tells me kdebug:Search path for ls-R files (from texmf.cnf) kdebug: = /var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/usr/share/texmf-texlive kdebug:Search path for tex files (from texmf.cnf) kdebug: = .:/home/adityam/.texmf-config/tex/kpsewhich//:/home/adityam/.texmf-var/tex/kpsewhich//:/home/adityam/texmf/tex/kpsewhich//:/etc/texmf/tex/kpsewhich//:!!/var/lib/texmf/tex/kpsewhich//:!!/usr/local/share/texmf/tex/kpsewhich//:!!/usr/share/texmf/tex/kpsewhic h//:!!/usr/share/texmf-texlive/tex/kpsewhich//:/home/adityam/.texmf-config/tex/generic//:/home/adityam/.texmf-var/tex/generic//:/home/adityam/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic/ /:!!/usr/share/texmf/tex/generic//:!!/usr/share/texmf-texlive/tex/generic//:/home/adityam/.texmf-config/tex///:/home/adityam/.texmf-var/tex///:/home/adityam/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/shar e/texmf/tex///:!!/usr/share/texmf-texlive/tex/// So /home/adityam/texmf/tex/// tree is there, and it seems that kpsewhich finds the file by brute-force search of that tree (there is no ls-R file in TEXMFHOME). So, I read the man page of mktexlsr and try mktexlsr $HOME/texmf which creates a ls-R in $HOME/texmf Now, I recreate the formats, and finally things are working. That is, I am back to where I was before I reinstalled the OS. Mkiv is working, mtxrun --script font still does not work. I will look into that tomorrow. Bottom line, if you try to install mkiv on a non-distribution tree, run mktexlsr <tree> before generating formats. Aditya