我正在尝试删除表格中列表后的空白区域。
\documentclass[a4paper, 11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[left=22.5mm,right=22.5mm,top=30mm,bottom=30mm]{geometry}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{ragged2e}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\begin{document}
\begin{table}
\centering
\caption{Key economic benefits of the project.}
\begin{tabularx}{\textwidth}{>{\raggedright\arraybackslash}p{5cm}L>{\raggedright\arraybackslash}p{5cm}}
\toprule
Traffic Benefits & Wider Economic Benefits & Contribution to GDP \\
\midrule
\$1,580 million & \$800 million to \$1,300 million & \$600 million to \$1,100 million \\
\midrule
\vspace{-5mm}\begin{itemize}
\setlength\itemsep{0em}
\item Travel time savings
\item Congestion cost savings
\item Reduced fuel consumption
\item Vehicle operating cost savings
\item Other
\end{itemize} &
\vspace{-5mm}\begin{itemize}
\setlength\itemsep{0em}
\item Local job generation (estimated to be around 18,500 jobs)
\item Improved productivity from reduced travel time
\item Increased accessibility providing opportunities for greater economic growth
\end{itemize} &
\vspace{-5mm}\begin{itemize}
\item Increased revenue from taxes – from increased employment productivity and growth
\end{itemize} \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}
答案1
使用包提供的itemize
选项after
,我还将使所有列的宽度相等:before
nosep
enumitem
\documentclass[a4paper, 11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[hmargin=22.5mm,vmargin=30mm]{geometry}
\usepackage{enumitem}
%\setlist[itemize]{leftmargin=*}
\usepackage{ragged2e}
\usepackage{booktabs}
\usepackage{tabularx}
\newcolumntype{L}{>{\RaggedRight}X}
\usepackage[skip=1ex]{caption}
\begin{document}
\begin{table}
\setlist[itemize]{nosep, % <---
leftmargin=*,
before=\vspace{-0.6\baselineskip}, % <---
after =\vspace{-1.8\baselineskip}} % <---
\caption{Key economic benefits of the project.}
\begin{tabularx}{\textwidth}{@{} LLL @{}} % <---
\toprule
Traffic Benefits & Wider Economic Benefits & Contribution to GDP \\
\midrule
\$1,580 million & \$800 million to \$1,300 million & \$600 million to \$1,100 million \\
\midrule
\begin{itemize}
\item Travel time savings
\item Congestion cost savings
\item Reduced fuel consumption
\item Vehicle operating cost savings
\item Other
\end{itemize} & \begin{itemize}
\item Local job generation (estimated to be around 18,500 jobs)
\item Improved productivity from reduced travel time
\item Increased accessibility providing opportunities for greater economic growth
\end{itemize} & \begin{itemize}
\item Increased revenue from taxes – from increased employment productivity and growth
\end{itemize} \\
\bottomrule
\end{tabularx}
\end{table}