LaTeX forum ⇒ 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
Posts: 15
Joined: Sun Oct 13, 2013 2:25 am

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

Postby wegelin » Thu Sep 24, 2015 3:43 pm

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?

Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Postby josephwright » Sun Oct 04, 2015 10:43 am

As detailed for example in ... th-on-os-x, on the Mac the location
  1. /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 .
Joseph Wright

Return to “TeX Live and MacTeX”

Who is online

Users browsing this forum: No registered users and 1 guest