\usepackage{xcolor}
...
\makeatletter
\definecolor{shadecolor}{RGB}{220,220,220}
...
\renewcommand{\py@noticestart@note}{\py@lightbox\begin{snugshade*}}
\renewcommand{\py@noticeend@note}{\end{snugshade*}\py@endlightbox}
...
\makeatother
Adding the above to your preamble will enable "notes" t
This is where you need to learn about LaTeX. Those commands include the
character '@', so you need "\makeatletter" before those commands and
"\makeatother" after those commands. The @ sign is a special character in
LaTeX, so you need to tell the system that you are using it as a letter,
then
I add this commands to my conf.py preamble,But it does not work. It can not
compile. I use restructuredtext and sphinx in Ubuntu environment
在 2016年10月12日星期三 UTC+8上午7:34:18,Peter Burdine写道:
>
> You will need to add some Latex commands to your preamble. For example,
> the following will make not
You will need to add some Latex commands to your preamble. For example,
the following will make notes centered:
\renewcommand{\py@noticestart@note}{\py@lightbox\begin{center}}
\renewcommand{\py@noticeend@note}{\end{center}\py@endlightbox}
This will make the admonition title be upper case:
\renew