LaTeX
LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents.
Installation
If you have plenty of space:
sudo apt install texlive-full
If space is limited:
sudo apt install texlive-latex-extra
Usage
To produce a DVI file:
latex document.tex
To produce a PDF file:
pdflatex document.tex
Editors
A list of some LaTeX editors on Ubuntu 20.04: