如何在同一页面上创建多个表格,如示例中所示?
答案1
\begin{tabular}{l}a\\b\end{tabular}
\begin{tabular}{l}a\\b\end{tabular}
\begin{tabular}{l}a\\b\end{tabular}
将三张表排成一排。
答案2
这是一个解决方案:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{array}
\setlength{\arrayrulewidth}{0.8pt}
\begin{document}
\begin{tabular}[t]{|r@{\qquad}r|}
\hline
\multicolumn{2}{|c|}{1}\\ & \\
3 & 3 \\ & 5 \\
5 & 3 \\ & 7 \\
7 & 3 \\ & 9 \\
9 & 4 \\ & 1 \\
1 & 4 \\
1 & 3 \\
\hline
\end{tabular}
\quad
\begin{tabular}[t]{|r@{\qquad}r|}
\hline
\multicolumn{2}{|c|}{1}\\
\multicolumn{2}{|c|}{6} \\
1 & 49 \\ 7 & \\
1 & 50 \\ 8 & \\
1 & 51 \\ 9 & \\
2 & 52 \\ 0 & \\
2 & 53 \\ & 7 \\
\hline
\end{tabular}
\end{document}