TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having some problems that `seem' to me to be a conflict between amsmath and ntheorem. Here is a MWE:



Let $X$ be a set with $n$ elements. Then $\mathcal{P}(X)$ is a set with $2^n$ elements.


Ay help would be greatly appreciated. Thanks.

share|improve this question
You have to load the amsmath package; ntheorem doesn't do it and the options activates the compatibility mode. The option amstext doesn't exist. Check also multicol (not with a final s); the \newframedtheorem command is provided by mdframed. – egreg May 13 '12 at 20:10
@egreg: Thanks-How do I load the amsmath package wit ntheorem? Thanks again. – Michael Dykes May 13 '12 at 20:17
Just issue \usepackage{amsmath} before loading ntheorem. – egreg May 13 '12 at 20:17
@egreg: Just one more question on this, and please excuse my inexperience in this matter, but ?How do I convert the mdframed.dtx file into a .sty file? Thanks. – Michael Dykes May 13 '12 at 20:30
What system and TeX distribution are you using? – egreg May 13 '12 at 20:32

A minimal document that compiles is

\usepackage{amsmath} % necessary for the `amsmath` option
\usepackage{framed}  % necessary for the `\newframedtheorem` command


Let $X$ be a set with $n$ elements. Then $\mathcal{P}(X)$ is a set with $2^n$ elements.


You're making some errors

  1. In order to use the amsmath option in ntheorem you have to load amsmath
  2. In order to use the \newframedtheorem command defined in ntheorem you have to load framed and pass the framed option.
  3. You have a spurious [Theorem] in the definition of the environment.

However, the mdframed package is much more powerful for defining "boxed" theorems. Check its documentation

share|improve this answer
Or some picture examples: marcodaniel.github.com/mdframed – Marco Daniel May 18 '12 at 21:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.