如何\minipage
在框架框中框出一个类似的环境。
注意:我尝试过
\fbox
但从未成功,我总是收到错误 这是我的代码
\fbox{
\begin{minipage}{\linewidth}
\small
\begin{verbatim}
[2018-05-25 19:21:48 EDT] iverilog '-Wall' design.sv testbench.sv && unbuffer vvp a.out
a= 2, b= 5, outsum= 7, true_sum= 7, cout=0
a= 2, b= 34, outsum= 36, true_sum= 36, cout=0
a= 2, b= 63, outsum= 65, true_sum= 65, cout=0
a= 2, b= 92, outsum= 94, true_sum= 94, cout=0
a= 2, b=121, outsum=123, true_sum=123, cout=0
a= 2, b=150, outsum=152, true_sum=152, cout=0
a= 9, b= 5, outsum= 14, true_sum= 14, cout=0
a= 9, b= 34, outsum= 43, true_sum= 43, cout=0
a= 9, b= 63, outsum= 72, true_sum= 72, cout=0
a= 9, b= 92, outsum=101, true_sum=101, cout=0
a= 9, b=121, outsum=130, true_sum=130, cout=0
a= 9, b=150, outsum=159, true_sum=159, cout=0
a= 16, b= 5, outsum= 21, true_sum= 21, cout=0
a= 16, b= 34, outsum= 50, true_sum= 50, cout=0
a= 16, b= 63, outsum= 79, true_sum= 79, cout=0
a= 16, b= 92, outsum=108, true_sum=108, cout=0
a= 16, b=121, outsum=137, true_sum=137, cout=0
a= 16, b=150, outsum=166, true_sum=166, cout=0
Done
\end{verbatim}
\end{minipage}}
这是我得到的错误
段落在 \@xverbatim 完成之前结束。\end{minipage}}
额外},或者被遗忘的\endgroup。\end{minipage}}
不正确的 \prevdepth。\chapter
缺少 \endgroup 插入。\chapter
缺少} 插入。\chapter
答案1
我找到了一个包裹框架您可以轻松使用它来构建任何环境
\usepackage{framed}
.
.
.
\begin{framed}
any thing to be framed
\end{framed}