
I hope I'm in the right forum.
I need to generate colored frames around some text. I only have one limitation: the text will be surrounded with an environment "notice" and I cannot change that (the LaTeX code is generated by sphinx)
This environment will be used like this in the document body:
Code: Select all
\begin{notice}{<notice_class>}{Some title to the notice:}
Text text text text text \emph{text text} text text.
\end{notice}
Here is the sphinx style-sheet where the "notice" environment is coded (lines 235 to 292) I've looked everywhere but I don't know how to renew the "notice" environment so that it puts the notice in a color frame.
And I don't know either how to change this color according to the notice_class 1st argument.
Can somebody point me in the right direction?

Thanks in advance!
Robin
EDIT: to clarify things, the "default" notice environment renders like this

and I would like it to render like this
