1
\begin{tabular}{| p{10cm} | c |}
\hline
& \\
{\bf Requirement:} & {\bf Categorie:} \\
& \\
\hline
& {\cellcolor{green}}\\
text & {\cellcolor{green}{\bf Must Have}} \\
& {\cellcolor{green}}\\
\hline
& {\cellcolor{green}}\\
text & {\cellcolor{green}{\bf Must Have}} \\
& {\cellcolor{green}}\\
\hline
& {\cellcolor{green}}\\
text & {\cellcolor{green}{\bf Must Have}} \\
& {\cellcolor{green}}\\
\hline
& {\cellcolor{orange}}\\
text & {\cellcolor{orange}{\bf Could Have}} \\
& {\cellcolor{orange}}\\
\hline
\end{tabular}

enter image description here

One of the \hline commands isn't comming through? See my picture for the error.

  • Try to zoom into the PDF -- I think the line is there, but this is a well-known PDF viewer issue – user31729 Apr 16 '16 at 9:49
  • wow, I generated the PDF, now I do see the line indeed. Thank you! @ChristianHupfer – Pim Apr 16 '16 at 9:51
5

This is a known viewer issue, as also pointed out by @ChristianHupfer. In this case, you can increase the \arrayrulewidth or just open with another viewer.

\documentclass[12pt,a4paper]{article}
\usepackage{colortbl}
\usepackage{xcolor}
\begin{document}

\setlength{\arrayrulewidth}{1.5pt}
\begin{tabular}{| p{10cm} | c |}
\hline
& \\
{\bf Requirement:} & {\bf Categorie:} \\
& \\
\hline
& {\cellcolor{green}}\\
text & {\cellcolor{green}{\bf Must Have}} \\
& {\cellcolor{green}}\\
\hline
& {\cellcolor{green}}\\
text & {\cellcolor{green}{\bf Must Have}} \\
& {\cellcolor{green}}\\
\hline
& {\cellcolor{green}}\\
text & {\cellcolor{green}{\bf Must Have}} \\
& {\cellcolor{green}}\\
\hline
& {\cellcolor{orange}}\\
text & {\cellcolor{orange}{\bf Could Have}} \\
& {\cellcolor{orange}}\\
\hline
\end{tabular}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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