Native Installation
Note
Operating system dependent installation guide.
The LaTeX installation method depends on the operating system (GNU/Linux, macOS, or Windows). For GNU/Linux, the method also varies from one Linux distribution to another. The description in this tutorial applies to Debian/Ubuntu Linux systems. If you use another GNU/Linux distribution, adapt the description accordingly.
Follow the detailed description depending on your host OS.
Note
Remove all LaTeX packages on your system first, for a clean installation of the latest TeX Live installation. For a clean removal of the LaTeX packages please see here for some hints.
There are multiple ways of getting a TeX distribution. However, we recommend the usage of TeX Live on GNU/Linux. This guide describes how to install it on your system.
Attention
Do not install TeX Live from your operating system’s package manager. It is possible that it will not install the latest version, which is needed to get the latest BFH LaTeX packages.
Basic Packages
Install required packages
# apt install -y unzip wget perl
Installation of TeX Live
Change into a temporary folder
$ mkdir /tmp/texlive && cd /tmp/texlive
Download the TeX Live installer for Linux
$ wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip
Extract the install-tl.zip archive
$ unzip install-tl.zip -d install-tl
Change to the extracted directory
$ cd install-tl/install-tl-$(date +%Y%m%d)
Start the installation
# perl install-tl ======================> TeX Live installation procedure <===================== ======> Letters/digits in <angle brackets> indicate <======= ======> menu items for actions or customizations <======= = help> https://tug.org/texlive/doc/install-tl.html <======= Detected platform: GNU/Linux on x86_64 <B> set binary platforms: 1 out of 16 <S> set installation scheme: scheme-full <C> set installation collections: 40 collections out of 41, disk space required: 7231 MB <D> set directories: TEXDIR (the main TeX directory): /usr/local/texlive/2021 TEXMFLOCAL (directory for site-wide local files): /usr/local/texlive/texmf-local TEXMFSYSVAR (directory for variable and automatically generated data): /usr/local/texlive/2021/texmf-var TEXMFSYSCONFIG (directory for local config): /usr/local/texlive/2021/texmf-config TEXMFVAR (personal directory for variable and automatically generated data): ~/.texlive2021/texmf-var TEXMFCONFIG (personal directory for local config): ~/.texlive2021/texmf-config TEXMFHOME (directory for user-specific files): ~/texmf <O> options: [ ] use letter size instead of A4 by default [X] allow execution of restricted list of programs via \write18 [X] create all format files [X] install macro/font doc tree [X] install macro/font source tree [ ] create symlinks to standard directories <V> set up for portable installation Actions: <I> start installation to hard disk <P> save installation profile to 'texlive.profile' and exit <Q> quit Enter command:
Press
Sto change the scheme=============================================================================== Select scheme: a [X] full scheme (everything) b [ ] medium scheme (small + more packages and languages) c [ ] small scheme (basic + xetex, metapost, a few languages) d [ ] basic scheme (plain and latex) e [ ] minimal scheme (plain only) f [ ] ConTeXt scheme g [ ] GUST TeX Live scheme h [ ] infrastructure-only scheme (no TeX at all) i [ ] teTeX scheme (more than medium, but nowhere near full) j [ ] custom selection of collections Actions: (disk space required: 7231 MB) <R> return to main menu <Q> quit Enter letter to select scheme:
Select “small scheme” (
c)Return to main menu (
R)Install TeX Live (
I)After the installation completed, add
tlmgrand the binaries it installed to your system pathThe command below will add symlinks in
/usr/local/binto the texlive binary dir on your system.# /usr/local/texlive/$(date +%Y)/bin/x86_64-linux/tlmgr path add
Note
Each time when running
tlmgrinstall, ensure to also runtlmgr path addto update the symlinks. Else you might seecommand not foundfor some tools you install withtlmgr.
Installation of additional tools
Install additional Tools/Packages
Note
We will only work through the required
nunitofont. Repeat the steps forbiberandlatexmk. The procedure is the same for all three packages.# tlmgr install nunito
Install Inkscape (recommended)
Continue on Tools and Editors
Install
make(optional)To work with Makefiles
# apt install -y make
note
We recommend the usage of BasicTex (MacTeX respectively) for macOS. If you prefer another way feel free to do so. (You may also follow the Linux install guide with install-tl)
Note
MacTex is a much larger package, installing about 10GB of data onto your machine. Use BasicTeX to install only strictly necessary packages. You can substitute MacTeX with BasicTeX
Installation of BasicTeX
Download and install BasicTex
Either via Installer (Web) or Terminal (homebrew)
Show Terminal
$ brew install --cask basictex # or mactex
Show Installer
Download the pgk from http://www.tug.org/mactex
Show screenshot

