home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usc!news.service.uci.edu!unogate!mvb.saic.com!info-tex
- From: Donald Arseneau <asnd%TRIUMFRG.BITNET@SHSU.edu>
- Newsgroups: comp.text.tex
- Subject: Re: No Subject (line breaking, justification)
- Message-ID: <0096737E.8A538000.31437@erich.triumf.ca>
- Date: Wed, 27 Jan 1993 03:49:42 PST
- Organization: Info-Tex<==>Comp.Text.Tex Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 39
-
- Someone asked:
- > Is there any way to write a macro which would allow words
- > which can't be hyphenated to be placed on the next line,
- > rather than be given an overfull box? Such a macro would be
- > very useful with narrow columns.
-
- Someone suggested increasing \fontdimen3 (interword stretch)
- and someone else suggested \raggedright.
-
- My impression from
- the question was
- that the test
- should generally
- be flush right,
- except when a very
- long word would
- cause a line to be
- cut short ... like
- this paragraph!
-
- Ignoring the ques-
- tion of whether
- this is desirable,
- here's my sugges-
- tion.
-
- % for every text font:
- \fontdimen2 \font=.66667em % space !
- \fontdimen3 \font=0pt % stretch ! OR: \spaceskip=.66667em minus .44444em
- \fontdimen3 \font=.44444em % shrink !
-
- \rightskip=0pt plus 2em
- \parfillskip=9\hsize minus9\hsize
- \linepenalty 100
-
- These are untested, so the probablt need adjusting...if indded the
- whole idea of keeping lines under compression is feasible!
-
- Donald Arseneau asnd@reg.triumf.ca, asnd@triumfrg (.bitnet)
-