Salve a tutti, non so se questo è il posto giusto, ma ero in cerca di un aiuto su come definire gli ambienti matematici quali teoremi, definizioni ecc in modo che la prima riga vada a capo e non inizi nella stessa riga dell’intestazione dell’ambiente.
Io ho ridefinito gli ambienti di mio interesse in questa maniera:`definizione ambiente teorema
\theoremstyle{plain}
\theoremheaderfont{\normalfont\bfseries}\theorembodyfont{\slshape}
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{.}
\newtheorem{teorema}{Teorema}[chapter]
definizione ambiente esempio
\theoremstyle{plain}
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\blacktriangle}}
\theoremseparator{}
\newtheorem{esempio}{Esempio}[chapter]definizione ambiente definizione
\theoremstyle{plain}
\theoremheaderfont{\normalfont\bfseries}\theorembodyfont{\slshape}
\theoremsymbol{\ensuremath{\vartriangle}}
\theoremseparator{.}
\newtheorem{defn}{Definizione}[chapter]definizione ambiente proprietà
\theoremstyle{plain}
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\blacksquare}}
\theoremseparator{}
\newtheorem{prop}{Proprietà}[chapter]definizione ambiente lemma
\theoremstyle{plain}
\theoremheaderfont{\normalfont\bfseries}\theorembodyfont{\slshape}
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{.}
\newtheorem{lemm}{Lemma}[chapter]
`il codice è stato brutalmente copiato e non sono affatto sicura che sia corretto, infatti ottengo un’infinità di “bad box”. Il problema fondamentale è che non riesco a fare andare a capo il nome del teorema e soprattutto non riesco a far iniziare il teorema stesso su una nuova riga.
Ho provato a modificarlo caricando il pacchetto amsthm, ma devo avere qualcosa di incompatibile nel preambolo e mi dà errore.
E’ possibile inserire l’”a capo” nel mio codice senza ulteriori modifiche?
grazie
ciao
Il codice è molto ridondante; ma ti sei dimenticata di dire che carichi il pacchetto ntheorem (che ovviamente è incompatibile con amsthm).
`% Impostazioni generali
\theoremstyle{break}
\theoremheaderfont{\normalfont\bfseries}\theorembodyfont{\slshape}
% Teorema e Lemma
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{.}
\newtheorem{teorema}{Teorema}[chapter]
\newtheorem{lemm}{Lemma}[chapter]
% Esempio
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\blacktriangle}}
\theoremseparator{}
\newtheorem{esempio}{Esempio}[chapter]
% Definizione
\theorembodyfont{\slshape}
\theoremsymbol{\ensuremath{\vartriangle}}
\theoremseparator{.}
\newtheorem{defn}{Definizione}[chapter]
% Proprietà
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\blacksquare}}
\theoremseparator{}
\newtheorem{prop}{Proprietà}[chapter]`
Sicura di queste numerazioni indipendenti? Io non tanto. Quei simboletti diversi pensi che aiutino il lettore? Io direi che lo disorientano.
Non userei lo stile “break” nemmeno sotto minaccia delle armi; né (Knuth mi perdoni) userei il carattere inclinato per gli enunciati. Perché “Proprietà” e “Esempio” non hanno separatore? Boh.
Ciao
Enrico