Basic installation on Mac

brew cask install mactex

Then to use packages (from CTAN), use the TeX Live Utility in the Applications/TeX folder.

  • First TeX Live Utility may need to update core packages
  • Then to update a package, find it in the list, right-click and choose the appropriate option.

Using the minted package:

  • minted uses Pygments for syntax highlighting. Add --shell-escape as a command line argument to pdflatex in TeXShop preferences
  • Ensure Pygments is installed: pip install pygments (Python must be installed first)