How can I make a horizontal dashed line in LaTeX?
Just writing lots of single dashes results in a continuous horizontal line.
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 communityWith Plain leaders, for example:
\def\dashfill{\cleaders\hbox{-}\hfill}
\hbox to \hsize{\dashfill\hfil}
\bye
Changing the spacing is then a matter of redefining the dashfill's hbox:
\def\dashfill{\cleaders\hbox to 2em{-}\hfill}
What about adding spaces between the dashes: - - - - - -
? When I try it, it works just fine. Or do you want something else?