I want to align the columns of multiple longtables.
David Carlisle already provided a solution over a decade ago, but it is not working (any longer), if the last table is narrower than the first one.
\documentclass{article}
\usepackage{longtable}
\makeatletter
\def\dontchopLT{\let\LT@entry@chop\relax}
\def\resumeLT{%
\let\zzz\stepcounter
\def\yyy{LT@tables}
\def\stepcounter##1{%
\def\xxx{##1}%
\ifx\xxx\yyy\else\zzz{##1}\fi}}
\makeatother
\begin{document}
{\dontchopLT
\begin{longtable}{ll}
abcdefghijklmnopqrstuvwxyz & 10 \
5 & 6 \
\end{longtable}}
{\resumeLT
\begin{longtable}{ll}
1 & 2 \
3 & 4 \
\end{longtable}}
\end{document}
Can someone figure what is wrong?

\LT@iis being redefined as what would narmally be\LT@ii, except the {1} (chunk number?) is reset to {2}. But the redefinition loses all the information from\LT@i. – John Kormylo Mar 01 '24 at 16:38