Extended Brain Storage

# macOS: MacTeX LaTeX Distribution

Posted on September 18, 2014

A brief manual to install command-line-based tools that are necessary to produce PDF documents from LaTeX sources…

### Installation Options

In order to install support for LaTeX on a computer equipped with Apple’s macOS, the MacTeX distribution needs to be installed. It works the “same way” (i.e. out-of-the-box) as the TeX Live distribution, which is used in Unix/Linux-based or Windows-based operating systems.

There are several options to install the LaTeX support, two of which are discussed as follows:

### Installation Using Homebrew

Should the macOS device lack the Homebrew package manager, it can be installed using the macOS: Install Homebrew tutorial accordingly.

Having the package manager ready, it is possible to search for the MacTeX package:

$brew search mactex ==> Searching local taps... ==> Searching taps on GitHub... caskroom/cask/mactex caskroom/cask/mactex-no-gui ==> Searching blacklisted, migrated and deleted formulae...  It is obvious from the previous output that the mactex package is not present in the Homebrew’s package repository. However, it is available via casks. Casks are an extension to the Homebrew repository, which enables macOS users to access myriad of further applications and binaries. Therefore, the MacTeX package can be installed from its cask as follows (will take some time due to its size): $ brew install caskroom/cask/mactex


That’s it, the pdflatex command and a heap of others are now available :-)

### Installation Using Source Packages

The installation from sources is pretty straightforward:

That’s it, the pdflatex command and a heap of others are now available :-)