1

This question already has an answer here:

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.

marked as duplicate by Henri Menke, user36296, Mike Renfro, Bordaigorl, TeXnician Aug 23 '17 at 4:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Can't you install it with TeXLive Package Manager (tlmgr)? – Bernard Aug 22 '17 at 23:38
  • 3
    Instead of screwing up your system directories, install the texlive-latex-extra package which contains endfloat. – Henri Menke Aug 22 '17 at 23:42
  • 3
    Also, you haven't installed TeXlive, but merely a tiny part of it (texlive-latex-base). To actually install TeXlive, install the package texlive-full. – Henri Menke Aug 22 '17 at 23:44
  • 1
    Instead of screwing up your system directories, you can also screw up your $TEXMFHOME (usually ~/texmf). – Tobia Tesan Aug 22 '17 at 23:48
1

Run:

$ apt-cache search endfloat
texlive-latex-extra - TeX Live: LaTeX additional packages

Then install texlive-latex-extra:

$ sudo apt-get install texlive-latex-extra

Installation should go without any problem. Then verify:

kpsewhich endfloat.sty

The above should show where the style file has been installed.

And in future occasions, please remember that while manually copying style files may be interesting, this is challenging as well, you should know what you are doing.

Not the answer you're looking for? Browse other questions tagged or ask your own question.