16 Aprile 2005 alle 18:07
#5514
::
Salve a tutti.
Sto scrivendo un documento usando il pacchetto ntheorem per gli ambienti theorem-like.
Mi domandavo in che modo fosse possibile fare in modo che il titolo opzionale dei teoremi risultasse tra parentesi quadrate invece che tonde.
Grazie anticipatamente.
Prendo da ntheorem.sty e modifico`\makeatletter
\newtheoremstyle{plainbrackets}%
{\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator]}%
{\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\ {[##3]}\theorem@separator]}
\makeatother
\theoremstyle{plainbracket}
\newtheorem{bthm}{Teorema}`Così dovrebbe fare ciò che desideri.
Ciao
Enrico