I am trying to create a latex table as the one shown below and looking for any help possible as I am stuck.
However, the result that I have come to is really bad and I'm pretty much stuck. the MWE gives me somthing that is somewhat an ugly compromise and have the following problems:
- I'm not able to put in an itemize in a multicolum cell, so I can utilize the full space of the row.
- The coloured cell does not have a \hline
- I have not control of where to put the vertical lines that mark up the cells.
- I have tried normal itemize but did not work, so I used a tabitem environment as given in bullet in table not aligned
Ideally, I would have wanted a 3 column table with multicolumns spanding 1.5 columns with itemize inside, but as I could not find any solution to this I made like that. Anyway, any help in making it look as the 'golden sample' above is very much appreciated!
\documentclass{article}
\usepackage{xcolor,colortbl}
\usepackage{paralist}
\usepackage{booktabs}
\newenvironment{tabitem}{%
\vspace*{-0.5\baselineskip}%
\setdefaultitem{\normalfont\bfseries\textbullet}%
{\normalfont\bfseries\textendash}{}{}%
\setdefaultleftmargin{1.1em}{1.1em}{}{}{}{}%
\begin{compactitem}%
}{%
\end{compactitem}%
\vspace*{-\baselineskip}%
}
\begin{document}
\begin{table}
\begin{tabular}{|p{0.16\textwidth}p{0.16\textwidth}p{0.16\textwidth}p{0.16\textwidth}p{0.16\textwidth}p{0.16\textwidth}|}
\bottomrule
\multicolumn{6}{|c|}{\textbf{Work system snapshot}}\\ \hline
\multicolumn{3}{|c|}{\cellcolor{black!25}Customers} & \multicolumn{3}{c|}{\cellcolor{black!25}Products \& services}\\ \hline
\multicolumn{3}{|l|}{People who have a need for the Smartdevice} & &
\begin{tabitem}
\item smartdevice in white
\item smartdevice in black \end{tabitem} & \\ \hline
\multicolumn{6}{|c|}{\cellcolor{black!25}Major activities or processes}\\ \hline
\begin{tabitem}
\item Procurement
\item Inventory Management
\item sales
\item Manufacturing
\item Billing system \end{tabitem} &&&&& \\ \hline
\multicolumn{2}{|l|}{\cellcolor{black!25}Participants} & \multicolumn{2}{l|}{\cellcolor{black!25} Information} & \multicolumn{2}{l|}{\cellcolor{black!25}Technologies} \\ \hline
\begin{tabitem}
\item Owner
\item Employees
\item Customers
\item Users
\end{tabitem}
&&
\begin{tabitem}
\item BOM
\item Order database which consist of: sales-, purchase and production orders)
\item Inventory information
\end{tabitem}
&&
\begin{tabitem}
\item ERP system
\item ME \& MII system
\item Web interface
\end{tabitem} & \\ \toprule[0.2em]
\end{tabular}
\end{table}
\end{document}
Best Answer
You could use something like the following:
To decresae vertical spaces above and below the items, you can add something like
,after=\vspace{-\baselineskip},before=\vspace{-0.5\baselineskip}
to the\setlist
command.Here are some additional alternative approaches, as you don't really need all the vertical lines to make your table understandable: