🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #429

Re: Justifying lines in LaTeX (hyphenation, \linebreak)

#429
From: Donald Arseneau
Date: Sat, 25 Jul 1992 08:32
45 lines
1916 bytes
In article <1992Jul25.043158.29496@cbnewsj.cb.att.com>, vrr@cbnewsj.cb.att.com (veenu.r.rashid) writes...
> 
>Can anyone tell me how to break a line in LaTeX and still
>have it justified?  The line looks as follows:
> 
>The residuals give rise to est-   <- bad line break
>imates of ...

Really!?  TeX knows that estimates is hyphenated as es-ti-mates.

>after inserting linebreak (\\):
> 
>The residuals give rise to	  <- ragged right margin
>estimates of ...

You said it yourself "linebreak"  give rise to\linebreak estimates

But this is a last resort in fixing the appearance.

You should have \sloppy in effect.  
Then to reduce the frequency of hyphenation,  say
\hyphenpenalty=200  (NOT \setcounter{hypenpenalty}{200} !!!*)

A good way to prevent a particular hyphenation is to say \mbox{estimates}
or estimates\/.


(*) \setlength{\command}{123pt} vs \setcounter{nameonly}{123} is one
of the worstest syntax decisions I have ever seen!


> 
> 
>I am using SliTeX macro package with LaTeX, so I have a
>lot of these!  Is there a way to write a macro to justify
>the right edge, perhaps by equally inserting \vspace between
>the words, to justify the lines?
> 
>Please help!
> 
>Email to vrr@cbnewsj.att.com.
> 
> 
>Thanks very much,
>Veenu
Technical Details
Message-ID: <25JUL199201320450@msr.triumf.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ubc-cs!unixg.ubc.ca!msr.triumf.ca!asnd
References: <1992Jul25.043158.29496@cbnewsj.cb.att.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ubc-cs!unixg.ubc.ca!msr.triumf.ca!asnd
From: asnd@msr.triumf.ca (Donald Arseneau)
Subject: Re: Justifying lines in LaTeX (hyphenation, \linebreak)
Message-ID: <25JUL199201320450@msr.triumf.ca>
News-Software: VAX/VMS VNEWS 1.41    
Keywords:  hyphenation \linebreak \\ \hypenpenalty
Sender: news@unixg.ubc.ca (Usenet News Maintenance)
Nntp-Posting-Host: msr.triumf.ca
Organization: TRIUMF: Tri-University Meson Facility
References: <1992Jul25.043158.29496@cbnewsj.cb.att.com>
Distribution: usa
Date: Sat, 25 Jul 1992 08:32:00 GMT
Lines: 45