I'm trying to create a table that mimics an enumerated list. The idea is that the first column should have the exact same horizontal padding and indentation as an enumeration label. Below is what I have so far. I've tried to base my solution on the standard metrics of a list environment (\leftmargin, \labelsep, etc). It almost works, but the text following the table gets separated into its own paragraph for some reason. Does anyone know why this happens? I would also appreciate tips on how to simplify my solution.
\documentclass{article}
\usepackage[showframe, a5paper]{geometry}
\usepackage{array}
\begin{document}
Ut dapibus elementum lorem ut rutrum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non nulla dignissim, dignissim nunc ac, auctor magna.
\begingroup
\list{}{\leftmargin 0pt}\item \relax
\begin{tabular}{
@{} % left padding
>{\raggedleft} % right-align column
p{\labelwidth} % column width
@{\hspace{\labelsep}} % right pading
l
l
l
}
1. & A & sit & amet \
2. & B & . & tincidunt \
3. & C & nulla & $f(x) = \sqrt[3]{x}$
% ^^^ I want this column to look exactly like the "label column" of a list
\end{tabular}
\endlist
\endgroup % the following text will not stick to the previous paragraph
Duis quam sem, finibus in nisi non, facilisis blandit magna. Mauris a arcu et est elementum pulvinar. Curabitur eros sem, vehicula nec augue nec, accumsan luctus turpis.
\begin{enumerate}
\item A
\item B
\end{enumerate}
Mauris a arcu et est elementum pulvinar. Curabitur eros sem, vehicula nec augue nec, accumsan luctus turpis. Curabitur id mauris semper, interdum ligula ac, sagittis velit.
\end{document}
By the way, the outer environment is based on the implementation of the quote environment which I often see recommended as a starting point for custom list- or quote-like environments:
$ latexdef quote
\quote:
\long macro:->\list {}{\rightmargin \leftmargin }\item \relax
$ latexdef endquote
\endquote:
\long macro:->\endlist





