home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / text / tex / 14375 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!paladin.american.edu!howland.reston.ans.net!usc!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!rjekel
  3. From: rjekel@ncsa.uiuc.edu (Ross Jekel)
  4. Subject: font switch at a line break
  5. Message-ID: <1992Dec21.190532.21715@ncsa.uiuc.edu>
  6. Originator: rjekel@consult.ncsa.uiuc.edu
  7. Sender: rjekel@ncsa.uiuc.edu (Ross Jekel)
  8. Organization: Nat'l Ctr for Supercomp App (NCSA) @ University of Illinois
  9. Date: Mon, 21 Dec 1992 19:05:32 GMT
  10. Lines: 29
  11.  
  12. I began reading a book yesterday that has an interesting format
  13. for the first line of the first paragraph of each chapter and was
  14. wondering how this could best be done in TeX.
  15.  
  16. The paragraph starts with an initial and the rest of the first line is
  17. in a small caps font.  The second line then switches back to your
  18. normal roman font.  I wouldn't have really noticed this except the
  19. first line of the first chapter ended in a hyphenated word with the
  20. first part of the word in small caps and the second part on the second
  21. line in normal type; it ended up looking something like this (SUG-
  22. gest).
  23.  
  24. Although this (in my opinion) is not very good style, I still think it
  25. is an interesting problem.  How could I use TeX's line breaking algorithm
  26. to automatically switch the font at the end of the first line?
  27. I thought about making a space active and fussing with penalties and
  28. stuff, but I really didn't get much further than that.  I also wasn't
  29. sure how to switch fonts if there was a word that was hyphenated at the
  30. end of the line.
  31.  
  32. I would be interested in any solutions to this problem that work, as
  33. long as they don't require you to guess how many words are going to
  34. fit on the first line.
  35.  
  36. Either emailing or posting is fine.
  37.  
  38. Thanks.
  39. Ross Jekel
  40. rjekel@ncsa.uiuc.edu
  41.