在多列和 tabularx 内进行逐项列出

在多列和 tabularx 内进行逐项列出

我怎样才能使项目填充整个多列,如下图所示?

我知道我的代码可能不是最优雅的解决方案,但我已经完成了整个文档,我对结果非常满意,这是我面临的最后一个问题。任何帮助都非常感谢。

乳胶

\documentclass{article}

\usepackage[scale=0.75]{geometry}
\usepackage{textcomp}
\usepackage{array}
\usepackage{tabularx}
\usepackage{ltablex}
\usepackage{cellspace}
\usepackage[table]{xcolor}
\usepackage{enumitem}

\renewcommand{\familydefault}{\sfdefault}
\arrayrulecolor{blue}
\setlength\arrayrulewidth{2pt}
\setlength\cellspacetoplimit{2pt}
\setlength\cellspacebottomlimit{2pt}
\keepXColumns

\begin{document}
\begin{tabularx}{\textwidth}{@{}>{\color{blue}}>{\LARGE}Sr|S{X}>{\color{blue}}>{\large}Sr@{}}

Experience

& \large \textcolor{blue}{Intern} & Feb 2018–Aug 2018 \\
& \multicolumn{2}{>{\hsize=\dimexpr2\hsize+2\tabcolsep+\arrayrulewidth\relax}X}{
{\large Company X} \newline
Department: Department X \newline
\begin{itemize}[nosep,leftmargin=*,before=\vspace{-\baselineskip},after=\vspace{-\baselineskip},label={\textcolor{blue}\textopenbullet}]
\item Management of procurement master data and processes for suppliers, commodities and buyers
\item Creation, consolidation and analysis of procurement data and reports
\end{itemize}}

\end{tabularx}

\end{document}

答案1

这是一个带有p{...}列的解决方案,其中的长度由包计算linegoal。出于美观原因,我在列表上方添加了一个小跳跃。此包需要两次编译来计算行上的剩余空间。

无关:请注意,当您加载 时ltablex,您不必加载tabularx也不必加载array

\documentclass{article}

\usepackage[scale=0.75]{geometry}
\usepackage{textcomp}
\usepackage{ltablex}
\usepackage{cellspace}
\usepackage[table]{xcolor}
\usepackage{enumitem}

\renewcommand{\familydefault}{\sfdefault}
\arrayrulecolor{blue}
\setlength\arrayrulewidth{2pt}
\setlength\cellspacetoplimit{2pt}
\setlength\cellspacebottomlimit{2pt}
\keepXColumns
\usepackage{linegoal}

\begin{document}

\begin{tabularx}{\textwidth}{@{}>{\color{blue}}>{\LARGE}Sr|S{X}>{\color{blue}}>{\large}Sr@{}}
Experience
& \large \textcolor{blue}{Intern} & Feb 2018–Aug 2018 \\
& \multicolumn{2}{p{\linegoal}@{}}{%
{\large Company X} \newline
Department: Department X \smallskip\newline
\begin{itemize}[nosep, leftmargin=*, before=\vspace{-\baselineskip}, after=\vspace{-\baselineskip}, label={\textcolor{blue}\textopenbullet}]
\item Management of procurement master data and processes for suppliers, commodities and buyers
\item Creation, consolidation and analysis of procurement data and reports
\end{itemize}}
\end{tabularx}

\end{document} 

在此处输入图片描述

相关内容