Install Texmaker and the latest Texlive distribution
sudo apt install texlive texlive-science texlive-science-doc texlive-lang-italian texlive-lang-english texlive-lang-european texlive-fonts-recommended texlive-fonts-extra texlive-bibtex-extra feynmf texlive-metapost texlive-publishers texlive-latex-extra lmodern tex-gyre texlive-humanities texlive-xetex biber latexmk
Install nonfree latex fonts
curl -O http://tug.org/fonts/getnonfreefonts/install-getnonfreefonts
sudo texlua install-getnonfreefonts
getnonfreefonts --help
Install a specific font system-wide with:
sudo getnonfreefonts --sys garamond && sudo mktexlsr
or simply install all of them:
sudo getnonfreefonts --sys -a && sudo mktexlsr
(source)
Use the URW-Garamond font
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage[urw-garamond]{mathdesign}
(the order matters! AMS packages define symbols instead of redefining them, and should then come first)
Install pdf2htmlEX
sudo apt-add-repository ppa:coolwanglu/pdf2htmlex
sudo apt update && sudo apt install pdf2htmlex ttfautohint python-djvu
Usage: QuickStart
pdf2htmlEX -f [number of first page] -l [number of last page] --external-hint-tool=ttfautohint --embed cfijo --dest-dir [output directory] [input pdf file]
Install vanilla texlive and integrate it with Ubuntu
Follow the installation instructions from tug.org and these instruction to integrate it. Test the integration with:
sudo apt install texstudio
and check that it doesn’t want to install any texlive dependencies.
Let TexStudio open .tex files in new windows
sudo gedit /usr/share/applications/texstudio.desktop
Change the “Exec” line to:
Exec=texstudio --start-always %F
(ref)