Re: Problema con ntheorem – Atto II

#19196
Up
0
Down
::

Questa è la definizione completa, nel preambolo, dell’ambiente PROB:
`\theoremstyle{break}
\theoremheaderfont{\normalfont\bfseries}
\theorembodyfont{\upshape}
\theoremseparator{.}
\theoremsymbol{\rotatebox{45}{\rule{6pt}{6pt}}}
\newtheorem{PROB}{Problema}[section]`

Faccio notare che l’utilizzo di “\theoremstyle{plain}” non cambia le cose.

Ho già scritto, credo una decina di volte, che ntheorem è una piaga, non me ne vogliano gli autori. Usa amsthm e stai tranquillo. Tutti quei `bells and whistles’ di ntheorem sono specchietti per le allodole.

Se vuoi che amsthm stampi in neretto anche l’attribuzione (cioè l’argomento opzionale), puoi fare così
`\makeatletter
\def\@thm#1#2#3{%
\ifhmode\unskip\unskip\par\fi
\normalfont
\trivlist
\let\thmheadnl\relax
\let\thm@swap\@gobble
\thm@notefont{\fontseries\bfdefault\upshape}%
\thm@headpunct{.}% add period after heading
\thm@headsep 5\p@ plus\p@ minus\p@\relax
\thm@space@setup
#1% style overrides
\@topsep \thm@preskip % used by thm head
\@topsepadd \thm@postskip % used by \@endparenv
\def\@tempa{#2}\ifx\@empty\@tempa
\def\@tempa{\@oparg{\@begintheorem{#3}{}}[]}%
\else
\refstepcounter{#2}%
\def\@tempa{\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]}%
\fi
\@tempa
}
\makeatother`
Ciao
Enrico

Go to top