如何longtblr
正确自动地进行换行,而不在页面底部留下空白?换句话说,我希望文本到达页面底部,然后继续到下一页。在我的情况下,longtblr
不会中断列表的项目itemize
:
\documentclass{article}
\usepackage[a4paper,margin=5mm]{geometry}
\usepackage{lipsum}
\usepackage{tabularray}
\usepackage{enumitem} % <-- for a compact itemize list
\begin{document}
\lipsum[1-8]
\vspace{1cm}
\begin{longtblr}[
presep=-4pt,postsep=0pt
]{
colspec = {lX},
colsep=4pt,
hline{odd}={solid},
row{odd}={belowsep=0pt},
row{even}={abovesep=0pt},
cell{even}{1} = {c=2}{wd=\textwidth-8pt,halign=j}
}
01/01/2020 $-$ 31/12/2022 & \textbf{First}\\
\lipsum[2] &\\
01/01/2018 $-$ 31/12/2019 & \textbf{Second}\\
\begin{itemize}
\item First
\item Second
\begin{itemize}
\item A
\item B
\item C
\item D
\item E
\end{itemize}
\item Third
\item Fourth
\item Fifth
\end{itemize}
&\\
01/01/2016 $-$ 31/12/2017 & \textbf{Third}\\
\lipsum[2] &\\
\end{longtblr}
\end{document}