# hyperref adds space above enumerate environment in longtabu environment

Look at this:

\documentclass{article}

\usepackage{longtable, tabu, enumitem, geometry, lipsum, calc}
% from https://tex.stackexchange.com/a/6454
\makeatletter
\newcommand*{\compress}{\@minipagetrue}
\makeatother

\begin{document}

\begin{longtabu}{l>{\compress}X}
Dummy &
\begin{enumerate}
\item \lipsum[1]
\item \lipsum[1]
\end{enumerate}
\end{longtabu}

\end{document}


And this:

\documentclass{article}

\usepackage{longtable, tabu, enumitem, geometry, lipsum, calc, hyperref}
% from https://tex.stackexchange.com/a/6454
\makeatletter
\newcommand*{\compress}{\@minipagetrue}
\makeatother

\begin{document}

\begin{longtabu}{l>{\compress}X}
Dummy &
\begin{enumerate}
\item \lipsum[1]
\item \lipsum[1]
\end{enumerate}
\end{longtabu}

\end{document}


And you can see the alignment issue. How to fix it? Removing the package isn't a solution, because I have to use it (of course, this is not what I am writing, this is just MWE that reproduces the problem.) Perhaps I am not much aware of what the \compress it doing behind the hood, so am having trouble dealing with this problem.

• I will not debug something involving the tabu package. The tabu package is broken: see the readme here github.com/tabu-issues-for-future-maintainer/tabu – Ulrike Fischer Jun 10 at 8:37
• @UlrikeFischer Is there some alternative to longtabu then? – Book Of Flames Jun 10 at 8:42
• You could take a look at the xltabular package. It makes sure, tables can spread across multiple pages, while at the same time offering an X type column similar to tabularx. – leandriis Jun 10 at 9:23
• An approach similar to the one in this previous answer should also be applicable to your table. Just replace tabularx with xltabular. – leandriis Jun 10 at 9:30
• @leandriis Your approach is very promising. But this problem: \begin{tabenum}\item Item one\item Item two\end{tabenum}  this compiles to a list with the last item shifted to the right. How to make it look like a normal list? – Book Of Flames Jun 11 at 2:36