我想并排放置三个数组。它们都应按其顶线对齐。我该如何使用以下数组来实现这一点:
\[
\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 中的数组定位选项,你将得到: