答案1
欢迎使用 TeX-SE!这是为了给你一个开始。我没有热情把公式全部输入进去,但从那里面的内容中,你将能够完成它们。该图是一棵树,我推荐forest
。表格可以用简单的数组获得。(着色可以自动完成如果关于颜色如何根据位置变化有明确的规则。
\documentclass{article}
\usepackage[edges]{forest}
\usetikzlibrary{backgrounds}
\usepackage{amsmath}
\usepackage{marvosym}
\definecolor{fad}{RGB}{232,238,230}
\begin{document}
\begin{forest}
for tree={l sep+=0.5em,parent anchor=south,child
anchor=north,fill=yellow!40,draw,dotted},
forked edges
[$\begin{array}{lcc}
{}^*0 &\lnot ( p\lor (q\land r))\to (p\lor q)\land (p\lor r) & 1\\
\phantom{{}^*}1\text{a} &\dots& 2\\
\phantom{{}^*}1\text{b} &\dots& 4\\
\end{array}$
[$\begin{array}{lcc}
2\text{a} &p& ~\\
\end{array}$
[$\begin{array}{lcc}
0 &\dots & 1\\
1\text{a} &\dots& 2\\
1\text{b} &\dots& 4\\
\hline
\multicolumn{3}{c}{\textcolor{red}{\text{\Lightning,2a,5a}}}
\end{array}$,fill=yellow!70
]
[$\begin{array}{lcc}
0 &\dots & 1\\
1\text{a} &\dots& 2\\
1\text{b} &\dots& 4\\
\hline
\multicolumn{3}{c}{\textcolor{red}{\text{\Lightning,2a,5a}}}
\end{array}$,fill=yellow
]
]
[$\begin{array}{lcc}
2\text{b} & q\land r & 3\\
3\text{a} & q & \\
3\text{b} & r & \\
\end{array}$
[$\begin{array}{lcc}
0 &\dots & 1\\
1\text{a} &\dots& 2\\
1\text{b} &\dots& 4\\
\hline
\multicolumn{3}{c}{\textcolor{red}{\text{\Lightning,2a,5a}}}
\end{array}$,fill=yellow!70
]
[$\begin{array}{lcc}
0 &\dots & 1\\
1\text{a} &\dots& 2\\
1\text{b} &\dots& 4\\
\hline
\multicolumn{3}{c}{\textcolor{red}{\text{\Lightning,2a,5a}}}
\end{array}$,fill=yellow
]
]
]
\begin{scope}[on background layer]
\fill[fad] ([xshift=-1em,yshift=-1em]current bounding box.south west)
rectangle ([xshift=1em,yshift=1em]current bounding box.north east);
\end{scope}
\end{forest}
\end{document}