Quantcast
Channel: How to get horizontal black line when coloring cells? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

How to get horizontal black line when coloring cells?

$
0
0

I have the following table with an arrow showing the missing black horizontal black line:

enter image description here

Here is the relevant code, I am wondering how do I get a black horizontal line where there is one missing?

\MyNumtwo{15.24}\\ \hline\multicolumn{14}{|>{\columncolor[gray]{.8}}c|}{\textbf{$A\times{}B\pm{}C$} Program} \\ \hline\textbf{Number of Incidents} & 512 &

NOTE: I just realized that if you zoom in, the line is actually there. But this is still potentially be a problem if someone is reading the PDF and doesn't see the line on their computer. The line appears on the printout, but it appears to be ~1 pixel thinner than other horizontal lines.

If anyone knows a fix, please let me know.

Update: Here is my code:

\usepackage{graphicx}  \graphicspath{/./}                  \usepackage{textcomp}\usepackage{pgf}\usepackage{xcolor,colortbl}\usepackage{subfigure} \usepackage{multirow}\usepackage{booktabs}\usepackage{array}\begin{document}\newcolumntype{F}{>{\centering\arraybackslash}m{1.65cm}}\newcolumntype{L}{>{\centering\arraybackslash}m{.76cm}}\begin{table*}[t]\small\caption{Bunch of stuff in a table}\centering\begin{tabular}{|F|L|L|L|L|L|L|L|L|L|L|L|L|L|}\hline%\multirow{4}{*}%{A} & \multicolumn{9}{c|}{Stuff} \\ & \multicolumn{13}{c|}{\textbf{More junk}} \\ \cline{2-14}\vspace{-10pt}\textbf{Junk and stuff} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \textbf{\rotatebox[origin=c]{90}{Garbage} \rotatebox[origin=c]{90}{Garbage}} & \hline%\textbf{Stuff here} & x & & x & x & x & x & x & x & x & x & x & x & x\\ %\textbf{More stuff here} & 0 & 5.5 & 5.5 & 5.16 & 5.5 & 1.5 & 5.5 & 5.36 & 5.5 & 5.5 & 5.84 & 1.5 & 5.5\\  \textbf{Stuff Here} & - & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.5} & \textit{.1} & \textit{.1}\\  \hline\textbf{things} & \textit{.5} &\textit{.5} &\textit{.5} &\textit{.5} &\textit{.2} &\textit{.2} &\textit{.3} &\textit{.4} &\textit{.5} &\textit{.5} &\textit{.5} &\textit{.5} &\textit{.5} \\\hline\textbf{stuff} & - &\textit{0} &\textit{0} &\textit{0} &\textit{0} &\textit{0} &\textit{0} &\textit{0} &\textit{5} &\textit{9} &\textit{1} &\textit{1} &\textit{11} \\\hline\textbf{things} &1 &1 &1 &1 &1 &1 &1 &1 &1 &1 &1 &1 &1 &1 \\\hline\textbf{Number} & - &\textit{1.111} &\textit{111.111} &\textit{111.111} &\textit{111.111} &\textit{111.111} &\textit{111.111} &\textit{111.111} &\textit{111.111} &\textit{111.111} &\textit{9111.111} &\textit{1111} &\textit{111.1}\\ \hline\multicolumn{14}{|>{\columncolor[gray]{.8}}c|}{\textbf{$A\times{}B\pm{}C$} Program} \\ \hline\textbf{111 of 111} & 111 &111 &111 &111 &111 &111 &111 &111 &111 &111 &111 &111 &111\\ \hline\end{tabular}\end{table*}\end{document}

Viewing all articles
Browse latest Browse all 2

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>