Quick and dirty LaTeX/Pandoc setup

22 July 2024

Quick instructions for getting LaTeX and Pandoc set up on MacOS with enough of the bells and whistles to be useful.

We use brew to install Pandoc and BasicTex and then use ‘the native TeX Live Manager’ i.e. the package management system that comes with BasicTex to install various core packages after that.

# brew
brew install basictex pandoc

# Note that you need to add the below to your .bashrc or similar
eval "$(/usr/libexec/path_helper)"

# tex bits
sudo tlmgr update --self
sudo tlmgr install texliveonfly
sudo tlmgr install adjustbox
sudo tlmgr install tcolorbox
sudo tlmgr install collectbox
sudo tlmgr install ucs
sudo tlmgr install environ
sudo tlmgr install trimspaces
sudo tlmgr install titling
sudo tlmgr install enumitem
sudo tlmgr install rsfs

You should then be able to:

pandoc input.md \
	--from markdown \
	--to pdf \
	--output output.pdf \
	--pdf-engine=xelatex