如何在横向模式下让两张表格并排显示?

如何在横向模式下让两张表格并排显示?

我想让两个表格以横向模式并排显示,并在顶部显示附录标题。以下是我一直在使用的内容:

\documentclass{article}
\usepackage{pdflscape}
\begin{document}

\begin{center}

\appendix{\large{\bf Appendix 4b: Overall Usage Statistics}}\\
\medskip



\emph{Table 1: Oriented to Bormino Usage}\\
\medskip

\begin{tabular}{lcccc}
Context & Italian & Bormino & Both & N/A \\\hline
\\
Mother & 24.3\% & 59.5\% & 16.2\% & 0\% \\
Parents to age 10 & 27.0\% & 59.5\% & 13.5\% & 0\% \\
Father & 29.7\% & 56.8\% & 10.8\% & 2.7\% \\
Grandfather & 24.3\% & 55.9\% & 10.8\% & 13.5\% \\
Grandmother & 24.3\% & 54.1\% & 13.5\% & 8.1\% \\
Brothers & 21.6\% & 46.0\% & 10.8\% & 21.6\% \\
Swearing & 27.0\% & 40.5\% & 16.2\% & 16.2\% \\
Sisters & 8.1\% & 35.1\% & 8.1\% & 48.7\% \\
Relatives & 24.3\% & 32.4\% & 43.2\% & 0\% \\
Neighbors & 24.3\% & 27.0\% & 46.0\% & 2.7\% \\
Partner & 32.4\% & 24.3\% & 27.0\% & 16.2\% \\
Son & 16.2\% & 21.6\% & 16.2\% & 46.0\% \\
Localities & 29.7\% & 21.6\% & 48.7\% & 0\% \\
At Work & 32.4\% & 21.6\% & 43.2\% & 2.7\% \\
Colleagues & 29.7\% & 18.9\% & 48.7\% & 2.7\% \\
Schoolmates & 43.2\% & 16.2\% & 32.4\% & 8.1\% \\
Thinking & 43.2\% & 16.2\% & 35.1\% & 5.4\% \\
Daughter & 13.5\% & 13.5\% & 8.1\% & 64.9\% \\
Officials & 67.6\% & 13.5\% & 18.9\% & 0\% \\
Praying & 40.5\% & 10.8\% & 16.2\% & 32.4\% \\
Counting/Mental math & 62.2\% & 8.1\% & 29.7\% & 0\% \\
Teachers & 73.0\% & 8.1\% & 5.4\% & 13.5\% \\

\end{tabular}


\emph{Table 2: Oriented to Italian Usage}\\
\medskip

\begin{tabular}{lcccc}
Context & Italian & Bormino & Both & N/A \\\hline
\\
Teachers & 73.0\% & 8.1\% & 5.4\% & 13.5\% \\
Officials & 67.6\% & 13.5\% & 18.9\% & 0\% \\
Counting/Mental math & 62.2\% & 8.1\% & 29.7\% & 0\% \\
Thinking & 43.2\% & 16.2\% & 35.1\% & 5.4\% \\
Schoolmates & 43.2\% & 16.2\% & 32.4\% & 8.1\% \\
Praying & 40.5\% & 10.8\% & 16.2\% & 32.4\% \\
Partner & 32.4\% & 24.3\% & 27.0\% & 16.2\% \\
At Work & 32.4\% & 21.6\% & 43.2\% & 2.7\% \\
Colleagues & 29.7\% & 18.9\% & 48.7\% & 2.7\% \\
Localities & 29.7\% & 21.6\% & 48.7\% & 0\% \\
Father & 29.7\% & 56.8\% & 10.8\% & 2.7\% \\
Swearing & 27.0\% & 40.5\% & 16.2\% & 16.2\% \\
Parents to age 10 & 27.0\% & 59.5\% & 13.5\% & 0\% \\
Neighbors & 24.3\% & 27.0\% & 46.0\% & 2.7\% \\
Relatives & 24.3\% & 32.4\% & 43.2\% & 0\% \\
Mother & 24.3\% & 59.5\% & 16.2\% & 0\% \\
Grandmother & 24.3\% & 54.1\% & 13.5\% & 8.1\% \\
Grandfather & 24.3\% & 55.9\% & 10.8\% & 13.5\% \\
Brothers & 21.6\% & 46.0\% & 10.8\% & 21.6\% \\
Son & 16.2\% & 21.6\% & 16.2\% & 46.0\% \\
Daughter & 13.5\% & 13.5\% & 8.1\% & 64.9\% \\
Sisters & 8.1\% & 35.1\% & 8.1\% & 48.7\% \\

\end{tabular}
\end{center}
\end{landscape}
\end{document}

