ฉันต้องสร้างแผนผังแบบ แผนผังนี้ รหัสที่ฉันเขียนจนถึงตอนนี้คือ
\documentclass[11pt, a4paper]{article}
% Packages
\usepackage{amsmath, amssymb, amstext}
\usepackage[linguistics]{forest}
% Margins
\usepackage[a4paper,margin=2cm]{geometry}
% Renew Commands
\renewcommand{\land}{~\&~}
\renewcommand{\implies}{\supset}
\renewcommand{\iff}{\equiv}
% Document
\begin{document}
\begin{forest}
[$(E \implies \lnot (P \lor Q)) \land ((Q \land E) \lor (E \land P))$
[$E \implies \lnot (P \lor Q)$ \\ $(Q \land E) \lor (E \land P)$
[$E \land (Q \lor P)$
[$E$\\$Q \lor P$
[$\lnot (P \lor Q)$
[$\lnot P \land \lnot Q$
[$\lnot P$\\$\lnot Q$
[$Q$
[$\times$]
]
[$P$
[$\times$]
]
]
]
]
]
]
]
]
\end{forest}
\end{document}
ซึ่งสร้าง แผนผังนี้ จนถึงตอนนี้ ระบุคือฉันต้องการคอลัมน์ซ้ายสุดที่มีหมายเลขจัดชิดซ้ายและคอลัมน์ขวาที่มีคำอธิบายกฎจัดชิดซ้าย นอกจากนี้ยังจะเป็นประโยชน์อย่างยิ่งหากคุณสามารถรวมวิธีให้โหนดทั้งหมดมีระยะห่างเท่ากัน โดยให้คอลัมน์ซ้ายและขวาอยู่ในแนวเดียวกันกับโหนด ขอบคุณ!