如何从表格列表中删除缩进?

如何从表格列表中删除缩进?

我有如下列表表:

\begin{center}
\begin{tabular}{|p{2cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}|}
\hline
 \textbf{Attribute} & \textbf{P1} & \textbf{P2} & \textbf{P3} & \textbf{P4} \\
\hline
Definition&\noindent{\begin{itemize} \item Critical break-fix. \item Production down with no workaround. \item Multiple users impacted. \item Unavailability of Systems. \end{itemize}}&\noindent{\begin{itemize} \item Urgent break-fix. \item Production issue with workaround. \item Multiple users impacted. \item Multiple records impacted. \item Unavailability of system interfaces. \end{itemize}}&\noindent{\begin{itemize} \item Small Maintenance Issues. \item Non critical Bug Fix with workaround. \item No immediate impact. \item Single user/record impacted.  \end{itemize}}&\noindent{\begin{itemize} \item Small Maintenance Issues. \item Not a break-fix. \item A nice to have feature. \item 1- 7 person days of effort. \end{itemize}}\\
\hline
Response Time &3 Business Hours&5 Business Hours&1 Business Day&4 Business Days\\
\hline
Resolution Time &1 Business Day&2 Business Days&5 Business Days&As per mutual agreement\\
\hline
\end{tabular}
\end{center}

它的输出为下表

如何删除列表项前的额外空格?

答案1

leftmargin这是使用包中的选项的解决方案enumitem

\documentclass{article}

\usepackage{enumitem}
\begin{document}

\begin{table}
\centering
\begin{tabular}{|p{2cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}|}
\hline
\textbf{Attribute} & \textbf{P1} & \textbf{P2} & \textbf{P3} & \textbf{P4}\\
\hline
Definition&\noindent{\begin{itemize}[leftmargin=0.3cm] \item Critical break-fix. \item Production down with no workaround. \item Multiple users impacted. \item Unavailability of Systems. \end{itemize}}&\noindent{\begin{itemize}[leftmargin=0.3cm] \item Urgent break-fix. \item Production issue with workaround. \item Multiple users impacted. \item Multiple records impacted. \item Unavailability of system interfaces. \end{itemize}}&\noindent{\begin{itemize}[leftmargin=0.3cm] \item Small Maintenance Issues. \item Non critical Bug Fix with workaround. \item No immediate impact. \item Single user/record impacted.  \end{itemize}}&\noindent{\begin{itemize}[leftmargin=0.3cm] \item Small Maintenance Issues. \item Not a break-fix. \item A nice to have feature. \item 1- 7 person days of effort. \end{itemize}}\\
\hline
Response Time &3 Business Hours&5 Business Hours&1 Business Day&4 Business Days\\
\hline
Resolution Time &1 Business Day&2 Business Days&5 Business Days&As per mutual agreement\\
\hline
\end{tabular}
\end{table}

\end{document}

输出如下:

输出

编辑以下是一些改进方法更好的输出(使用 Daleif 建议)

\documentclass{article}

\usepackage{enumitem}
\usepackage{ragged2e}

\begin{document}

\begin{table}
\centering
\begin{tabular}{|p{2cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}|}
\hline
\textbf{Attribute}&\textbf{P1}&\textbf{P2}&\textbf{P3}&\textbf{P4}\\
\hline
Definition&\RaggedRight
\noindent{
\begin{itemize}[leftmargin=0.3cm] 
\item Critical break-fix. 
\item Production down with no workaround. 
\item Multiple users impacted. 
\item Unavailability of Systems. 
\end{itemize}}&\RaggedRight
\noindent{
\begin{itemize}[leftmargin=0.3cm] 
\item Urgent break-fix. 
\item Production issue with workaround. 
\item Multiple users impacted. 
\item Multiple records impacted. 
\item Unavailability of system interfaces. 
\end{itemize}}&\RaggedRight
\noindent{
\begin{itemize}[leftmargin=0.3cm] 
\item Small Maintenance Issues. 
\item Non critical Bug Fix with workaround. 
\item No immediate impact. 
\item Single user/record impacted. 
\end{itemize}}&\RaggedRight
\noindent{
\begin{itemize}[leftmargin=0.3cm] 
\item Small Maintenance Issues. 
\item Not a break-fix. 
\item A nice to have feature. 
\item 1- 7 person days of effort. 
\end{itemize}}\\
\hline
Response Time &3 Business Hours&5 Business Hours&1 Business Day&4 Business Days\\
\hline
Resolution Time &1 Business Day&2 Business Days&5 Business Days&As per mutual agreement\\
\hline
\end{tabular}
\end{table}

\end{document}

其输出如下:

输出2

相关内容