Skip to content

Commit 2ad833e

Browse files
macOS: Add tex to the PATH
On macOS tex can be installed via Homebrew (as mactex package). However `tex` binary itself will be installed to the directory that is not in the PATH. To enable PDF building script should add this directory to the PATH. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 2c2c600 commit 2ad833e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-all.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,13 @@ if [ $DO_PDF = --pdf ]; then
925925
if [ 4 = "$TEXINFO_VERSION_MAJOR" ]; then
926926
export LC_ALL=C
927927
fi
928+
929+
# On macOS TeX binary might not be in the PATH even when texi2pdf is.
930+
if [ $IS_MAC_OS = yes ]; then
931+
if ! which tex &>/dev/null ; then
932+
export PATH=/Library/TeX/texbin:$PATH
933+
fi
934+
fi
928935
fi
929936

930937
# Standard setup

0 commit comments

Comments
 (0)