home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / tex / 15509 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. 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
  2. From: Donald Arseneau <asnd%TRIUMFRG.BITNET@SHSU.edu>
  3. Newsgroups: comp.text.tex
  4. Subject: Re: No Subject (line breaking, justification)
  5. Message-ID: <0096737E.8A538000.31437@erich.triumf.ca>
  6. Date: Wed, 27 Jan 1993 03:49:42 PST
  7. Organization: Info-Tex<==>Comp.Text.Tex Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 39
  10.  
  11. Someone asked:
  12. > Is there any way to write a macro which would allow words
  13. > which can't be hyphenated to be placed on the next line,
  14. > rather than be given an overfull box? Such a macro would be
  15. > very useful with narrow columns.
  16.  
  17. Someone suggested increasing \fontdimen3 (interword stretch)
  18. and someone else suggested \raggedright.
  19.  
  20. My impression from
  21. the  question  was
  22. that  the  test
  23. should   generally
  24. be  flush   right,
  25. except when a very
  26. long  word   would
  27. cause a line to be
  28. cut short ... like
  29. this paragraph!
  30.  
  31. Ignoring the ques-
  32. tion  of   whether
  33. this is desirable,
  34. here's  my sugges-
  35. tion.
  36.  
  37. % for every text font:
  38. \fontdimen2 \font=.66667em  % space   !
  39. \fontdimen3 \font=0pt       % stretch ! OR: \spaceskip=.66667em minus .44444em
  40. \fontdimen3 \font=.44444em  % shrink  !
  41.  
  42. \rightskip=0pt plus 2em
  43. \parfillskip=9\hsize minus9\hsize
  44. \linepenalty 100
  45.  
  46. These are untested, so the probablt need adjusting...if indded the
  47. whole idea of keeping lines under compression is feasible!
  48.  
  49. Donald Arseneau        asnd@reg.triumf.ca,   asnd@triumfrg (.bitnet)
  50.