乳胶hline不适用于rowcolor?

问题描述 投票:0回答:1
\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}

我如何更改顶部的hline被看到的代码以及行继续到顶部? (无法上传图片)

latex tabular highline
1个回答
0
投票

您目击的是PDF查看器的工件,而不是LaTeX代码。让我们看看三个PDF查看器之间的比较:

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

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

  • SumatraPDF @ 150% enter image description here
  • Adobe Acrobat Reader DC @ 150% enter image description here
  • 福昕阅读器@ 150% enter image description here

苏门答腊显示彩色标题周围的所有线条,Foxit也是如此。 Adobe Reader不显示顶部/左侧规则。


  • SumatraPDF @ 200% enter image description here
  • Adobe Acrobat Reader DC @ 200% enter image description here
  • 福昕阅读器@ 200% enter image description here

SumatraPDF再次显示所有规则,而Adobe Reader和Foxit似乎错过了标题中的左边规则。

正如你应该看到的,它是缩放,但也依赖于观看者。观看者倾向于渲染输出并使其与可见像素对齐。在某些计算中,可能存在舍入,导致视觉效果与实际不同。

无论读者如何,打印都是正确的。

© www.soinside.com 2019 - 2024. All rights reserved.