So far I've installed sudo apt-get install texlive-publishers and sudo apt-get install texlive-science, but I don't want to sudo apt-get install texlive-full because of the huge download.
Using \usepackage{hyperref} gives me some errors.
So obviously hyperref is located in some other package.
The readme and manual of hyperref didn't give me any clues.
This website provides some clues, but doesn't specify which of the packages can give hyperref.
texlive-base - 136 MB
texlive-latex-recommended - 177 MB
texlive - 240 MB
texlive-latex-extra - 404 MB
texlive-full - 4714 MB
So could anyone please help with this info? which texlive package should a person install to get hyperref functionality?
\usepackage{hyperref}. If I remove that line, the LaTeX compiles fine. The LaTeX was generated via LyX, so I'm sure there's no other error. – Nav May 16 '20 at 09:42hyperrefis installed on your system (that is to say it is part of one of thetexlive-...packages you already have installed). You already havehyperref, so for the problem at hand it is not relevant which package contains it. The error messages suggest that something in your document related tohyperrefusage is wrong. In order to help with that we would need to know details about your document. Ideally in the form of a short example document that reproduces the error, a so-called MWE: https://tex.meta.stackexchange.com/q/228/35864 – moewe May 16 '20 at 10:23hyperrefis intexlive-latex-base, see https://packages.debian.org/en/sid/texlive-latex-base. If you are using Ubuntu you can double check thathyperref.styis indeed part oftexlive-latex-basefor your version at https://packages.ubuntu.com/en/xenial/texlive-latex-base under "file list": https://packages.ubuntu.com/en/xenial/all/texlive-latex-base/filelist. – moewe May 16 '20 at 10:39