我尝试过使用 minipage,但当我这样做时,两个表格总是出现在页面左侧的顶部。其他选项(如 sidewaystable 或 column)也不起作用,它们将表格拆分为两页。我似乎找不到有关横向并排列的其他答案,所以任何建议都会很有用。非常感谢!

答案1

您需要记住,只要您留下一个空行,TeX 就会创建一个新的段落,并且任何后续材料都会排版在下面。我已经删除了这些,并且表格在横向上排版正确。

\documentclass{article}
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
\begin{tabular}{lcccc}
Context & Italian & Bormino & Both & N/A \\\hline
\\
Mother & 24.3\% & 59.5\% & 16.2\% & 0\% \\
Parents to age 10 & 27.0\% & 59.5\% & 13.5\% & 0\% \\
Father & 29.7\% & 56.8\% & 10.8\% & 2.7\% \\
Grandfather & 24.3\% & 55.9\% & 10.8\% & 13.5\% \\
Grandmother & 24.3\% & 54.1\% & 13.5\% & 8.1\% \\
Brothers & 21.6\% & 46.0\% & 10.8\% & 21.6\% \\
Swearing & 27.0\% & 40.5\% & 16.2\% & 16.2\% \\
Sisters & 8.1\% & 35.1\% & 8.1\% & 48.7\% \\
Relatives & 24.3\% & 32.4\% & 43.2\% & 0\% \\
Neighbors & 24.3\% & 27.0\% & 46.0\% & 2.7\% \\
Partner & 32.4\% & 24.3\% & 27.0\% & 16.2\% \\
Son & 16.2\% & 21.6\% & 16.2\% & 46.0\% \\
Localities & 29.7\% & 21.6\% & 48.7\% & 0\% \\
At Work & 32.4\% & 21.6\% & 43.2\% & 2.7\% \\
Colleagues & 29.7\% & 18.9\% & 48.7\% & 2.7\% \\
Schoolmates & 43.2\% & 16.2\% & 32.4\% & 8.1\% \\
Thinking & 43.2\% & 16.2\% & 35.1\% & 5.4\% \\
Daughter & 13.5\% & 13.5\% & 8.1\% & 64.9\% \\
Officials & 67.6\% & 13.5\% & 18.9\% & 0\% \\
Praying & 40.5\% & 10.8\% & 16.2\% & 32.4\% \\
Counting/Mental math & 62.2\% & 8.1\% & 29.7\% & 0\% \\
Teachers & 73.0\% & 8.1\% & 5.4\% & 13.5\% \\
\end{tabular}
\begin{tabular}{lcccc}
Context & Italian & Bormino & Both & N/A \\\hline
\\
Teachers & 73.0\% & 8.1\% & 5.4\% & 13.5\% \\
Officials & 67.6\% & 13.5\% & 18.9\% & 0\% \\
Counting/Mental math & 62.2\% & 8.1\% & 29.7\% & 0\% \\
Thinking & 43.2\% & 16.2\% & 35.1\% & 5.4\% \\
Schoolmates & 43.2\% & 16.2\% & 32.4\% & 8.1\% \\
Praying & 40.5\% & 10.8\% & 16.2\% & 32.4\% \\
Partner & 32.4\% & 24.3\% & 27.0\% & 16.2\% \\
At Work & 32.4\% & 21.6\% & 43.2\% & 2.7\% \\
Colleagues & 29.7\% & 18.9\% & 48.7\% & 2.7\% \\
Localities & 29.7\% & 21.6\% & 48.7\% & 0\% \\
Father & 29.7\% & 56.8\% & 10.8\% & 2.7\% \\
Swearing & 27.0\% & 40.5\% & 16.2\% & 16.2\% \\
Parents to age 10 & 27.0\% & 59.5\% & 13.5\% & 0\% \\
Neighbors & 24.3\% & 27.0\% & 46.0\% & 2.7\% \\
Relatives & 24.3\% & 32.4\% & 43.2\% & 0\% \\
Mother & 24.3\% & 59.5\% & 16.2\% & 0\% \\
Grandmother & 24.3\% & 54.1\% & 13.5\% & 8.1\% \\
Grandfather & 24.3\% & 55.9\% & 10.8\% & 13.5\% \\
Brothers & 21.6\% & 46.0\% & 10.8\% & 21.6\% \\
Son & 16.2\% & 21.6\% & 16.2\% & 46.0\% \\
Daughter & 13.5\% & 13.5\% & 8.1\% & 64.9\% \\
Sisters & 8.1\% & 35.1\% & 8.1\% & 48.7\% \\
\end{tabular}
\end{landscape}
\end{document}

要将它们稍微分开,可以使用hspace{<dimen>}。例如,要留出 1em 的空间,请使用,

\end{tabular}\hspace{1em}
\begin{tabular}{lcccc}

相关内容