I have a twocolumn
document with a very long supertabular
table.
Within the table, I have "subsections" that I want clumped together; not split over multiple pages. For this example, each "subsection" is three rows, an X and then two lines of letters, like this:
X
a b c d e
f g h i j
This is the MWE:
\documentclass[12pt, twocolumn]{article}
\usepackage[a4paper, margin = 25mm, tmargin = 20mm]{geometry}
\usepackage{supertabular}
\begin{document}
\begin{supertabular}{ c c c c c }
\textbf{X} \\
a & b & c & d & e \\
f & g & h & i & j \\
\ \\
\textbf{X} \\
a & b & c & d & e \\
f & g & h & i & j \\
\ \\
% ...lots of rows...
\textbf{X} \\
a & b & c & d & e \\
f & g & h & i & j \\
\ \\
\textbf{X} \\
a & b & c & d & e \\
f & g & h & i & j \\
\ \\
\end{supertabular}
\end{document}
This is what the table looks like at the moment:
As shown, the final "subsection" in the first column is split into both columns.
This is what I want it to look like:
Is there a way to wrap table rows in an "un-split-able" container?
I've looked into samepage
and minipage
and I've seen this post, but they don't work within tabular environments.
Perhaps something like this?
\begin{supertabular}{ c c c c c }
\begin{contain-rows}
\textbf{X} \\
a & b & c & d & e \\
f & g & h & i & j \\
\end{contain-rows}
\end{supertabular}
tabular
environment. I've updated the question to state that