Hello π, I'm Oromion π΅πͺ. I'm an undergraduate student of mathematics and in this video tutorial, we will show how to download and install the last version of the TeX Live Manager in order to use LaTeX for all users on your distribution of Debian.
LaTeX is a document preparation system. In my opinion, is very useful and funny for writing beautiful math equations like that Green's theorem:
$$
\color{yellow}\Large\oint_{\scriptstyle C}(L\, \mathrm{d}x + M\, \mathrm{d}y) =
\iint_{D} \left(\frac{\partial M}{\partial x} -
\frac{\partial L}{\partial y}\right)\, \mathrm{d}x + M\, \mathrm{d}y
$$
or detailed graphics with PGF, for example
or with Tikz (TikZ ist kein Zeichenprogramm)
- Permanent internet connection, the download may take between 1 and two hours.
- Use your favorite shell (like Bash or Z shell), we will use some commands that we will explain below.
- Install
wget
,gksu
andperl-tk
if not yet installed in your sistem. Do it in the terminal withsudo apt install wget gksu perl-tk
. - A web browser such as Mozilla Firefox, Chromium for example.
We will use the commands
sudo
,mkdir
,chown
,whoami
,id
andtar
. If you yet not familiarized with these commands, do not worry, just follow my steps, right?
Please, ascertain you have TeX and LaTeX installed on your computer, for this we will execute the next commads:
carlosal1015@Oromion:~$ tex --version & latex --version
if you already have installed an earlier version of TeX Live and wish to update it, type the command
carlosal1015@Oromion:~$ sudo su
root@Oromion:/home/carlosal1015# rm -rf /usr/local/texlive/2018
root@Oromion:/home/carlosal1015# exit
carlosal1015@Oromion:~$ rm -rf ~/.texlive2018
specifying the year of the TeX Live version. We recommend two directories to install TeX Live. The first is to create /opt/texlive
which is used for third-party programs or use the default path of the TeX Live installer.
The first one will not have conflict with its package manager (
APT
orAPTITUDE
).
carlosal1015@Oromion:~$ sudo su
root@Oromion:/home/carlosal1015# mkdir /opt/texlive
root@Oromion:/home/carlosal1015# chown carlosal1015.carlosal1015 /opt/texlive # In my case
root@Oromion:/home/carlosal1015# exit
carlosal1015@Oromion:~$ cd Downloads/
carlosal1015@Oromion:~$ wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
carlosal1015@Oromion:~$ tar -xf install-tl-unx.tar.gz
carlosal1015@Oromion:~$ cd install-tl-20181010/
carlosal1015@Oromion:~$ ./install-tl
Now, we can start with the installation.
- Check if please visit the TeX Live web page.
- Download this file
install-tl-unx.tar.gz
. - Change directory to the compressed file and unzip your file with the command
tar -xf install-tl-unx.tar.gz
. - Change directory to
install-tl-20180301
and execute the TeX Live Manager installer withsudo ./install-tl
.
Now we need to add the $PATH
to the root's profile or the user's profile, in my case, I will do it with the user.
gedit ~/.bashrc # ~/.zshrc
export PATH=/opt/texlive/bin/x86_64-linux:$PATH
export MANPATH=/opt/texlive/texmf-dist/doc/man:$MANPATH
export INFOPATH=/opt/texlive/texmf-dist/doc/info:$INFOPATH
gedit ~/.bashrc # ~/.zshrc
export PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2017/texmf-dist/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2017/texmf-dist/doc/info:$INFOPATH
source ~/.bashrc # ~/.zshrc
Finally, create a nice file helloworld.tex
and try to compile with pdflatex
. π
I am not responsible for the damage caused. It's just a joke, everything will be fine.
Renderized thanks to $\KaTeX$.