Re: texhax Digest, Vol 2025, Issue 66

Mike Marchywka <[email protected]> Wed, 6 Aug 2025 10:00:47 +0000
Newsgroups gmane.comp.tex.texhax
Message-ID <MWHPR11MB0077D3543724F1D57782158FBE2DA@MWHPR11MB0077.namprd11.prod.outlook.com>
( I am stuck with hotmail in browser since their stupid oauth2 crap and don't have
thrunderbird yet so I'm top posting .... )

I don't have 2 tex installs but I do change paths a lot for latex and c++.
In /etc/bash.bashrc I setup some custom paths to scripts of my own and save
the path in a new path variable so if can be restored later if you want to change PATH.
One of the things that seems version dependent 
is patches in the kpse paths. You might want to modify these yourself too. I have
a bash script with stuff like this with "over" being overides to the default paths
that could vary a lot with version. fwiw. 

. kpse_util prp BIBINPUTS $lroot/bib/
for over in $fover
do
. kpse_util prp TEXINPUTS  $over
. kpse_util prp BSTINPUTS  $over
. kpse_util prp BIBINPUTS  $over
done

for localmiss in $flocalmiss
do
. kpse_util pop TEXINPUTS  $localmiss
. kpse_util pop BSTINPUTS  $localmiss
. kpse_util pop BIBINPUTS  $localmiss
done




 Mike Marchywka 
157 Zachary 
Talking Rock GA 30175
was 44 Crosscreek Trail Jasper GA 30143
was 306 Charles Cox Drive  Canton, GA 30115
470-758-0799
404-788-1216 





________________________________________
From: texhax <[email protected]> on behalf of David Carlisle <[email protected]>
Sent: Wednesday, August 6, 2025 5:15 AM
To: vrgovinda
Cc: [email protected]
Subject: Re: texhax Digest, Vol 2025, Issue 66



On Wed, 6 Aug 2025 at 10:11, vrgovinda <[email protected]<mailto:[email protected]>> wrote:

> Do not change your default PATH, in a shell where you want to use tl2025 do

> export PATH=/usr/local/texlive/2025/bin/x86_64-linux:$PATH

> and all tex related programs will pick up the upstream tex and set their input paths accordingly (as they are set relative to the location of the binary)

Thanks David.
How do I switch to TeXLive 2022 whenever needed?

well you could undo the path setting but normally I just quit that shell.  setting the PATH only affects the xterm (or whatever) you are in at that moment, all other terminal windows will have /usr/bin at the front of the path and use the system TeX