Skip to main content
18-Opal
July 15, 2014
Question

Widows in paragraphs and xrefs

  • July 15, 2014
  • 2 replies
  • 6995 views

Is there a way to set how many characters are left in a row. I have found in the help center widow-control but it does not say much. There must be setting that controls this.

Bryon

2 replies

16-Pearl
July 16, 2014

Widows and orphans are to control situations where lines of text are left dangling at the top or bottom of columns, eg. when the last paragraph of a line wraps over to the next page.

You mention something about characters in a row. I don't really understand what you're getting at, can you please explain?

bfriesen18-OpalAuthor
18-Opal
July 16, 2014

That is what I ment to say I have quite a few situtaions where there is one word on a line.

Bryon

16-Pearl
July 17, 2014

If you are using the APP engine, there is a property for this called fParagraph.orphanWordLength. It defaults to zero (off) but if you make it say 10 then it will not let a word of 9 characters or less appear as the final line in the paragraph.

The way APP solves the problem is to drag over the last word from the previous line so you end up with two words on the final line of the paragraph. If the final line of the paragraph has more than one word then this property has no effect (eg. even if the final line only has two very short words then that will always be allowed).

I don't know if FOSI has a similar feature.

12-Amethyst
July 21, 2014

With a FOSI of XSL-FO stylesheet, Arbortext Editor uses TeX for line-breaking. Actually, TeX builds paragraphs rather than lines. From the Wikipedia article on Tex:

"Many line breaking algorithms use a first-fit approach, where the breakpoints for each line are determined one after the other, and no breakpoint is changed after it has been chosen.[21] Such a system is not able to define a breakpoint depending on the effect that it will have on the following lines. In comparison, the total-fit line breaking algorithm used by TeX and developed by Donald Knuth and Michael Plass considers all the possible breakpoints in a paragraph, and finds the combination of line breaks that will produce the most globally pleasing arrangement."

Note that FOSI's quadding category can be set to influence line-breaking in a block of text (between two textbrks). One setting is suitable for paragraphs, the other for titles. I have attached a page from my book with examples that illustrate this.

Also, the zone characteristic on the hyphen category can be set to influence paragraph-building when output is ragged (not justified). I have attached a page from my book with an example that illustrates this.

However, multiple paragraphs whose last lines have only one word does not sound like something TeX would do. TeX is all about NOT doing that. One example is at http://www.mengensatz.de/blog/?p=89.

16-Pearl
July 21, 2014

That blog article is quite amusing. APP/3B2 has controls for all the things the author complains about!

12-Amethyst
July 22, 2014

Given the short last line in the 3B2 example, I figured there were settings that weren't being used. The TeX supporters assumed otherwise because it was from a published document.

TeX has settings for penalties and demerits that influence line breaking, as shown in the LaTeX code and detailed in The TeXbook. Abortext's TeX engine settings could be changed in a .tmx file, if desired. However, I can't recall any FOSI formatting application that required that.