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