I've been playing around with the dashrule package. But easy as it's shown in the manual, I don't get a proper alignment or width from the dashlines.
\documentclass{article}
\usepackage{dashrule}
\begin{document}
\setlength{\parindent}{0mm}
\rule[0mm]{\linewidth}{1mm}
\hdashrule[0.5ex][x]{\linewidth}{0.5pt}{1.5mm}
\hdashrule[0.5ex][c]{\linewidth}{0.5pt}{1.5mm}
\rule[0mm]{\linewidth}{1mm}
\end{document}
I want the leftmost dash at the left margin and the rightmost dash at the right margin – means: widened gaps – (argument [x])
OR
equal remaining space on the left and right margin (argument [c]). Both should be possible.
Best Answer
You could do this with leaders, but you can instead make TeX count how many copies of the dash will fit when a minimum gap between them is added and substitute this minimum gap with
\hfill
to cover up your tracks.