I am currently trying to create a report with LaTex. I have installed the Ubuntu packages texlive and texlive-latex-extra.
When I try to compile my document I get the error:
! LaTeX Error: File `wrapfig.sty' not found.When I go to my terminal and use kpsewhich like this it can find the package.
$ kpsewhich wrapfig.sty
/usr/share/texlive/texmf-dist/tex/latex/wrapfig/wrapfig.styI have installed all packages with apt-get install. I am using sublime with LaTex Tools as Editor. Anyone has an idea why the package is not recognized by the LaTex Compiler? I have looked into the folder and all other Latex packages are also in /usr/share/texlive/texmf-dist/tex/latex/.
I also tried now
sudo texhashDoesn’t change anything unfortunately.
12 Answers
wrapfig package is a part of texlive-latex-extra. You must install it:
sudo apt-get install texlive-latex-extra Then, to use wrapfig, you must first add this to the preamble:
\usepackage{wrapfig} 2 I run texhash a second time and rebooted and somehow it is working now. Unfortunately I am not sure what solved that issue but I guess it was texash...