cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Start your engines! APP and TeX duke it out / Part 2

ptc-1908075
1-Newbie

Start your engines! APP and TeX duke it out / Part 2

LISTS IN TABLE CELLS
The APP Styler output shows extraneous space above lists in table cells.The TeX output is correct: the baselines in the adjacent table cells are aligned.
LINE BREAKSIt is important to understand that TeX and APP handle H&J differently. TeXbuilds paragraphs, whereasAPP builds lines. The TeX Book includes a detailed explanation of this. Wikipedia provides the followingexplanation:
"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, andfinds the combination of line breaks that will produce the most globally pleasing arrangement." [emphasis mine]

The title and subtitle on the first page of the PDF files provide an excellent example. It is plain to see the TeX line breaks are better. And the rest of thepages of the document continue to illustrate the superiority of TeX's total-fit approach, as described below.
ONE COLUMN LAYOUT
NO HYPHENATION, RAGGED RIGHT
APP Stylerno hyph rr.pdfThe ragged right, unhyphenated output with out-of-the-box fixed word spacing is very ragged, with quite a few short lines and a number of one-word last lines.
APP Stylerno hyph rr wordsp.pdfThe ragged right, unhyphenated output with variable word spacing is better than with fixed word spacing, but there are still some short lines and some tight lines. Overall, the line endings are not as aesthetically pleasing as in the TeX output.
Genfos no hyph rr.pdfThe ragged right, unhyphenated TeX output looks good, with no unacceptably short lines.
HYPHENATED, RAGGED RIGHT

APP Styler hyph rr.pdf(fixed word spacing)
The ragged right, hyphenated output with fixed word spacing has a better ragged edge than without hyphenation. However, despite about 35 hyphens, the APP Styler outputexhibits some unacceptably short lines.APP Styler hyph rr wordsp.pdf(variable word spacing)Although hyphenation is enabled, there are just four hyphenations,all in table cells,only one of which is necessary. It is not clear why there is not more hyphenation, since there are a number of short lines throughout the document.It appears that using variable word spacing discourages hyphenation.
Genfos hyph rr.pdfThe TeX output looks good, with just 2 hyphens, both necessary.
HYPHENATED, JUSTIFIED

APP Stylerhyph justified.pdf(fixed word spacing)With fixed word spacing, the output has more than 33 hyphenations, but there are still several loose lines, especially next-to-last lines.

APP Stylerhyph justified wordsp.pdf(variable word spacing)The output with variable word spacing has only four hyphenations,all in table cells,only one of which is necessary. It is not clear why there is not more hyphenation, since there are loose lines throughout the document. It appears, though, that using variable word spacing discourages hyphenation.
Genfoshyph justified.pdf
TheH&Jis excellent, with ~23 hyphenations.continued in Part 3
0 REPLIES 0
Top Tags