I currently have a table that has grown a bit and no longer fits its intended space. Since I expect this table to keep growing in the future, I need to make it page-breakable while keeping its current style. There are many posts out there on how to get page-breakable tables, but I have not been able to use any of the solutions I have found because I either got errors I could not wrap my head around, or the final output did not look as intended.
I share below a MWE which shows my current (non-breakable) table as well as a screenshot of the output it produces. What the MWE does is create a list environment which I then invoke whenever necessary. My goal is to replicate this output but making sure that the table will correctly break (rather than jump) whenever it reaches a page break.
\documentclass[a4paper]{article}
\begin{document}
\newenvironment{entrylist}{%
\noindent
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}rl}
}{%
\end{tabular*}
}
\newcommand{\entry}[4]{%
\parbox[t]{1.75cm}{#1\raggedleft}&\parbox[t]{\dimexpr\textwidth-2\tabcolsep-1.75cm}{\strut%
\textbf{#2}%
\hfill%
{\footnotesize #3\par\strut}%
#4\vspace{\parsep}%
}\\}
\begin{entrylist}
\entry
{XXXX}
{Fancy stuff 1}
{Fancy stuff 1}
{Fancy stuff 1}
\entry
{YYYY}
{Fancy stuff 2}
{Fancy stuff 2}
{Fancy stuff 2}
\entry
{ZZZZ}
{Fancy stuff 3}
{Fancy stuff 3}
{Fancy stuff 3}
\end{entrylist}
\end{document}
Thank you all very much for your time.