LaTeX How Can I Resolve the ntheorem Error in Latex?

  • Thread starter Thread starter Theoretiker
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
The discussion revolves around a user encountering an error with the ntheorem package in LaTeX, specifically the message indicating that "Theoremstyle plain already defined." This issue arises due to a conflict between ntheorem and the amsthm package, which is commonly used for theorem formatting. The user considers removing ntheorem but ultimately values the AMS package for its importance in their work. Suggestions include using the amsmath package while retaining some functionality of amsthm by passing it as an option to ntheorem. The conversation also touches on the correct formatting of mathematical symbols in German, highlighting potential issues with character encoding.
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
 
Physics news 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:
 
Back
Top