Re: [Risolto] Esempi in mdframed

#54220
Up
0
Down
::

Salve. Per qualcuno di voi questo topic suonerà familiare: è infatti la naturale prosecuzione di questo thread:
http://guit.sssup.it/phpbb/viewtopic.php?t=9360

Ho in sostanza definito uno stile di teorema così:
`
\newtheoremstyle{example}% name
{\topsep}% Space above
{\topsep}% Space below
{}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{.}% Punctuation after thm head
{\newline}% Space after thm head: ” ” = normal interword space;
% \newline = linebreak
{}% Thm head spec (can be left empty, meaning `normal')
\newtheorem{example}{Esempio}[chapter]
`
dopodiché l’ho inscatolato in un mdframed
`
\definecolor{verd}{cmyk}{1,0,1,0}
\newenvironment{ezze}{\begin{mdframed}%
[linewidth=2,leftmargin=0.5\parindent,rightmargin=0.5\parindent, skipabove=\baselineskip, skipbelow=\baselineskip,%
backgroundcolor=white, linecolor=verd] %
\begin{example}}{\end{example}\end{mdframed}}
`
Ora il problema è che il testo non mi va a capo dopo l’header dell’esempio (benché io abbia indicato diversamente).
Inoltre, modificando il codice dello stile del teorema relativo al “body font”, non vengono prodotti cambiamenti al testo.
Siccome la parte di codice che definisce lo stile del teorema è stata presa da un testo di un amico, mi chiedevo se lì ci fosse qualche errore, oppure se ho sbagliato altrove o se c’è qualche problema indipendente da me.
Grazie mille.
Saluti

Sarà meglio dichiarare \theoremstyle{example} prima di dare \newtheorem, non pensi?

Ciao
Enrico

Go to top