Document Classesntheroem package

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

ntheroem package

Post by Mikerada6 »

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.

Code: Select all

% 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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

ntheroem package

Post by Juanjo »

Mikerada6 wrote:What would i have to change in order to start using the ntheorem package.
Just replace

Code: Select all

\usepackage{amsmath, amsthm, amssymb}
by

Code: Select all

\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

Code: Select all

\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.
Post Reply