[texhax] ntheorem[amsthm] and amsthm discrepancy
Lars Madsen
daleif at imf.au.dk
Tue Apr 20 12:55:26 CEST 2010
Victor Ivrii wrote:
> It looks like ntheorem[amsthm] does not honour
> \theoremstyle{definition}: as body should be normal text
>
> \documentclass[12pt]{article}
> %\usepackage{amsthm}
> \usepackage[amsthm,thmmarks]{ntheorem}
> %
> \theoremstyle{definition}
> \newtheorem{definition}{Definition}
>
> \begin{document}
>
> \begin{definition}
> blah
> \end{definition}
>
>
> \end{document}
>
this is intended, \theoremstyle have a different meaning in ntheorem. In
amsthm it is only used to control the fonts. In ntheorem it is the
output style, not the actual formatting.
Learn to use \theorembodyfont
>
> Sure, there are two offending lines in ntheorem.sty
>
> \gdef\th at definition{%
> \th at plain\def\theorem at headerfont{\normalfont\bfseries}\itshape}
> \gdef\th at nonumberdefinition{%
> \th at nonumberplain\def\theorem at headerfont{\normalfont\bfseries}\itshape}
>
> (one should replace \itshape by \normalfont to fix)
>
>
--
/daleif
More information about the texhax
mailing list