[tex-live] asy & texmf v texmf-local

Will Robertson wspr81 at gmail.com
Fri Aug 27 08:57:15 CEST 2010


On 27/08/2010, at 7:52 AM, Karl Berry wrote:

> If you install your own new asymptote, you could put your own new
> asymptote.sty under TEXMFHOME/tex/latex/asymptote/asymptote.sty.  (Or
> TEXMF{,SYS}{CONFIG,VAR} -- but none of those seem like good choices.)
> 
>    makefile could install asymptote.sty over the top of the TL version
>    (i.e., replacing it), 
> 
> It seems conceptually wrong to me to do this.  Does the asy makefile
> install the asy binary in .../bin/i386-linux?

Well, no, but there doesn't seem to be a good system-wide place (hence not TEXMFHOME) in TL to put the asymptote.sty file. Unless 

!!/usr/local/texlive/2010/texmf/tex///           TEXMF
!!/usr/local/texlive/2010/../texmf-local/tex///

were swapped. But since they are in that order by design (and as documented in texmf.cnf), I don't think there's anything we can do about it.

My proposed solution would be to change the configure script in Asymptote to first check for and use
    `kpsewhich -var-value TEXMFMAIN`
then try 
    `kpsewhich -var-value TEXMFLOCAL`
and then fall back to the old method of
    `$prefix/share/texmf/tex/latex`
but I can't imagine that one works very often :)

On the other hand, just deleting the TL-installed asymptote.sty isn't too big of a deal, so the current situation is probably fine.

-- Will




More information about the tex-live mailing list