I'm trying to make a nice looking tabu, as part of a hand-in I'm working on. And if I simply use l
,c
or r
as arguments for the columns, it looks good.
However, the problem arises when I try to define a width for the colums (p{3.75cm}
in this case). The vertical lines meant to separate the lower part of the tabu into three parts, disappears.
This is how I'd like the tabu to look, only with pre-defined width for the columns like so:
Hower as you can see, the sepearion lines in this case are gone. How can I get them back?
\documentclass[danish]{report}
\usepackage[a4paper, headheight=14pt]{geometry}
\usepackage[table]{xcolor}
\usepackage{float}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{tabu}
\usepackage{babel}
% Define colors
\definecolor{UMLetBlue}{RGB}{130,130,255}
\definecolor{UMLetGray}{RGB}{189,189,189}
\definecolor{UMLetGreen}{RGB}{130,255,130}
\definecolor{UMLetRed}{RGB}{255,130,130}
\definecolor{UMLetYellow}{RGB}{255,255,130}
\begin{document}
\begin{table}[H]
\centering
\taburowcolors 2 {white .. UMLetGray}
\begin{tabu}{p{3.75cm}|p{3.75cm}|p{3.75cm}l}
\multicolumn{1}{c}{\textbf{Scenarie}} & \multicolumn{1}{c}{\textbf{Resultat}} & \multicolumn{1}{c}{\textbf{Godkendt}} & \\
\hline
A & B & C & \\
D & E & F & \\
G & H & I &
\end{tabu}
\caption{My caption}
\label{my-label}
\end{table}
\begin{table}[H]
\centering
\taburowcolors 2 {white .. UMLetGray}
\begin{tabu}{l|l|ll}
\multicolumn{1}{c}{\textbf{Scenarie}} & \multicolumn{1}{c}{\textbf{Resultat}} & \multicolumn{1}{c}{\textbf{Godkendt}} & \\
\hline
A & B & C & \\
C & D & E & \\
F & G & H &
\end{tabu}
\caption{My caption2}
\label{my-label2}
\end{table}
\end{document}