# Updating the NTNU templates for LaTeX on Mac

This page only applies to Mac, but there are other instructions for Linux and for Windows.

## If your Mac is installed by Drift

… or if you have already installed the distribution yourself at an earlier time, following the instructions at the bottom of this page:

Open a Terminal window, for example by searching for "Terminal" in Spotlight:

In the terminal window, type:

cd ~/Library/texmf
hg pull -u

## If you have installed your Mac yourself

If your Mac is not very new, you may already have followed the instructions below (and forgotten about it). Try following the above instructions first. If that fails, install the templates as follows:

This only needs to be done once. If you later need to update the LaTeX templates, you can follow the instructions at the top of this page.

• Install the Mercurial program
• Install the MacTeX program (unless you already have MacTeX 2017 or newer)
• Open a Terminal window and run the following commands:
cd ~/Library
hg clone https://www.math.ntnu.no/hg/texmf

And you're done!