\begin{table}
\centering
\begin{displaymath}
\begin{array}{|c c c c|}
\hline
1000\textsuperscript{3} &
100\textsuperscript{2} &
10\textsuperscript{1} & 1\textsuperscript{0}\\
1000 & 100 & 10 & 1\\
1 & 2 & 3 & 4\textsubscript{10}\\
\hline
\end{array}
\end{displaymath}
\caption{\label{tab:bool1}Base 10.}
\end{table}
\begin{table}
\begin{displaymath}
\begin{array}{|c c c c c|}
\hline
1 & x & 4 & = & 4\\
10 & x & 3 & = & 30\\
100 & x & 2 & = & 200 \\
1000 & x & 1 & = & 1000\\
& & & & =====\\
& & & & 1234\textsubscript{10}\\
\hline
\end{array}
\end{displaymath}
\end{table}
答案1
像这样?
\documentclass{article}
\usepackage{hhline,tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
\begin{document}
\begin{table}[ht]
\centering
\begin{tabularx}{0.75\linewidth}{R@{}L}
$\begin{array}{|c c c c|}
\hline
1000^3 & 100^2 & 10^1 & 1^0 \\
1000 & 100 & 10 & 1 \\
1 & 2 & 3 & 4^10 \\
\hline
\end{array}$
\caption{Base 10.}
\label{tab:bool1} & \\
& $\begin{array}{|c c c c c c@{}|}
\hline
1 & x & 4 & = & 4 & \\
10 & x & 3 & = & 30 & \\
100 & x & 2 & = & 200 & \\
1000 & x & 1 & = & 1000 & \\
\hhline{|~~~~=~|}
& & & & 1234_{10} & \\
\hline
\end{array}$
\end{tabularx}
\end{table}
\end{document}