我尝试了 Tabu,但单元格的行距其内容太近
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{tabu}
\usepackage[table]{xcolor}
\usepackage{tabularx, multirow, makecell, rotating} %
\usepackage{enumitem}
\begin{document}
\begin{center}
\begin{tabu} spread \linewidth{|X[c]|X[4]|} \hline
Year 2023-2024 & Very long very long text Very long very long text Very long very long text \\\hline
Year 2022-2023 & Very long very long text Very long very long text Very long very long text \\\hline
Year 2021-2022 & Very long very long text Very long very long text Very long \\\hline
Year 2020-2021 &Very long very long text Very long very long text Very long very long text \\\hline
Year 2019-2020 & Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text \\\hline
Year 2018-2019 &Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text \\\hline
\end{tabu}
答案1
tabularx
以下是使用且仅使用一个灵活宽度列的变体X
:
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\renewcommand{\arraystretch}{1.25}
\noindent
\begin{tabularx}{\linewidth}{|l|X|} \hline
Year 2023-2024 & Very long very long text Very long very long text Very long very long text \\\hline
Year 2022-2023 & Very long very long text Very long very long text Very long very long text \\\hline
Year 2021-2022 & Very long very long text Very long very long text Very long \\\hline
Year 2020-2021 &Very long very long text Very long very long text Very long very long text \\\hline
Year 2019-2020 & Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text \\\hline
Year 2018-2019 &Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text \\\hline
\end{tabularx}
\end{document}
答案2
像这样:
您需要增加第一列的相对宽度:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{rotating}
\usepackage[table]{xcolor}
\usepackage{makecell, multirow, tabu, tabularx}
\usepackage{enumitem}
\begin{document}
\begin{center}
\tabulinesep=3pt
\begin{tabu}to\linewidth{|X[1.1,c]|X[3.9]|}
\hline
Year 2023-2024 & Very long very long text Very long very long text Very long very long text \\
\hline
Year 2022-2023 & Very long very long text Very long very long text Very long very long text \\
\hline
Year 2021-2022 & Very long very long text Very long very long text Very long \\
\hline
Year 2020-2021 & Very long very long text Very long very long text Very long very long text \\
\hline
Year 2019-2020 & Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text \\
\hline
Year 2018-2019 &Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text Very long very long text \\
\hline
\end{tabu}
\end{center}
\end{document}
或者简单地使用下表列定义:
\begin{tabu}to\linewidth{|c|X|}
结果非常相似。