我想要在表格最右边两列的中间\dots
显示文本。目前这是我的代码:no model
\begin{center}
\captionof{table}{truth table and mental models of an implication}
\begin{tabular}{ccc|cc}
A & B & A \rightarrow B & & \\ \hline
1 & 1 & 1 & \Circle & \triangle \\
0 & 1 & 1 & \dots &\\
0 & 0 & 1 & \dots &\\
1 & 0 & 0 & no & model
\end{tabular}
\end{center}
答案1
或者,您只使用表格末尾的一列,其中“圆形”和“三角形”之间用以下方式隔开\quad
:
\documentclass{article}
\usepackage{array}
\usepackage{caption}
\begin{document}
\begin{center}
\captionof{table}{truth table and mental models of an implication}
\begin{tabular}{*{3}{w{c}{3em}} |c}
A & B & A $\to$ B & \\ \hline
1 & 1 & 1 & $\bigcirc\quad\triangle$ \\
0 & 1 & 1 & dots \\
0 & 0 & 1 & dots \\
1 & 0 & 0 & no model
\end{tabular}
\end{center}
\end{document}
答案2
\begin{center}
\captionof{table}{truth table and mental models of an implication}
\begin{tabular}{ccc|cc}
$A$ & $B$ & $A \rightarrow B$ & & \\ \hline
1 & 1 & 1 & $\Circle$ & $\triangle$ \\
0 & 1 & 1 & \multicolumn{2}{c}{\dots}\\
0 & 0 & 1 & \multicolumn{2}{c}{\dots}\\
1 & 0 & 0 & \multicolumn{2}{c}{no model}
\end{tabular}
\end{center}
应该可以解决问题。