Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm generating an index with dotfills, such that my ind looks like this (extract):

\item\raggedright l\IeC {\`e}pre\dotfill \transform{21}
\item\raggedright libre arbitre\dotfill \transform{1}
\item\raggedright louange\dotfill \transform{245}, \transform{253}

In this case, \transform{245} and \transform{253} just fit on the line with louange, resulting in this:

index touching

Here is a MWE reproducing such a behavior:

\documentclass{article}

\begin{document}

\parbox{3.4cm}{
\LaTeX\dotfill powerful, useful
}

\end{document}

which gives me:

dotfill... without dots

How could I ensure a minimal distance between louange and the first entry, having 9 septembre move to the next line in this case?

share|improve this question
    
do you want 9 septembre to be continued on the left, or set flush right? –  barbara beeton Dec 13 '12 at 20:33
add comment

1 Answer

up vote 10 down vote accepted
 {\def\hfill{\hskip 10pt plus 1fill}\dotfill}

will be at least 10pt.

share|improve this answer
    
That is perfect, thank you! –  ℝaphink Dec 13 '12 at 19:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.