单个表格单元格中的长文本 + 列表

单个表格单元格中的长文本 + 列表

我一直在用 LaTeX 写一个项目,其中涉及编写包含大量文本和一些列表的表格。请看下面的示例(抱歉质量较差):在此处输入图片描述

这是我目前编写的 LaTeX 程序。除了最后一行无法容纳我需要编写的所有文本外,它运行良好。

\documentclass[12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm , right=2.5cm]{geometry}
\usepackage[frenchb,english]{babel}
\usepackage{array}

\begin{document}

\begin{table}[H]
\begin{center}
\begin{tabular}{|l|l|l|l|l|}
\hline
WP Title : & \multicolumn{4}{|l|}{\textbf{Project Administration}}\\  
\hline
Contractor : & \multicolumn{2}{|l|}{NKCA Corp.} & WP No : & XXX\\
\hline
Start Event/Date : & T0 & & Issue Date : & XXX\\
\hline
End Event/Date : & Delivery & & Sheets & 1 of 1\\
\hline
WP Manager : & \multicolumn{2}{|l|}{(Name)} & &\\
\hline
\multicolumn{5}{|l|}{\textbf{Items required to start WP : }}\\
\hline
\end{tabular}
\end{center}
\end{table}

\end{document}

有任何想法吗 ?

提前谢谢你,Arnaud。

答案1

这是一个使用该enumitem包的解决方案:

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[margin=2.5cm]{geometry}
\usepackage[frenchb,english]{babel}
\usepackage{array}
\usepackage{enumitem}

\begin{document}

\begin{table}[!ht]
  \centering\sffamily\renewcommand\arraystretch{1.333}
  \begin{tabular}{|*{5}{l|}}
    \hline
    WP Title : & \multicolumn{4}{|l|}{\textbf{Project Administration}}\\
    \hline
    Contractor : & \multicolumn{2}{|l|}{NKCA Corp.} & WP No : & XXX\\
    \hline
    Start Event/Date : & T0 & & Issue Date : & XXX \\
    \hline
    End Event/Date : & Delivery & & Sheets & 1 of 1 \\
    \hline
    WP Manager : & \multicolumn{2}{|l|}{(Name)} & &\\
    \hline
    \multicolumn{5}{|p{12cm}|}{\setlist[itemize]{wide = 0pt, leftmargin=*, noitemsep, topsep = 3pt, before = \leavevmode\vspace*{-\dimexpr \topsep\relax}}%
    \begin{description}[leftmargin = 0pt, topsep=8pt, before=\vspace*{-\baselineskip}, after=\vspace*{-\baselineskip}]%
    \item[Items required to start WP]
    \begin{itemize}
    \item KO meeting minutes
    \item Contractual documentation
    \end{itemize}
    \item[Tasks performed in WP]
    \begin{itemize}
    \item Plan and manage the resources necessary to accomplish the project work and meet the objectives. Monitor the work progress.
    \item Maintain the set of resume of key personnel, and Project Directory.
    \item Ensure the establishment of the Project Management Information System.
    \item Ensure the establishment of the Risk management process and monitor maintenance of risk portfoilio.
    \end{itemize}
    \item[Tasks performed in WP]
    \begin{itemize}
    \item Updated Project Organisation Breakdown Structure
    \item Progress reports \& Schedule update.
    \item Risk register.
    \item Minutes of meeting.
    \end{itemize}
    \end{description}
    }\\
    \hline
  \end{tabular}
\end{table}

\end{document} 

在此处输入图片描述

相关内容