Double click the downloaded pkg installer
Click through to accept terms
Show screenshot

Close the installer
Show screenshot

Note
If you installed BasicTeX you will from here on use the tlmgr command
line utility. MacTex comes with TeX Live Utility, which is similar in
handling as the GUI from windows. There will be no documentation about
this in this manual, familiarize yourself with the GUI when you took the
MacTeX path.
Installation of additional tools
Install additional Tools/Packages
Note
We will only work through the required
nunitofont. Repeat the steps forbiberandlatexmk. The procedure is the same for all three packages.Open a terminal (
command + spacethen search for “terminal”) and enter# tlmgr install nunito
Inkscape (recommended)
Continue on Tools and Editors
Warning
Because the TeX distribution modifies the search path of your system, only one TeX distribution can be active at a time. If you have MiKTeX installed remove it first or adapt the search path to switch between the two if you don’t want to uninstall MiKTeX.
Note
On a BFH-managed Windows PC? See LaTeX on BFH Windows instead. The required tools are pre-packaged via the Software Center there.
We recommend the usage of TeX Live for Windows. Uninstall other TeX distributions if you don’t know how to switch the search path or if you have no strong arguments for having multiple TeX distributions in parallel on your system.
Follow the description below to download and run the TeX Live installer.
Note
Although maybe a little different, the installation is roughly the same for all Windows versions. This documentation uses Windows 11.
Installation of TeX Live
For further information about the installation, read the installation information.
Download the TeX Live installer from tug.org
Show screenshot

If the download is blocked, allow it by telling windows to keep it
Show screenshot

First prompt

Second prompt
Open the folder where the installer was downloaded and run it as administrator
Show screenshot

If the protection appears, dismiss it by clicking on
More infoand thenRun anywayShow screenshot

Click “More info”

Then click “Run anyway”
Select install two times
Show screenshot

Select “Install” and click “Next”

Click “Install”
Wait until the next window pops up, then select the init7 mirror from Switzerland
Show screenshot

In the next window, switch to advanced install mode
Show screenshot

Disable “Install TexWorks front end”, as we recommend other editors
Show screenshot

Under “Selections”, “Scheme”, click “Change” to select the “small scheme”
Show screenshot

Click “Change”

Select “small-scheme”
Wait for the installation to finish and close the installer
Show screenshot

Wait for the packages to install

Then close the installer
Verify the installation by checking for the
C:\texlivefolderShow screenshot

Installation of additional tools
Install additional Tools/Packages
Note
We will only work through the required
nunitofont. Repeat the steps forbiberandlatexmk. The procedure is the same for all three packages.Tools can now either be installed via terminal (e.g. PowerShell) or via the TeX Live Manager GUI.
Show Terminal
Press the Windows key and enter “PowerShell”. Then execute the following command:
tlmgr install nunito
Show GUI
Press the Windows key and search for “TeX Live Manager” to open it.

On status, select “All”

If an additional window opens, wait for it to finish and then close it.
Search for “nunito”

Select “nunito” in the bottom of the window and click “Install marked”

Make sure the tick mark is set on the packages you want to install. If a window pops up saying “nothing to do”, the package is already installed.
Install Inkscape (recommended)
Continue on Tools and Editors