我的代码如下:
\documentclass{book}
\usepackage{proof}
\usepackage{bussproofs}
\begin{document}
This is for test
\begin{center}
\begin{prooftree}
\AxiomC{$\vdash \{A \land b \}c\{A\}$}
\UnaryInfC{$\vdash \{A\} \textrm{ while } b \textrm{ do } c \{A \land
\lnot b\}$}
\end{prooftree}
\end{center}
This is for test
\end{document}
答案1
使用\DisplayProof
:
\documentclass{book}
\usepackage{bussproofs}
\newenvironment{iproof}{}{\DisplayProof}
\begin{document}
This is for test
\[
\begin{iproof}
\AxiomC{$\vdash \{A \land b \}c\{A\}$}
\UnaryInfC{$\vdash \{A\} \textrm{ while } b \textrm{ do } c \{A \land
\lnot b\}$}
\end{iproof}\,.
\]
This is for test
\end{document}