Skip to main content

Setup

I am a little crazy about local things

This is for a local setup. If you don’t want to mess with all this setup, use OverLeaf and get the student discount.

I used to write with the excellent Texifier but have switched to VSCode and the LaTeX Workshop plugin. You will need TinyTeX installed. Note that the plugin uses LatexMk under the hood.

This is on macOS1 though the tlmgr commands will work wherever.

Install TinyTeX + Packages

# Install TinyTeX. Note that this may require Superuser privs since the
# binary ends up in /usr/local/bin
# CURL|BASH BABY!
curl -sL "https://yihui.org/tinytex/install-bin-unix.sh" | sh

# Install some required packages.
brew install biber latexindent

# You don't need all these. Just some stuff accumulated over the years.
#
# Packages are stored in $HOME/Library/TinyTeX/texmf-dist/tex/latex
#
tlmgr install \
adjustbox \
algorithm \
algpseudocode \
amsfonts \
amsmath \
amsthm \
array \
arydshln \
biber \
biblatex \
biblatex-apa \
biblatex-ieee \
biblatex-mla \
blindtext \
booktabs \
caption \
changepage \
coffeestains \
color \
colortbl \
courier \
csquotes \
empheq \
enumlist \
extarticle \
fancyhdr \
fbb \
fontawesome \
fontaxes \
footmisc \
framed \
fullpage \
graphicx \
grfext \
hyperref \
inconsolata \
libertine \
libertinus \
libertinus-type1 \
libertinust1math \
longtable \
ly1 \
microtype \
minted \
multicol \
multirow \
mweights \
needspace \
newfloat \
newunicodechar \
ornaments \
pdflscape \
pgf \
pgfornament \
rotating \
setspace \
soul \
subcaption \
tabularx \
tikz \
titlesec \
titling \
upquote \
xcolor \
xstring

Repositories

You may have to switch between the TinyTeX default and CTAN sometimes like so:

# Default
tlmgr option repository https://tlnet.yihui.org

# CTAN
tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet

Updates to tlmgr

Run this again if it complains:

curl -sL "https://yihui.org/tinytex/install-bin-unix.sh" | sh

Footnotes

  1. TexShop is another nice, free alternative for macOS.