[tex-live] luatex + cwebmac
Ingo Krabbe
ikrabbe.ask at gmail.com
Sun Nov 14 13:46:19 CET 2010
On Sun, Nov 14, 2010 at 11:39:11AM +0000, Robin Fairbairns wrote:
> Ingo Krabbe <ikrabbe.ask at gmail.com> wrote:
>
> > that leads to
> >
> > $ kpsewhich cwebmac.tex
> > /home/ingo/texmf/tex/local/askgeneral/cwebmac.tex
> >
> > which is what I expected.
>
> however, not what i would expect; i assumed your HOME variable was the
> equivalent of "~"; it appears from this that it's "~/texmf"
That's true, its $HOME/texmf or ~/texmf
>
> so kpsewhich is assuming you're looking for a file to run "tex" on.
I assumed that it works just as TEXINPUTS variable, since
===== excerpt from texmf.cnf ====
% TEXINPUTS is for TeX input files -- i.e., anything to be found by \input
% or \openin, including .sty, .eps, etc. We specify paths for all known
% formats, past or present. Not all of them are built these days.
% Plain TeX. Have the command tex check all directories as a last
% resort, we may have plain-compatible stuff anywhere.
TEXINPUTS.tex = .;$TEXMF/tex/{plain,generic,}//
=================================
suggests (having
TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST}
)
the rule that
$TEXMF/tex/plain
gets precedence over any other
$TEXMF/tex/*.
I also found the reason that kpsewhich cwebmac.tex does not find the
plain file, as the searchpath is tuned in by
kpsewhich -progname tex or kpsewhich -progname luatex
which comes more clear using
kpsewhich -progname tex -show-path cwebmac.tex | tr ':' '\n'
that shows the whole path order how TEXINPUTS is constructed. Actually
I think there should be no difference in 'looking for a file to run
"tex" on' and searching a file used in an \input statement within the
document source. Both use cases should be affected by TEXINPUTS in the
same way and I think they are.
Thank you for your help in solving this problem.
>
> > When I now use luatex on some file, converted with cweave I get:
> >
> > $ luatex scan_portage_dir.tex | head
> > This is LuaTeX, Version beta-0.60.2-2010071218 (TeX Live 2010)
> > (rev 3736)
> > restricted \write18 enabled.
> > (./scan_portage_dir.tex
> > (/usr/share/texlive/2010/texmf-dist/tex/plain/cweb/cwebmac.tex
> > [...]
> >
> > But this is no luatex problem, it seems a global installation problem:
> >
> > $ tex scan_portage_dir.tex | head
> > This is TeX, Version 3.1415926 (TeX Live 2010)
> > encTeX v. Jun. 2004, reencoding enabled.
> > (./scan_portage_dir.tex
> > (/usr/share/texlive/2010/texmf-dist/tex/plain/cweb/cwebmac.tex)
> > [...]
> >
> > Now I'm confused. What's going wrong here?
Now I'm not confused anymore, sun's shining again :)
bye ingo
More information about the tex-live
mailing list