如何为证明添加框架?

如何为证明添加框架?

我正在尝试将我写的证明框起来

例如

\documentclass[11pt]{article}

\begin{document}
\framebox{ 

\emph{Proof} \\

 \text{content of proof goes here}

 }


 \end{document}

但 \ 什么都没做。所有文本都挤在框里

答案1

答案提供于框定理陈述cmhughes 的布局应该很有用。这是从文档中获取并修改的略有不同的布局mdframed

\documentclass[11pt]{article}
\usepackage[framemethod=tikz]{mdframed}
\mdfdefinestyle{proofstyle}{%
linecolor=red,middlelinewidth=2pt,%
frametitlerule=true,%
apptotikzsetting={\tikzset{mdfframetitlebackground/.append style={%
shade,left color=white, right color=blue!20}}},
frametitlerulecolor=green!60,
frametitlerulewidth=1pt,
innertopmargin=\topskip,
}
\mdtheorem[style=proofstyle]{proof}{Proof}
 %% \mdtheorem[style=proofstyle]{proof}{\itshape Proof}

\begin{document}
\begin{proof}[Some heading]
content of proof goes here
\end{proof}

\bigskip
\begin{proof*}%%[Some heading]
content of proof goes here
\end{proof*}

 \end{document}

在此处输入图片描述

要删除颜色,只需注释掉一些行,例如:

\mdfdefinestyle{proofstyle}{%
%linecolor=red,
middlelinewidth=1pt,%
frametitlerule=true,%
%apptotikzsetting={\tikzset{mdfframetitlebackground/.append style={%
%shade,left color=white, right color=blue!20}}},
%frametitlerulecolor=green!60,
frametitlerulewidth=.5pt,
innertopmargin=\topskip,
}

在此处输入图片描述

相关内容