答案1
正如@leandriis 所建议的,这里有一个使用包创建盒子的环境示例tcolorbox
。
用法是
\begin{mybox}
....
\end{mybox}
背景颜色是lightgray!50!white
默认的,但您可以根据需要更改它。
这里的盒子叫做mybox,你可以选择你想要的名字。
\documentclass{article}
\usepackage{tcolorbox}
\newtcolorbox{mybox}[1][lightgray!50!white]{sharp corners,colback=#1,colframe=black,
before upper={\rule[-3pt]{0pt}{10pt}},boxrule=2pt,
before skip=8pt, after skip= 8pt,
boxsep=5pt,%bottom=.5pt,%left=2pt,right=2pt,top=1pt
}
\begin{document}
Obviously, designed robots for structured environment with know and predictable conditions can be done by classic engineer-
\begin{mybox}As natural evolution has produced succefull life forms for practically all possible environment niches on Earth, it is plausible that artificial evolution can produce specialized robots for various environments and tasks
\end{mybox}
Obviously, designed robots for structured environment with know and predictable conditions can be done by classic engineer-
\begin{mybox}[blue!20!white]As natural evolution has produced succefull life forms for practically all possible environment niches on Earth, it is plausible that artificial evolution can produce specialized robots for various environments and tasks
\end{mybox}
Obviously, designed robots for structured environment with know and predictable conditions can be done by classic engineer-
\end{document}