22.07.2013 Views

ntheorem.pdf. - Mirrors.med.harvard.edu

ntheorem.pdf. - Mirrors.med.harvard.edu

ntheorem.pdf. - Mirrors.med.harvard.edu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note, that amsmath has to be loaded before <strong>ntheorem</strong> since the definitions<br />

have to be overwritten.<br />

3.2.2 amsthm<br />

amsthm.styconflicts with thedefinition of theorem layouts i<strong>ntheorem</strong>.sty,<br />

some features of amsthm.sty have been incorporated into option [amsthm]<br />

which has to be used instead of \usepackage{amsthm}.<br />

The option provides theoremstyles plain, definition, and remark, and a<br />

proof environment as in amsthm.sty.<br />

The \newtheorem*command is defined even without this option. Note that<br />

\newtheorem* always switches to the nonumbered version of the current<br />

theoremstyle which thus must be defined.<br />

Thecommand\newtheoremstyleis not taken over fromamsthm.sty. Also,<br />

\swapnumbers is not implemented. Here, the user has to express his definitions<br />

by the \newtheoremstyle command provided by <strong>ntheorem</strong>.sty,<br />

including the use of \theoremheaderfontand \theorembodyfont. The options<br />

[amsthm] and [standard] are in conflict since they both define an<br />

environment proof.<br />

Thus, we recommend not to use amsthm, since the features for defining<br />

theorem-like environments in <strong>ntheorem</strong>.sty—following theorem.sty—<br />

seem to be more intuitive and user-friendly.<br />

3.3 Babel<br />

The [thref] option interferes with the babel package, thus in case that<br />

babel is used, <strong>ntheorem</strong> has to be loaded after babel.<br />

3.4 Hyperref<br />

Since hyperref redefines the L ATEX \contentsline-command, it breaks<br />

with<strong>ntheorem</strong>belowversion1.17. Sinceversion1.17, theoption[hyperref]<br />

makes <strong>ntheorem</strong> work with hyperref. The entries of theoremlists then act<br />

as hyperlinks to the actual theorems. Version 1.31 incorporated some bugfixes<br />

wrt. hyperref for theorem lists and for the thref option. One should<br />

always load \usepackage{hyperref}before the first use of \newtheorem to<br />

obtain correct handling and referencing of counters.<br />

WARNING: The definition and redefinition of Theorem List Layouts (see<br />

Section 2.5.2) isn’t yet working with the hyperref-package.<br />

3.5 Mathtools and Empheq<br />

The mathtools and empheq packages should be loaded before <strong>ntheorem</strong> as<br />

follows:<br />

16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!