[texhax] have a piece of thest ragged right à the end of a paragraph

Donald Arseneau asnd at triumf.ca
Mon Sep 19 21:28:41 CEST 2011


"Philip TAYLOR (Webmaster, Ret'd)" <P.Taylor at Rhul.Ac.Uk> writes:

> Paul Isambert wrote:
> 
> > \def\toRight#1{{\unskip\nobreak\hfil\penalty50
> >     \hskip2em\hbox{}\nobreak\hfil #1
> >     \parfillskip=0pt \finalhyphendemerits=0 \par}}
> > 
> > Explained in the _TeXbook_, page 106:
> 
> I am unconvinced that the solution is optimal, although
> it is undoubtedly robust.  I tried it with a number of
> paragraphs of ever-increasing length to see how it
> coped with all possible situations, and found the
> following anomaly :

What a very long-winded way to say "I think 2em is too large
for the minimum separation".  Optimal is in the eye of the
beholder.


Donald Arseneau                          asnd at triumf.ca


More information about the texhax mailing list