TeX

Synopsis edit

\tolerance=[number]

Description edit

A parameter that tells TeX's line-breaking algorithm how much badness is allowable in a paragraph. [number] can range from 0 to 10000, and there are no units.

As TeX breaks paragraphs into lines, the first attempt that produces acceptable results according to \tolerance are used[1]; therefore, increasing this value will produce faster results, while allowing additional whitespace on each line.

Decreasing this value will improve the results of typesetting where better results are possible, but may also produce poor results with overfull boxes where no line-breaking combination can be found to meet this tolerance.

\tolerance should generally be set above \pretolerance, which attempts to set the paragraph without hyphenation if the results are good enough; setting without hyphenation is faster as fewer breakpoints must be considered.

Examples edit

  1. "(La)TeX makes overfull lines". The TeX FAQ. Retrieved 2024-03-28.