[Tex/LaTex] elsarticle.cls not found when using TexMaker, but texlive-latex-extra is installed

elsarticlelinuxtexliveUbuntu

I am trying to get my TeX document to build. I know this works because I've done it on another system, but I recently put Lubuntu on my Linux partition, so everything is new again.

I've installed Texmaker as well as texlive and texlive-latex-extra and a few other related LaTeX packages. elsarticle.cls is supposed to be part of texlive-latex-extra but when I quick build my document I still get

! LaTeX Error: File `elsarticle.cls' not found.

Is there something I have to do to tell Texmaker that I've installed extra packages, and that it can look for elsarticle.cls in texlive-latex-extra? How do I fix this?

Additional info: here are screenshots of my Texmaker settings. Please let me know if I should include anything else.

Best Answer

elsarticle is not included in texlive-latex-extra http://packages.ubuntu.com/trusty/all/texlive-latex-extra/filelist, but in texlive-publishers packages http://packages.ubuntu.com/trusty/all/texlive-publishers/filelist. So, you need to install it first. Run this command on terminal

sudo apt-get install texlive-publishers

and then try compile your document again.