一、给整个文档增加背景色
1.解决方案是:使用color宏包,\pagecolor{}.
2.代码:放在导言区
\usepackage{color}
\definecolor{MyDarkBlue}{rgb}{0,0.08,0.45}
\definecolor{yellow}{rgb}{0.99,0.99,0.70}
\definecolor{myback}{RGB}{204,232,207}%眼科说好
%0.0049,0.0043,0.00483
\definecolor{white}{rgb}{1.0,1.0,1.0}
\definecolor{black}{rgb}{0.00,0.00,0.00}
\pagecolor{myback}
二、扩展:设置环境、段落的背景色
1.导言区部分
\usepackage{color}
%\definecolor{shadecolor}{named}{Gray}
\definecolor{shadecolor}{rgb}{0.92,0.92,0.92}
\usepackage{framed}
\begin{shaded}
$$
\int_a^b f(x) dx
$$
\end{shaded}