[sphinx-users] Re: Adding background color of notes and attention to Sphinx-generated PDF files

2016-10-16 Thread Peter Burdine
\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

[sphinx-users] Re: Adding background color of notes and attention to Sphinx-generated PDF files

2016-10-12 Thread Peter Burdine
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

[sphinx-users] Re: Adding background color of notes and attention to Sphinx-generated PDF files

2016-10-12 Thread Minkai Li
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

[sphinx-users] Re: Adding background color of notes and attention to Sphinx-generated PDF files

2016-10-11 Thread Peter Burdine
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