How to install LaTex on Ubuntu or Debian

LaTex is a document markup language for the Tex typesetting program. Due to its high quality typesetting capability, LaTex/TeX system is popularly used in academia and research communities to prepare professional looking documentations and research papers.

If you would like to use LaTeX on Ubuntu or Debian, you can install Tex Live, which is the default TeX distribution on such systems.

To install Tex Live, run the following, which will install bare essential TeX-related programs.

$ sudo apt-get install texlive-base biblatex

On Ubuntu 14.10 or later, the biblatex package no longer exists. Thus, install the following packages instead.

$ sudo apt-get install texlive-base texlive-bibtex-extra

In addition to bare minimum Tex programs, you will probably want to install extra macro packages and LaTex fonts in order to write up a decent article.

For fonts used in LaTex:

$ sudo apt-get install texlive-fonts-recommended

For miscellaneous other fonts such as kpfonts:

$ sudo apt-get install texlive-fonts-extra

To use pdflatex:

$ sudo apt-get install texlive-latex-base

For subfigure support:

$ sudo apt-get install texlive-latex-extra

For other LaTex style files such as float.sty,

$ sudo apt-get install texlive-latex-recommended

For various algorithm-related packages such as algorithm.sty and algorithmic.sty:

$ sudo apt-get install texlive-science

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.
Your name can also be listed here. Write for us as a freelancer.

2 thoughts on “How to install LaTex on Ubuntu or Debian

Leave a comment

Your email address will not be published. Required fields are marked *