# amsthm.sty package instalation problem under Linux

Im using Texmaker 3.2 under Linux Mint 13 Maya and I have problem with installing amsthm package. When I typed:

\begin{theorem}
some theorem
\end{theorem}

I got ! LaTeX Error: Environment theorem undefined. Then I tried

\newtheorem{example}{Example}

but it gives me again the same error. From what I read I'm missing the package amsthm. I read in this post https://stackoverflow.com/questions/1449370/latex-error-environment-proof-undefined that I have to install amscls.zip and amsmath.zip files. I followed the steps from here http://www.ams.org/publications/authors/tex/amslatex and Im pretty sure that I have the file amsthm.sty in the right directory (/usr/share/texmf/tex/latex/amscls) Howhever my Texmaker cannot find it. (When I type \usepackage{amsthm} the editor underlines the word amsthm with red line.) I also used the command sudo apt-get install texlive-latex-base texlive-latex-extra biblatex and of course this also didn't help. Can anyone tell me what I am missind/doing wrong?

• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. When installing did update the tex database via texhash or mktexlsr? – Andrew Swann Apr 8 '14 at 9:42
• amsthm is part of the required latex distribution. If you have LaTeX you have amsthm already (or you have a broken distribution). – David Carlisle Apr 8 '14 at 9:42
• @AndrewSwann I tried and it did not helped :( Now Im reading this post tex.stackexchange.com/questions/21726/…, hopefully it will help. – user3371223 Apr 8 '14 at 10:23
• Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Martin Schröder Apr 16 '14 at 15:10