I have spent quite a few hours researching how to do this, but still cannot understand how to add a missing .sty file on my linux mint machine.
I have installed texlive by:
sudo apt install texlive-latex-base
I then tried to compile my .tex document:
pdflatex filename.tex
I got the error message that the endfloat.sty is missing.
So I tried to install it, by first trying to find where my sty files are:
whereis texlive
which returns /usr/share/texlive
, then after a bit of searching I found the other .sty files are in their own directories within /usr/share/texlive/texmf-dist/tex/latex.
I tried to make a path then to put my missing .sty file in using the sudo command:
sudo mkdir endfloat
which made the directory
/usr/share/texlive/texmf-dist/tex/latex/endfloat
I changed into that directory, and then did
sudo wget https://mirror.hmc.edu/ctan/obsolete/macros/latex209/contrib/misc/endfloat.sty
But when I reran:
pdflatex filename.tex
Still it did not compile because it says the .sty file is missing.
tlmgr)? – Bernard Aug 22 '17 at 23:38texlive-latex-extrapackage which containsendfloat. – Henri Menke Aug 22 '17 at 23:42texlive-latex-base). To actually install TeXlive, install the packagetexlive-full. – Henri Menke Aug 22 '17 at 23:44$TEXMFHOME(usually~/texmf). – Tobia Tesan Aug 22 '17 at 23:48