This function has not been fully integrated into the long-term Wolfram Language, and is subject to change.


is an option for selections that sets parameters used for calculating where automatic line breaks should be inserted.


  • The automatic linebreaking of expressions uses a complex algorithm that takes into account many factors that affect the length of lines. Each such factor is assigned a weight, which is then used as a parameter in a global optimization routine that determines the exact positions of the line breaks. By adjusting the parameters, you can control the relative importance given to the different linebreaking criteria. For most cases, the default settings provide a good solution, and it is not necessary to adjust the parameters yourself.
  • LinebreakAdjustments is specified as a list of five numbers: LinebreakAdjustments->{a, b, c, d, e}. Here, a specifies the optimal line width to aim for, expressed as a percentage of the total line width; b is the penalty assigned for deviating from the line width specified by a; c is a penalty based on the depth of the box tree (the deeper in the box tree the line break would occur, the greater the penalty for line breaks); d is a penalty based on how bad the break was at the previous line; e is a penalty based on the total number of lines (the larger the number e, the smaller the number of lines used to format the expression).
  • The default setting LinebreakAdjustments->{0.85, 2, 12, 1, 1} represents an empirical choice that works well for most Wolfram Language input. An alternative setting that gives good results for program code is LinebreakAdjustments->{0.5, 10, 100, 1, 0.5}.
Wolfram Research (1999), LinebreakAdjustments, Wolfram Language function,


Wolfram Research (1999), LinebreakAdjustments, Wolfram Language function,


Wolfram Language. 1999. "LinebreakAdjustments." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (1999). LinebreakAdjustments. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2023_linebreakadjustments, author="Wolfram Research", title="{LinebreakAdjustments}", year="1999", howpublished="\url{}", note=[Accessed: 04-October-2023 ]}


@online{reference.wolfram_2023_linebreakadjustments, organization={Wolfram Research}, title={LinebreakAdjustments}, year={1999}, url={}, note=[Accessed: 04-October-2023 ]}