制作带有 cols 的表格

制作带有 cols 的表格

现在我正在做类似的事情:

\twocolumn
{\footnotesize
\begin{center}
    \tablehead{$x$ & $y$ \\ \hline}
    \begin{supertabular}{ccc}
        entry_x & entry_y \\
        etc

有没有办法通过几列来完成这个任务?

答案1

\documentclass{article}
\usepackage[a6paper]{geometry}

\usepackage{supertabular,multicol}
\begin{document}
\footnotesize
\begin{multicols*}{3}
\tablehead{$x$ & $y$ \\ \hline}
\begin{supertabular}{ccc}
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
\end{supertabular}
\columnbreak
\par
\begin{supertabular}{ccc}
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
\end{supertabular}
\columnbreak
\par
\begin{supertabular}{ccc}
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
  entry\_x & entry\_y \\
\end{supertabular}
\end{multicols*}

\end{document}

在此处输入图片描述

答案2

在每个 之前放置一个空行\columnbreak。如果没有它,则该中断被放置在当前行之后,这似乎(有时)发生在以下supertabular环境之一之后。然后,您会(有时)supertabular在一列中并排看到两个 s,在另一列中并排看到一个 s。

相关内容