How Can I Resolve the ntheorem Error in Latex?

  • Context: LaTeX 
  • Thread starter Thread starter Theoretiker
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 12K views
Theoretiker
Messages
22
Reaction score
0
Hello,

I have a problem with Latex. I use MikeTex as Latex distribution and TexnicCenter as editor. I want the code for a mathematical sentence with proof. I used the package ntheorem and I got the mistake:

Package ntheorem Error: Theoremstyle plain already defined

Waht did they mean with "already defined"?

My code is:

Code:
\documentclass[12pt,a4paper]{article} 
\usepackage[latin1]{inputenc} 
\usepackage[ngerman]{babel} 
\usepackage[T1]{fontenc} 
\usepackage{amsmath,amsgen,amscd,amsrefs,amsthm,amsopn,amssymb} 
\usepackage{graphicx} 
\usepackage{xcolor} 
[B]\usepackage[thmmarks]{ntheorem} [/B]



\begin{document} 


%ntheorem Umgebung 
\theoremstyle{nonumberplain} 
\theoremheaderfont{% 
\normalfont\scshape} 
\theorembodyfont{\normalfont} 
\theoremsymbol{\rule{.5em}{.5em}} 
\newtheorem{satz}{Satz:} 
\newtheorem{beweis}{Beweis:} 
\begin{satz} 
$1$ ist grö"ser als $0$. 
\begin{beweis} 
Da $1 = 1 \cdot 1$, ist $1$ eine Quadratzahl, und Quadratzahlen ungleich~$0$ sind immer grö"ser als~$0$. 
\end{beweis} 
\end{satz} 


\end{document}

Thanks for help :)

greetings
 
on Phys.org
I don't know what ntheorem does, but maybe it is in conflict with another package. Try taking out amsthm, for example.

By the way, I don't think grö"ser will work, you probably want something like gr\"oser
 
Hi,

thanks for help. Yes it was AMS :(

The AMS-package is such important for me that probably I will disclaim the ntheorem-package.

Now, I guess I will use \Box as symbol for the end of a proof and put it right-aligned

greetings
 
Last edited by a moderator:
You can use amsmath, according to the documentation linked to by las3rjock. You can also get some of the amsthm options by using amsthm as an option to ntheorem.

Or you can just not spend any time reading such a document and do it the ugly way :wink: