home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13316 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!paladin.american.edu!news.univie.ac.at!vm.univie.ac.at!A8131DAL
  3. From: A8131DAL@vm.univie.ac.at (Peter Schmitt)
  4. Subject: Re: line break after every character, how?
  5. Message-ID: <1992Nov19.160217.6278@newssrv.edvz.univie.ac.at>
  6. Sender: news@newssrv.edvz.univie.ac.at (News System - Vienna University)
  7. Nntp-Posting-Host: helios.edvz.univie.ac.at
  8. Organization: University of Vienna
  9. Date: Thu, 19 Nov 1992 15:47:09 GMT
  10. Lines: 38
  11.  
  12.  I want to allow TeX to break lines after every character, without inserting
  13.  hyphenation characters (hyphens). This should only happen in a controlled
  14.  environment.
  15.  
  16.  The background is that I would like to print the labels of figures and
  17.  equations (if in draft mode) in the margin of a paper-to-be to make
  18.  referencing easier. This works quite well so far, but whenever labels are
  19.  longer that the margin is wide (and this is most of the time), then they just
  20.  stick into the body of the text. I would prefer it if they were broken over
  21.  several lines without hyphenation. Of course, labels do not contain spaces
  22.  
  23. In a general sense this is still a hyphenation problem:
  24. Therefore it is probably most natural tu use TeX's hyphenation algorithm
  25. to solve this, too.
  26. Since TeX 3 it is possible to have several hyphenation patterns:
  27. Therefore:
  28.  
  29. make a new format file, loading to the following patterns to an
  30. unused language:
  31.  
  32. \language 9 (say)
  33. \patterns{.1 1a 1b [etc.] 1z}
  34.  
  35. this allows hyphens at any position
  36.  
  37. then include in the definition of \label:
  38.  
  39. \language 9 \hskip0pt
  40.  
  41. (you must start each paragraph with a glue item to allow hyphenation of the
  42. first word)
  43.  
  44. if you don't like the hyphen set \hyphenchar [font] 32  (space)
  45.  
  46. you may also set \righthyphenmin1
  47.  
  48. Hope this helps
  49. Peter
  50.