这里可以找到一篇具有下图所示特征的博士论文:
其中显示两个不同颜色的单独框,其中包含标题和一些段落。有人知道类似的模板吗?
- - - - 编辑:
根据答案所建议,我尝试了以下操作:
\definecolor{shadecolor}{RGB}{246,243,226}
\colorbox{shadecolor}{%
\begin{minipage}{1.0\textwidth}
\textcolor{dark_red}{\textbf{SUMMARY: }}
Some text, some text, some text, some text, some text, some text, some text, some text, some text, some text, some text, some text
, some text, some text, some text, some text.
, some text, some text, some text, some text.
, some text, some text, some text, some text, some text.
\definecolor{shadecolor}{RGB}{239,244,243}
\colorbox{shadecolor}{%
\begin{minipage}{\dimexpr\textwidth-2\fboxsep}
\textcolor{bright_blue}{\textbf{RESULTS: }}
Some text, some text, some text, some text, some text, some text, some text, some text, some text, some text, some text, some text
, some text, some text, some text, some text.
, some text, some text, some text, some text.
, some text, some text, some text, some text, some text.
\end{minipage}}\end{minipage}}
答案1
\documentclass{article}
\usepackage{xcolor,lipsum}
\fboxsep 1em %customize it
\begin{document}
\noindent\colorbox{olive!10}{%
\begin{minipage}{\textwidth}
\lipsum[1]\par\vspace{\fboxsep}
\colorbox{cyan!10}{%
\begin{minipage}{\dimexpr\textwidth-2\fboxsep}
\lipsum[2]
\end{minipage}}
\end{minipage}}
\end{document}