How Can I Resolve the ntheorem Error in Latex?

  • Context: LaTeX 
  • Thread starter Thread starter Theoretiker
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary

Discussion Overview

The discussion revolves around resolving an error encountered when using the ntheorem package in LaTeX, specifically the "Package ntheorem Error: Theoremstyle plain already defined" message. Participants explore potential conflicts with other packages and suggest alternatives for formatting mathematical proofs.

Discussion Character

  • Technical explanation, Debate/contested, Experimental/applied

Main Points Raised

  • One participant describes the error message received when using the ntheorem package and seeks clarification on its meaning.
  • Another participant suggests that the ntheorem package may conflict with the amsthm package and recommends removing it to resolve the issue.
  • A third participant notes that ntheorem interferes with both amsmath and amsthm, referencing documentation for further details.
  • The original poster acknowledges the conflict with AMS packages and considers discontinuing the use of ntheorem in favor of maintaining AMS functionality.
  • One participant proposes using the \Box symbol for proof endings as an alternative formatting solution.
  • Another participant mentions that it is possible to use amsmath alongside ntheorem by configuring options appropriately, while also humorously suggesting a less formal approach to the issue.

Areas of Agreement / Disagreement

Participants express varying opinions on the compatibility of ntheorem with other packages, with some suggesting removal of conflicting packages while others propose alternative configurations. No consensus is reached regarding the best approach to resolve the error.

Contextual Notes

Participants reference specific packages and their interactions, indicating potential limitations in compatibility and functionality. The discussion highlights the need for careful consideration of package usage in LaTeX documents.

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: