Install LaTeX on Mac with Brew

For a client in Germany, I had to write an invoice today. Given all the trouble I lately had with Word, I gave LaTeX a try. I was confident that the outcome would look well and hopefully be reusable for future invoices. The last time I used LaTeX was in 2012 when writing my master thesis, so first things first, I had to install LaTeX on my current machine.

Using homebrew, I ran

brew cask install basictex

to install basictex which is a slimmed down version of MacTex (90 MB vs 1 GB). In case one is using a template from someone else then that makes heavy usage of packages, one can install them manually via

sudo tlmgr install libertine

As with programming, it pays off to have your LaTeX documents under source control and make many small commits.