Suggestion to support TeXDist symlink creation on Macs out-of-the-box
jfbu
jfbu at free.fr
Thu Apr 4 09:07:50 CEST 2019
Le 4 avr. 2019 à 09:06, jfbu <jfbu at free.fr> a écrit :
>
> Le 4 avr. 2019 à 09:03, jfbu <jfbu at free.fr> a écrit :
>
>> Hi Mojca
>>
>> Le 30 mars 2019 à 19:47, Mojca Miklavec <mojca.miklavec.lists at gmail.com> a écrit :
>>
>>> From the console it works out of the box without editing
>>> bash profile.
>>
>> In my experience the kpsewhich --var-value is slow on Mac OS.
>>
>> As a result although I do my have own customized TeXDist structure
>> which I maintain myself from year to year I do have extra
>> set-up in my .bash_profile which looks like this
>>
>> TEXDISTRIBCONTENTS="/Library/TeX/Distributions/.DefaultTeX/Contents"
>> export TEXMFSYSVAR="`cd -P $TEXDISTRIBCONTENTS/TexmfSysVar && pwd`"
>> export TEXMFLOCAL="`cd -P $TEXDISTRIBCONTENTS/TexmfLocal && pwd`"
>> # # Thus:
>> export TEXMFDIST="`cd -P $TEXDISTRIBCONTENTS/Root/texmf-dist && pwd`"
>> # # pour TL2013,14,15 texmf et texmf-dist identiques.
>> export TEXMFMAIN="`cd -P $TEXDISTRIBCONTENTS/AllTexmf/texmf && pwd`"
>> export SYSTEXMF="$TEXMFSYSVAR:$TEXMFLOCAL:$TEXMFDIST"
>> export TEXMFHOME="/Users/xxxxxxxxxx/Library/texmf"
>>
>> This was some years back absolutely needed when loading of
>> AUCTeX in Emacs would make something like 9 calls to kpsewhich
>> which ended up in a freeze of Emacs for seconds at each
>> initial opening of a buffer window foo.tex.
>>
>> Also, e.g. in my build script for xint I see
>>
>> # as kpsewhich is very slow (.5s) I want to evaluate once only.
>> installlocal: xint.tds.zip
>> $(eval $@_tmp := $(TEXMF_local))
>> unzip xint.tds.zip -d $($@_tmp) && texhash $($@_tmp)
>>
>
> sorry this can not be understood without
>
> TEXMF_local = $(shell kpsewhich -var-value TEXMFLOCAL)
sorry again, the above is from the Makefile which can be extracted
from the xint.zip shipped to CTAN. Of course at home I set up
TEXMFLOCAL as mentioned above in my environment so I don't need
and do not use this.
>
>>
>
>> for the same reason.
>>
>> Now perhaps this is obsolete information.
>>
>> The drawback of the above is that if I switch distribution
>> I need to open a new Terminal and/or quit and relaunch Emacs to
>> fetch the new environment (maybe there is better Emacs way,
>> I work with limited knowledge of the best way to use it; I know
>> my build (https://github.com/railwaycat/homebrew-emacsmacport)
>> incorporates an import of shell environment at start, not sure
>> about others -- I recall it was a problem say 10 years ago
>> on the Mac)
>>
>> Best,
>>
>> Jean-François
>>
>>
>>
>>
>>
>
More information about the tex-live
mailing list