411 REFERENCE · Wikibooks
TeX/tolerance
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
TeX
Synopsis
\tolerance=[number]
Description
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(La)TeX makes overfull lines https://texfaq.org/FAQ-overfull 2024-03-28 The TeX FAQ en-US; 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