Newsgroups: comp.text.tex
> Is their Latex command for a dotted line? or I just use a bunch of > \ldots...? thanks
\dotfill
Magnus
> Thanks, I've trying to figure out how to limit the dot lines to only > half of the page. So far no success yet.
> perhaps \dotfill\hfill could do the trick
No. The glue of \hfill is discardable if nothing follows on the line, but putting an empty \hbox{} afterwards does the trick:
\dotfill\hfill\hbox{}
For a general solution to get a dotfill of arbitrary length, the following macro can be useful:
\newcommand{\dotrule}[1]{% \parbox[t]{#1}{\dotfill}}
Removing the [t] will center the line vertically somewhat. To get the requested length, the following will work and is probably easier to understand than the previous solution:
\dotrule{0.5\textwidth}
Magnus
> No. The glue of \hfill is discardable if nothing follows on the line, > but putting an empty \hbox{} afterwards does the trick: > > \dotfill\hfill\hbox{}
Of course… I should never answer a question …
I often used for such thing : \dotfill\hfill\null, which this time do actually the trick ;=)
Mathieu GOUTELLE