Why are there white bars between the leaders and each of the rules in this code when compiled with LuaTeX to a PDF file? When compiled (with LuaTeX) to a DVI file no white bars can be seen.
a \vrule width10pt\leaders\vrule\hfill\vrule width10pt\ b
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityWhy are there white bars between the leaders and each of the rules in this code when compiled with LuaTeX to a PDF file? When compiled (with LuaTeX) to a DVI file no white bars can be seen.
a \vrule width10pt\leaders\vrule\hfill\vrule width10pt\ b
I do not get white bars:
\pdfobjcompresslevel=0
\pdfcompresslevel=0
a \vrule width10pt\leaders\vrule\hfill\vrule width10pt\ b
\bye
Also the PDF page stream code looks correct:
q
1 0 0 1 100.227 759.927 cm
0 0 9.963 6.918 re f
Q
q
1 0 0 1 110.19 759.927 cm
0 0 410.992 6.918 re f
Q
q
1 0 0 1 521.182 759.927 cm
0 0 9.963 6.918 re f
Q
Horizontal positions
Therefore it is very likely an issue with the PDF viewer, which you are using.
However, the three rules can be merged to one rule:
a \leaders\vrule\hskip 20pt plus 1fill\relax\ b
PDF code shows one rule:
q
1 0 0 1 100.227 759.927 cm
0 0 430.917 6.918 re f
Q
-dGraphicsAlphaBits=4
to -dGraphicsAlphaBits=1
, the grey line is gone.
Jun 7, 2014 at 20:27