Re: Problema con ntheorem – Atto II

#19198
Up
0
Down
::

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

Salve a tutti, questo è il mio primo post su questo forum, sto scrivendo la mia tesi usando LaTeX e stavo impazzendo per ottenere esattamente quello che fa questo script [che nella mia beata ignoranza l’ho copia/incollato nell’intestazione 😳 e funziona :D]
Mi sono iscritto perchè volevo ringraziare Enrico 😉

Ciao
Valerio 😉

Go to top