Suppose I have an alignment with two columns of centered text. How can I add a \dotfill
between these two columns?
If I do this
\vbox{\halign{%
\hfil#\leaders\hbox to 5pt{\hfil.\hfil}\hskip 20pt plus 1 fil%
&\leaders\hbox to 5pt{\hfil.\hfil}\hfil#\hfil\cr%
abc&defgh\cr%
a&b\cr%
abc&d\cr%
}}
I will get a random extra space between the dots at the border of the two columns, because the two adjacent \leaders
commands each align to the left end of their enclosing hbox.
Is there a way to
- have halign use multiples of a specified unit for the column width,
- have
\leaders
(or maybe\cleaders
) aligned to the right end of the enclosing hbox, or - align leaders to an outer hbox rather than the directly enclosing hbox?
I know that I could work around the problem by using fixed-width columns rather than halign.
\bye
to the end and compile inpdfTeX
.tex
orpdftex
...plaint-tex
tag, sorry for inconvenience. I've removed my comment.