表格环境中的列表

表格环境中的列表

我正在尝试在这样的表格环境中插入列表/枚举(与项目符号对齐)在此处输入图片描述。但是,我目前的代码只能实现在此处输入图片描述

我当前的代码是:

\documentclass{article}
\usepackage{multirow}
\usepackage{siunitx}
\usepackage{tabularx}
\begin{document}



\begin{table}[htp]
\centering
\begin{tabular}{|c|c|} \hline

Date & Tuesday 21/01/2020 \\ \hline

Location & Fraser Noble building; Room FN112  \\ \hline

Start time & 10:00  \\ \hline

End time & 12:00  \\ \hline


\multirow{5}{*}{Present} & Samuel Panza (Scribe) \\
          & David Agyeman \\ 
          & Denzil Matthews \\
          & Christopher Hyde \\
          & Nay Htet Hein \\ \hline

Absent with apologies & Ifeanyichukwu Samuel Anene  \\ \hline
Absent without apologies & - \\ \hline
Agenda & Initiation of Development of dry base case \\ \hline

\multirow{5}{*}{Items of Discussion} & Identification of the design specifications of dry stream \\ & base case and the initiation of the development of a \\ & design that separates a  dry stream into a HP gas stream \\ & at 200 bara gas with a maximum cricondenbar of 110 bara, \\ & and an oil stream with a true vapour pressure 0.95 bara at 37.8\si{\celsius} \\ \hline

Actions undertaken & \\ \hline

Next meeting & Thursday 23/01/2020 16:30 - 19:00 \\ \hline
\end{tabular}

\end{table}


\end{document}

答案1

下面是一段代码: 使用enumitem,我定义了一个tabitemize列表,其中包含适合表格的参数。

\documentclass{article}
\usepackage{multirow}
\usepackage{siunitx}
\usepackage{tabularx}

\usepackage{enumitem}
\newlist{tabitemize}{itemize}{1}
\setlist[tabitemize]{label=\textbullet, wide=0pt, leftmargin=*, itemsep = 0pt, before=\vspace*{\dimexpr-\baselineskip+\topsep}, after =\vskip -\dimexpr\topsep + \partopsep}

\begin{document}

\begin{table}[htp]
\centering\sffamily\setlength{\extrarowheight}{2pt}
\renewcommand{\tabularxcolumn}[1]{>{\arraybackslash}m{#1}} %
\begin{tabularx}{\linewidth}{|m{4cm}|X|} \hline
Date & Tuesday 21/01/2020 \\ \hline
Location & Fraser Noble building; Room FN112 \\ \hline
Start time & 10:00 \\ \hline
End time & 12:00 \\ \hline
Present & \begin{tabitemize}
\item Samuel Panza (Scribe)
\item David Agyeman
\item Denzil Matthews
\item Christopher Hyde
\item Nay Htet Hein
\item Bartleby (the Scrivener)
\end{tabitemize} \\ \hline
Absent with apologies & Ifeanyichukwu Samuel Anene \\ \hline
Absent without apologies & -- \\ \hline
Agenda & Initiation of Development of dry base case \\ \hline
Items of Discussion & \begin{tabitemize}
\item Identification of the design specifications of dry stream
base case and the initiation of the development of a
design that separates a dry stream into a HP gas stream
at 200 bara gas with a maximum cricondenbar of 110 bara,
and an oil stream with a true vapour pressure 0.95 bara at \SI[detect-family, math-rm=\mathsf ]{37.8}{\celsius}
\end{tabitemize} \\ \hline
Actions undertaken & \\ \hline
Next meeting & Thursday 23/01/2020 16:30 - 19:00 \\ \hline
\end{tabularx}
\end{table}

\end{document} 

在此处输入图片描述

相关内容