Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LaTeX: raggedright but with hyphenation ???

1,012 views
Skip to first unread message

Fritz Zaucker

unread,
May 3, 1995, 3:00:00 AM5/3/95
to
Hi TeX/LaTeX GuRus,

How can I have a paragraph flushleft (and raggedright), but with
hyphenation still turned on? I couldn't figure it out.

I would appreciate E-mail reply.

Thanks very much,

Fritz

Scott D. Anderson

unread,
May 4, 1995, 3:00:00 AM5/4/95
to Fritz Zaucker

I think

{\raggedright\rightskip=0pt plus 1in\sloppy

text text text text text
text text ...

}

will do the trick. The idea is that \raggedright lets TeX make the right margin
infinitely ragged, so it never has to pay a hyphenpenalty. The setting of
\rightskip makes TeX try to keep the rightmargin less than 1 inch wide, which
gives it an incentive to hyphenate.

At least, this works for me. If there's a better way, I'm sure someone will
correct me. :-)

Scott D. Anderson
ande...@cs.umass.edu

Guido Sawade

unread,
May 4, 1995, 3:00:00 AM5/4/95
to Fritz Zaucker
On 3 May 1995, Fritz Zaucker wrote:

> How can I have a paragraph flushleft (and raggedright), but with
> hyphenation still turned on? I couldn't figure it out.

Try
\rightskip=0pt plus .2\hsize

---
Guido Sawade <saw...@physik.tu-berlin.de>
TU Berlin, Opt.Inst. PN0-1, 10623 Berlin, FRG

0 new messages