最小工作示例如下:
\documentclass{article}
\usepackage{lipsum}
\usepackage{logicproof}
\begin{document}
\lipsum[1]
\begin{logicproof}{0}
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5
\end{logicproof}
\end{document}
问题: 上面的 logicproof 太长了,无法分页,有没有什么办法可以让所有的 logicproof 自动分页?
答案1
下列补丁实际上并不支持嵌套证明。
\documentclass{article}
\usepackage{lipsum}
\usepackage{logicproof}
\usepackage{longtable}
\usepackage{etoolbox}
\let\longlogicproof\logicproof
\let\endlonglogicproof\endlogicproof
\patchcmd{\longlogicproof}
{\center\expandafter\tabular}
{\expandafter\longtable}
{}{}
\patchcmd{\endlonglogicproof}
{\endcenter}
{}
{}{}
\patchcmd{\endlonglogicproof}
{\endtabular}
{\endlongtable}
{}{}
\setcounter{LTchunksize}{1000}
\begin{document}
\lipsum[1]
\begin{longlogicproof}{0}
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
x\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5\\
statement & justification \\
\forall x \, P(x) & premise \\
\forall x \, Q(x) & $\forall x \, \mathrm{i}$ 3--5
\end{longlogicproof}
\end{document}