我有下表,其中的箭头显示缺失的黑色水平黑线:
这是相关代码,我想知道如何在缺少一条水平线的地方得到一条黑色的水平线?
\MyNumtwo{15.24}\\
\hline
\multicolumn{14}{|>{\columncolor[gray]{.8}}c|}{\textbf{$A\times{}B\pm{}C$} Program} \\
\hline
\textbf{Number of Incidents} &
512 &
注意:我刚刚意识到,如果放大,线条确实在那里。但如果有人在阅读 PDF 时没有在电脑上看到这条线,这仍然可能是一个问题。这条线出现在打印输出上,但它看起来比其他水平线细约 1 个像素。
如果有人知道解决方法,请告诉我。
更新:这是我的代码:
\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}
答案1
请始终发布完整的文档,而不仅仅是片段,如果您已将其添加\documentclass{article}
到代码中并对其进行了测试,您就会发现它会产生错误:
! Extra alignment tab has been changed to \cr.
(两次)
一旦修复了这个问题,剩下的问题实际上就是 acrobat 中的失败,xpdf 的表现更好,如左侧所示:
但是,您可以通过在灰色面板上绘制规则来使杂技演员更容易操作:
\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} &
然后 crobat 做得更好: