T.R | Title | User | Personal Name | Date | Lines |
---|
523.1 | Have you tried <KEEP>? | CRAYON::GENT | Party gone out of bounds -- B52's | Thu Jun 18 1987 15:41 | 4 |
| If you only want to avoid bad hyphenation, won't <KEEP> be sufficient?
--Andrew
|
523.2 | <KEEP> the responses coming | PSYCHE::ILSLEY | Yoyodyne consultant.... | Fri Jun 19 1987 14:50 | 11 |
| -- If you only want to avoid bad hyphenation, won't <KEEP> be sufficient?
That's part of the answer, but I also want to correct bad line
breaks. For example, I don't want to end the line of a title with
"And," or with an article ("The," etc).
Can you use several <KEEP>s to define line breaks? For example
<head1>(<keep>(the first line of text)<keep>(the second line of
text))
|
523.3 | Yes, but... | CRAYON::GENT | Party gone out of bounds -- B52's | Fri Jun 19 1987 15:20 | 15 |
| Yes, I don't see why you couldn't do that.
However, you must give TeX some leeway or else it will probably
complain about lines to long or short. I suggest you use <KEEP>
sparingly and for as short a text string as possible. For example,
if you have something like "...How to Use the Foo Utility..."
and do not want the line broken after "How", "to", or "the", you
can use:
"...<KEEP>(How to Use) <KEEP>(the Foo) Utility..."
Using <KEEP> for entire lines will quickly get you into trouble
when you process the file for different output devices.
--Andrew
|
523.4 | Not quite there.. | PSYCHE::ILSLEY | Yoyodyne consultant.... | Fri Jun 19 1987 18:07 | 17 |
| -- I suggest you use <KEEP>
sparingly and for as short a text string as possible. For example,
if you have something like "...How to Use the Foo Utility..."
and do not want the line broken after "How", "to", or "the", you
can use:
"...<KEEP>(How to Use) <KEEP>(the Foo) Utility..."
I tried using short text strings with <keep>, but all the strings ended up
on the first line, and I did get TeX errors for long lines. I didn't space
before the <keep> tag -- I'll try again.
You can also use <final_cleanup>(line_break) to break <chapter> and <head>
titles. However, this method also breaks the titles in the TOC. If you use
<final_cleanup>(line_break) with <figure> captions, the first line is
right-justified in text, but not in the TOC (at least in the Hardware doctype).
|
523.5 | <NOKEEP>(KEEP) | BUNSUP::LITTLE | Todd Little NJCD SWS 323-4475 | Tue Jun 23 1987 16:44 | 7 |
| Are there hard and fast rules that can be applied here? It seems
that if this is the case, then possibly DOCUMENT should handle this
just as TeX handles hyphenation. The idea of having to load up
your headers with <KEEP> seems pretty messy, and bound to cause
another whole set of problems.
-tl
|
523.6 | <KEEP> is no substitute | PNEUMA::ILSLEY | Yoyodyne consultant.... | Wed Jun 24 1987 15:33 | 8 |
| <KEEP> doesn't work as a replacement for <line> in headers. Document tends
to cram everything on the first line, causing TeX error messages. In other
words if the part of a <Keep> text string fits on the current line, Document
tries to cram the complete string on that line, not wrap the string to the
next line.
I'll probably use <final_cleanup>(line_break) in chapter and head tags, then
edit the contents .tex file.
|
523.7 | what doctype? | CLOSET::ANKLAM | | Wed Jun 24 1987 16:06 | 13 |
|
I would like to know what doctype you are using. Most headings are
set using the control sequence \rrag which usually does a pretty
good job of wrapping, both in the body of text and in the table
of contents. Note that a big problem with using <keep> is that the
attribute is passed to the table of contents (as would a <line>
if we were to make that work) so you'd get breaks you wouldn't
want in the table of contents.
Maybe we can approach the problem on a doctype basis.
patti
|
523.8 | Hardware doctype | PNEUMA::ILSLEY | Yoyodyne consultant.... | Thu Jun 25 1987 15:08 | 4 |
| I'm using the Hardware doctype. Do you mean most doctypes do a good job
of wrapping when you use <KEEP>? That would help. As for the TOC, I don't
mind cleaning up the .tex file.
|