我想並排放置三個陣列。它們都應該透過頂線對齊。我怎麼能用以下數組做到這一點:
\[
\begin{array}{c c | c}
p & q & p \land q \\ \hline
1 & 1 & 1 \\
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 0 \\
\end{array}
\]
\[
\begin{array}{c c | c}
p & q & p \lor q \\ \hline
1 & 1 & 1 \\
1 & 0 & 1 \\
0 & 1 & 1 \\
0 & 0 & 0 \\
\end{array}
\]
\[
\begin{array}{c | c}
p & \lnot p \\ \hline
1 & 0 \\
0 & 1 \\
\end{array}
\]
答案1
\documentclass{article}
\begin{document}
\[
\begin{array}[t]{c c | c}
p & q & p \land q \\ \hline
1 & 1 & 1 \\
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 0 \\
\end{array}
\qquad
\begin{array}[t]{c c | c}
p & q & p \lor q \\ \hline
1 & 1 & 1 \\
1 & 0 & 1 \\
0 & 1 & 1 \\
0 & 0 & 0 \\
\end{array}
\qquad
\begin{array}[t]{c | c}
p & \lnot p \\ \hline
1 & 0 \\
0 & 1 \\
\end{array}
\]
[t]
或者如果您刪除上面 MWE 中的陣列定位選項,您將得到: