在 Longtable 中添加段落间距

在 Longtable 中添加段落间距

我正在尝试在长表单元格内添加段落之间的间距。我不想展开每一行,只想展开段落,就像文档中的常规段落一样。

\documentclass[a4paper,10pt]{article}    
    \usepackage{longtable}
    \begin{longtable}{|p{51 pt}|p{370 pt}|}
        \textsc{Aug 2017}&\Large{{Sample Project Title}}\\
        \textsc{\hfill -Present}&Shortly before my start at Somewhere Industries, a catastrophic failure of one of the system conveyor occurred.

        I also drove the inventory management, document management and SAP system re-implementation to ensure all site-specific technical aspects were adequately addressed and integrated with asset management system and strategic initiatives.
    \end{longtable}
\end{document}

(顺便说一句:我不想使用列。 longtable 格式最适合我的需要。我也不想学习新的环境。我喜欢 longtable :) )

我发现的一个解决方法是在单元格内部使用 parskip,就像在这个 MWE 中一样:

\documentclass[a4paper,10pt]{article}    
    \usepackage{longtable}
    \usepackage{parskip}
    \begin{longtable}{|p{51 pt}|p{370 pt}|}
        \textsc{Aug 2017}&\Large{{Sample Project Title}}\\
        \textsc{\hfill -Present}&{\setlength{\parskip}{6pt}Shortly before my start at Somewhere Industries, a catastrophic failure of one of the system conveyor occurred.

        I also drove the inventory management, document management and SAP system re-implementation to ensure all site-specific technical aspects were adequately addressed and integrated with asset management system and strategic initiatives.
    \end{longtable}

\end{document}

但我希望它能在全球范围内实施。

谢谢

答案1

您可以使用数组包在每个单元格中注入代码。

\documentclass[a4paper,10pt]{article}
    \usepackage{longtable,array}
    \begin{longtable}{|p{51 pt}|>{\setlength\parskip{1ex}}p{370 pt}|}
        \textsc{Aug 2017}&\Large Sample Project Title \\
        \textsc{\hfill -Present}&Shortly before my start at Somewhere Industries, a catastrophic failure of one of the system conveyor occurred.

        I also drove the inventory management, document management and SAP system re-implementation to ensure all site-specific technical aspects were adequately addressed and integrated with asset management system and strategic initiatives.
    \end{longtable}
\end{document}

在此处输入图片描述

相关内容