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