notes/Resources/dev/latex.md
2023-12-10 16:30:43 +00:00

974 B

Latex

Latex is a language/ecosystem that compiles to html/pdf probably some other formats aswell.

TeXlive is the software package that manages most of the tools.

tlmgr is the cli that manages installation of packages pdflatex is the cli that converts .tex files to pdfs

Installation of texlive

Non-interactive default installation on anything but Windows:

cd /tmp # working directory of your choice
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz # or curl instead of wget
zcat < install-tl-unx.tar.gz | tar xf -
cd install-tl-*
perl ./install-tl --no-interaction # as root or with writable destination

Finally, prepend /usr/local/texlive/YYYY/bin/PLATFORM to your PATH, e.g., /usr/local/texlive/2023/bin/x86_64-linux

Installation of packages

First you need to run

tlmgr init-usertree -> this should create a ~/texmf directory

Then we can install packages/fonts like so:

tlmgr install fira