[tex-live] reliability of ~/texmf in TeXLive and other distros?
mpg at elzevir.fr
Fri Dec 11 13:32:12 CET 2009
Norbert Preining a écrit :
> I would suggest:
> cp sagetex.sty `kpsewhich -expand-var '$TEXMFHOME'`/tex/latex/sagetex
> that should work on all different platforms and under different
I agree. It'll work on any TeX Live, MacTeX or teTeX installation AFAIK.
>> texhash ~/texmf/
> That is probably *counterproductive* since
> is searched without the ls-R database, so you only might create
> problems here.
> FOr TEXMFLOCAL it is the same AFAIR.
I'm afraid not. TEXMFLOCAL uses ls-R database.
> (That is at least since TeX Live 2005 the way (AFAIR))
I confirm concerning TEXMFHOME (my university still runs 2005 on some servers).
Concering mktexlsr, I think the best you can do is call it without argument, ad
ignore the errors: it will try to refresh the database for all trees needing a
database, but will skip system trees if user doesn't have enough permissions to
To sum up, I'd do (pseudo-code):
if user is root or system-wide installation was requested:
TREE = TEXMFLOCAL
TREE = TEXMFHOME
installpath = `kpsewhich --var-value TREE`
mkdir -p installpath
cp sagetex.sty installpath
More information about the tex-live