2017-12-18 105 views
0
\begin{tabularx}{\textwidth}{ |X|X|X| } 

    \hline 

    \rowcolor{fapsgrau1}\global\setlength\arrayrulewidth{0.4pt} 

    \textbf{Länge}   & \textbf{Breite}  & \textbf{Höhe} \\ 
    \hline 
    & 115   & \\ 
    & 120   & \\ 
    240 (248)  & 150   & 52 \\ 
    300 (298) (308) & 175   & 200 \\ 
    & 200   & 113 (123) \\ 
    490 (498)  & 240   & 155 \\ 
    (623)   & 300   & 238 (248) \\ 
    & 365   & \\ 
    \hline 
\end{tabularx} 

我该如何更改顶部水平线的代码,并且这些线条继续位于顶部? (无法上传图片)Latex hline不适用rowcolor?

回答

0

你目睹的是PDF阅读器的工件,而不是LaTeX代码。让我们来看看比较3个PDF浏览器之间:

  1. SumatraPDF
  2. Adobe Acrobat Reader DC
  3. Foxit Reader

下面是同一个表的不同的缩放级别:

  • SumatraPDF @ 150%

    enter image description here

  • Adob​​e Acrobat Reader软件DC @ 150%

    enter image description here

  • 福昕阅读器@ 150%

    enter image description here

苏门答腊显示周围的所有行颜色编辑头像,Foxit也一样。 Adobe Reader不显示顶部/左侧规则。


  • SumatraPDF @ 200%

    enter image description here

  • Adob​​e Acrobat Reader软件DC @ 200%

    enter image description here

  • 福昕阅读器@ 200%

    enter image description here

SumatraPDF再次显示了所有的规则,而Adobe Reader和福昕似乎错过在头左侧规则。

正如您应该能够看到的那样,这是缩放,但也取决于观看者。观看者倾向于渲染输出并使其捕捉可见像素。在其中一些计算中,可能会导致视觉效果与实际不同。

不管读者如何,打印都是正确的。