答案1
一个非常简单的解决方案,使用包中的minipage
、\fbox
和:\captionof
caption
\documentclass{article}
\usepackage{caption}
\begin{document}
\fbox{%
\begin{minipage}{0.5\textwidth}
\centering
\begin{tabular}{c@{\(\quad\rightarrow\quad\)}c}
(frown, calm) & angry\\
(smile, calm) & happy\\
\vdots & \vdots
\end{tabular}
\captionof{table}{The function F}
\end{minipage}}%
\fbox{%
\begin{minipage}{0.5\textwidth}
\centering
\begin{tabular}{c@{\(\quad\rightarrow\quad\)}c}
(frown, calm) & frown back\\
(smile, calm) & smile back\\
\vdots & \vdots
\end{tabular}
\captionof{table}{The function G}
\end{minipage}}
\end{document}
答案2
您可以在表格中使用多个 \caption 命令并根据自己的喜好排列它们:
\documentclass{article}
\begin{document}
\begin{table}
\begin{minipage}{0.5\textwidth}
a table
\caption{The function F}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
another table
\caption{The function G}
\end{minipage}
\bigskip
a third table
\caption{more functions}
\end{table}
\end{document}