# Preserve table cell width across pages using supertabular

I'm using supertabular to break a table across two pages, but when the table continues on the second page, it resets the width of the table cells based on the first row that carries over to the second page. I would like the table cell widths to take into account the content of the cells in the full table, and thus remain constant.

\documentclass[12pt]{article}
\usepackage{lipsum,supertabular}
\begin{document}
\lipsum[1-3]
\begin{supertabular}{ll}
123456789 & abcdefghijklmnopqrstuvwxyz\\
123456789 & abcdefghijklmnopqrstuvwxy\\
123456789 & abcdefghijklmnopqrstuvwx\\
123 & abcdefghijklmnopqrstuvwxyz\\
123 & abcdefghijklmnopqrstuvwxy\\
123 & abcdefghijklmnopqrstuvwx\\
123 & abcdefghijklmnopqrstuvw\\
123 & abcdefghijklmnopqrstuv\\
123 & abcdefghijklmnopqrstu\\
\end{supertabular}
\end{document}

• – hpesoj626 Mar 17 '13 at 15:38
• getting that was why longtable got written (supertable is older). – David Carlisle Mar 17 '13 at 15:40
• Great, I'll add that as an answer just in case someone else comes to this question wondering the same. – Sverre Mar 17 '13 at 15:42

Using longtable rather than supertabular takes care of that automatically. Add [l] as an option to left-align the table (centered by default).

\documentclass[12pt]{article}
\usepackage{lipsum,longtable}
\begin{document}
\lipsum[1-3]
\begin{longtable}[l]{ll}
123456789 & abcdefghijklmnopqrstuvwxyz\\
123456789 & abcdefghijklmnopqrstuvwxy\\
123456789 & abcdefghijklmnopqrstuvwx\\
123 & abcdefghijklmnopqrstuvwxyz\\
123 & abcdefghijklmnopqrstuvwxy\\
123 & abcdefghijklmnopqrstuvwx\\
123 & abcdefghijklmnopqrstuvw\\
123 & abcdefghijklmnopqrstuv\\
123 & abcdefghijklmnopqrstu\\
\end{longtable}
\end{document}