3

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}
9
  • 1
    Could you provide a more detailed minimal working example (MWE) that can be cut and pasted into an empty document so people can look at the problem and try things out? meta.tex.stackexchange.com/questions/228/… has some suggestions that you might find helpful. Aug 10, 2013 at 20:37
  • I pasted my code with everything redacted. Hopefully I didn't introduce any bugs.
    – Veridian
    Aug 10, 2013 at 20:49
  • 1
    Don't forget that we need the preamble as well. Document classes and the packages you use are important. Cut the example down to the simplest possible document that gives the problem that you want to fix. Aug 10, 2013 at 21:51
  • Are you sure this is not just some effect from your viewer? Try zooming in (using different zoom ratios) the page with the table to see if the rule really is there (you could also print the page with the table to make sure). Aug 10, 2013 at 22:36
  • @GonzaloMedina, I already addressed what you said, read the question completely please.
    – Veridian
    Aug 10, 2013 at 23:26

1 Answer 1

2

Please always post complete documents, not just fragments, if you had added \documentclass{article} to your code and tested it you would have seen that it generated errors:

! Extra alignment tab has been changed to \cr.

(twice)

Once that is fixed, the remaining problem is really a failure in acrobat, xpdf does better as may be seen on the left here:

enter image description here

You can however make it easier for acrobat by drawing the rule on top of the grey panel:

\textit{111.1}\\ 
\multicolumn{14}{|>{\columncolor[gray]{.8}}c|}{\textbf{$A\times{}B\pm{}C$} Program} \\
\noalign{\vskip-12pt}
\hline 
\noalign{\vskip12pt}
\hline
\textbf{111 of 111} & 

acrobat then does better:

enter image description here

4
  • I wonder how you aquire the 12pt? How can I get the value when I have a paragraphed row (columntype p{10cm})? Jun 29, 2018 at 13:10
  • @PeterMiehle it's \normalbaselineskip I would guess (5 years later:-) Jun 29, 2018 at 13:12
  • sorry asking questions in comments on a 5 year old answer doesn't work:-) Make an example and ask a new question I can't guess what you mean otherwise Jun 29, 2018 at 13:54
  • thanks. I just came over this answer after I ask already. I delete my second question. Jun 29, 2018 at 13:59

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.