I am using the "begin minipage" to put two tables side by side, but the result is not perfect. As you can see from the output below, there are two things that I need to change:
- The outline of the table: is it possible to get a better visualization of the table?
- The caption: it is possible to get the caption outside the table?
Output:
Code:
\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}
}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{subcaption}% <-- added
\usepackage[showframe]{geometry}
\usepackage{enumitem}
\setlist[itemize]{nosep,
leftmargin=*,
label=\textbullet,
after =\vspace{-\baselineskip},
before=\vspace{-\baselineskip}
}
\begin{document}
\begin{frame}{Appendix B}\framesubtitle{Tables}
\fboxsep=0pt
\noindent\fbox{%
\begin{minipage}[c]{0.40\linewidth}
\begin{tabular}{c c c}
\toprule
\tabhead{Name1} & \tabhead{Values} \\
\midrule
first & 1 \\
second & 2 \\
third & 3 \\
n-th & n \\
\bottomrule
\end{tabular}
\captionof{table}{text}
\end{minipage}}%
\hfill%
\fbox{%
\begin{minipage}[c]{0.40\linewidth}
\begin{tabular}{c c c}
\toprule
\tabhead{Name1} & \tabhead{Values} \\
\midrule
first & 1 \\
second & 2 \\
third & 3 \\
n-th & n \\
\bottomrule
\end{tabular}
\captionof{table}{text}
\end{minipage}
}
\end{frame}
\end{document}
Best Answer
It is not clear what is your problem. Also is not defined
tabhead
, so I guess that you looking for something like this:MWE, which produce above image is:
or maybe this:
for which in table specifications (
tblr
options) in above MWE you only need to replacevline{1,Z}
byvlines
.