LaTeX forum ⇒ Document Classesntheroem 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

Postby Mikerada6 » Fri Oct 17, 2008 6:57 pm

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.
  1. % LaTeX Book Template - using defaults
  2. \documentclass[openany]{book}
  3. \usepackage{latexsym}
  4. \usepackage{enumerate}
  5. \usepackage{amsmath, amsthm, amssymb}
  6. \usepackage{graphics}
  7. \usepackage{makeidx}
  8. \newtheorem{ex}{$^{\text{ex}}$}
  9. \newtheorem{note}{$^{\text{note}}$}
  10. \newtheorem{thm}{Theorem}
  11. \newtheorem{lem}{Lemma}
  12. \newtheorem{col}{Corollary}
  13. \newtheorem{defn}{Definition}[chapter]
  14. \renewcommand{\contentsname}{Table of Contents}
  15. \makeindex
  16. % Set the beginning of a LaTeX document
  17. \begin{document}

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

Postby Juanjo » Sun Oct 19, 2008 12:11 am

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

Just replace
  1. \usepackage{amsmath, amsthm, amssymb}

  1. \usepackage{amsmath,amssymb}
  2. \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
  1. \newtheorem{ex}{\textsuperscript{ex}}
  2. \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

Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 1 guest