Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've table with list as mentioned below:

\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}

It's giving output as table below

How can I remove extra space before list items?

share|improve this question
1  
Try something like \begin{itemize}[leftmargin=0.3cm] and adapt the distance to your need. You also need the enumitem package. –  Ludovic C. Oct 14 '13 at 14:07

1 Answer 1

up vote 5 down vote accepted

Here is a solution using the leftmargin option from the enumitem package.

\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}

And here is the output:

Output

EDIT Here are some improvements to get a better output (using Daleif suggestions)

\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}

And its output:

Output2

share|improve this answer
2  
The math mode switches aren't needed in the header row. –  Mico Oct 14 '13 at 14:26
    
Thank You Ludovic; it's working perfectly. –  Pawan Mude Oct 14 '13 at 14:27
    
Thank You Mico, I've removed it from my document. –  Pawan Mude Oct 14 '13 at 14:28
1  
Might be useful to add \RaggedRight from the ragged2e package to those columns such that the text isn't so stretched. –  daleif Oct 14 '13 at 14:33
    
@daleif Sure, it could be nice to fix the stretch of the columns but it wasn't exactly the question of the OP. –  Ludovic C. Oct 14 '13 at 14:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.