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?
Best Answer
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.)