Re: Un’altra domanda sui colori

#69423
Up
0
Down
::

logos” post=68540Ciao a tutti! Non posso promettere che questa sia l’ultima domanda riguardo ai colori, ma posso domandare scusa in anticipo per questa e per le prossime domande. D’altra parte, se non mi aiutate voi, non saprei proprio come fare. Dunque, il problema è questo: vorrei poter evidenziare, proprio come fa Word con l’evidenziatore, gli esempi. Pensavo di metterli dentro un \colorbox{green!15}{…} ed avevo provato a fare così:

`
\newtheoremstyle{exemplum}{8pt}{8pt}
{}{}{\colorbox{green!15}\bgroup\scshape\addfontfeatures{Color=Magenta}}{\egroup}{2pt}{}
\theoremstyle{exemplum}
\newtheorem{esempio}{Esempio}[section]
`

ma il risultato è disastroso, perché mi cancella completamente la scritta Esempio ed il numero, anziché farmi un bel box verde con dentro la scritta color magenta.

Aiuto!!!!!

Andrea

`\newtheoremstyle{exemplum}% name
{}% Space above, empty = `usual value'
{}% Space below
{\upshape}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\scshape}% Thm head font
{}% Punctuation after thm head
{.5em}% Space after thm head: ” ” = normal interword space;
% \newline = linebreak
{\colorbox{green!15}{\color{Magenta}#1 #2}}% Thm head spec`
Magenta su verde? 😮

Ciao
Enrico

Go to top