Sorry for this simple question. I am trying to color some cells of my table. Unfortunately, if I color two neighbouring cells, the lines of the table disappear. I have found some questions about this (here or here) They offer using \hhline, but I don't know how I am supposed to use it.

\multicolumn{5}{|c|}{Type} \\
  & A  &    B & C & D \\
    X & 53,2\%  &  \cellcolor[gray]{.9}51,6\%  &  \cellcolor[gray]{.9}49\% & 49\% \\ 
    Y  & 53,8\%  &  52,2\%  & 49\% & 49\% \\

enter image description here

Can anyone help me with this?

closed as off-topic by Troy, Johannes_B, Stefan Pinnow, moewe, TeXnician Dec 24 '17 at 8:26

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • You mean vertical lines? Don't use them. But they don't disappear. It is only a pdf viewer issue. – user11232 Apr 16 '14 at 7:30
  • Are you suggesting to leave the code as it is? Do the lines appear on the printed versions then? – DatamineR Apr 16 '14 at 7:32
  • If you are talking about vertical lines, yes, they should appear in print. I see them in sumatrapdf. – user11232 Apr 16 '14 at 7:34
  • As such your code gives me this in sumatrapdf: i.stack.imgur.com/SyMao.png – user11232 Apr 16 '14 at 7:36
  • 4
    I'm voting to close this question as off-topic because it is a viewer issue. – Troy Dec 24 '17 at 4:45

Browse other questions tagged or ask your own question.