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

some theorem

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


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? Apr 8, 2014 at 9:42
  • 1
    amsthm is part of the required latex distribution. If you have LaTeX you have amsthm already (or you have a broken distribution). Apr 8, 2014 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. Apr 8, 2014 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. Apr 16, 2014 at 15:10

1 Answer 1


do you actually have \usepackage{amsthm} in your preamble?

if amsthm wasn't installed on your system, that would give you an error (a different one) much sooner.

since the error is delayed until you try to use a theorem, it sounds like you just forgot to load the package.

(a minimum non-working example would have made that sort of error obvious very quickly. had to use my crystal ball instead, and it's been a bit murky lately.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .