LaTeX forum ⇒ Document Classes ⇒ ntheroem package

Information and discussion about specific document classes and how to create your own document classes.
Posts: 42
Joined: Fri Oct 17, 2008 5:55 pm

ntheroem package

Below is the preamble for my already typed 30 page document. What would i have to change in order to start using the ntheorem package. I am using TEXnicCenter. Thank you all for your help.
% LaTeX Book Template - using defaults\documentclass[openany]{book}\usepackage{latexsym}\usepackage{enumerate}\usepackage{amsmath, amsthm, amssymb}\usepackage{graphics}\usepackage{makeidx}\newtheorem{ex}{$^{\text{ex}}$}\newtheorem{note}{$^{\text{note}}$}\newtheorem{thm}{Theorem}\newtheorem{lem}{Lemma}\newtheorem{col}{Corollary}\newtheorem{defn}{Definition}[chapter]\renewcommand{\contentsname}{Table of Contents}\makeindex% Set the beginning of a LaTeX document\begin{document}

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am
Mikerada6 wrote:What would i have to change in order to start using the ntheorem package.

Just replace
\usepackage{amsmath, amsthm, amssymb}

by
\usepackage{amsmath,amssymb}\usepackage[amsmath,amsthm]{ntheorem}

Read carefully the documentation of ntheorem
Whether or not you finally move to ntheorem, I would recommend to change several things. The ex and note environments can be defined by
\newtheorem{ex}{\textsuperscript{ex}}\newtheorem{note}{\textsuperscript{note}}

Likewise, the numbering of definitions depends on chapters; however, this is not the case for theorems and like. Is this really consistent? Finally, you may consider to set different layouts to different kinds of theorem-like environments. This is done with the \theoremstyle command. With your actual settings, add, for example, \theoremstyle{remark} before the def. of ex, \theoremstyle{plain} before that of thm and \theoremstyle{definition} before that of defn. Compile and compare.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.