![]() |
Line breaking primitives | ![]() |
A simple document is a sequence of logical paragraphs, one for each subtree of a document or para node. Paragraphs whose width exceed the available horizontal space are broken into physical lines by the hyphenation algorithm. By default, hyphenated lines are justified: horizontal spaces can be shrunk or extended in order to produce a good-looking layout.
This is a deprecated tag in order to split a logical paragraph into several logical paragraphs without creating explicit subtrees for all paragraphs.
We recall that logical paragraphs are important structures for the typesetting process. Many primitives and environment variables (vertical spacing, paragraph style, indentation, page breaking, etc.) operate on whole paragraphs or at the boundaries of the enclosing paragraph.
This is a tag which will become deprecated as soon as the para primitive will be correctly implemented. Its usage is similar to the new-line tag with the difference that we start a new logical paragraph unit instead of a new logical paragraph.
Currently, the next-line tag can also be used in order to force a line break with the additional property that the line before the break is not justified or filled.
Print an invisible space with zero hyphenation penalty. The line breaking algorithm searches for the set of hyphenation points minimizing the total penalty, so line breaking is much more likely to occur at a line-break than anywhere else in its vicinity.
Unlike next-line, this is a hint which may or may not be obeyed by the typesetter, and it does not prevent the previous line from being filled.
Set an hyphenation point with an infinite penalty. That is useful when the hyphenation patterns for a language fall short of preventing some forbidden patterns like “arse-nal” or “con-genital”. An alternative way to prevent breaks is to use the rigid tag.
Typeset content as usual line content, but forbid line breaks and hyphenation inside it. Contrary to rigid, the content is not turned into a single atomic box, so that the usual spacing rules still apply to its items. The tag accepts an optional second argument, which is currently ignored.
Override the hyphenation of a word. The pattern is a string in which the admissible hyphenation points are marked by dashes, such as hy-phen-ation. With a single argument, the word is typeset (with its dashes removed) and may only be hyphenated at the indicated points. With two arguments, the content is typeset as usual, except that each occurrence of the word pattern (without dashes) is hyphenated as indicated; other words keep the hyphenation of the current language.