TeX Live and MacTeXhow is /Library/TeX/texbin added to $PATH

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
wegelin
Posts: 15
Joined: Sun Oct 13, 2013 2:25 am

how is /Library/TeX/texbin added to $PATH

Post by wegelin »

I installed the latest MacTex.pkg on a new MacBook Pro running OS X Yosemite (10.10.4). After a reboot, pdflatex and xelatex work fine on the bash shell (Terminal application) command line.

This evidently is because the following has been added to my $PATH: /Library/TeX/texbin

My question: How is that added to my path? It is not mentioned in my ~/.profile nor in my .bashrc.
What is the mechanism by which that directory is added to my path at boot-up or at the start of a new Terminal session?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

how is /Library/TeX/texbin added to $PATH

Post by josephwright »

As detailed for example in http://serverfault.com/questions/16355/ ... th-on-os-x, on the Mac the location

Code: Select all

/etc/paths.d
can contain a series of files each of which add exactly one entry to the global path. The files can have 'user friendly' names, so the one that adds the TeX system is called

Code: Select all

TeX
.
Joseph Wright
Post Reply