Compact TeX distribution as alternative to the full TeX Live / MacTeX
brew install --cask basictex
basictex