is an option for selections that specifies the maximum size of spanning characters such as parentheses and brackets.
SpanMaxSize
is an option for selections that specifies the maximum size of spanning characters such as parentheses and brackets.
Details
- With the default setting SpanMaxSize->Automatic, the maximum size of each spanning character is set to an appropriate default value.
- With the setting SpanMaxSize->k, the maximum size of each spanning character is k times the font size.
Examples
open all close allBasic Examples (1)
By default, curly braces can only grow to approximately twice the regular line height as needed:
{{1}, {1 / x}, {1 / (1 + 1 / x)}}Use SpanMaxSize to ensure curly braces always fully span their contents:
Style[{{1}, {1 / x}, {1 / (1 + 1 / x)}}, SpanMaxSize -> Infinity]Ensure that curly braces never grow at all:
Style[{{1}, {1 / x}, {1 / (1 + 1 / x)}}, SpanMaxSize -> 1]Scope (2)
Parentheses span indefinitely by default:
(1 + 1 / (1 + (1 / (1 + (1 / x))) ^ 2) ^ 2) ^ 2Limit spanning of parentheses to their smallest size:
Style[(1 + 1 / (1 + (1 / (1 + (1 / x))) ^ 2) ^ 2) ^ 2, SpanMaxSize -> 1]Allow parentheses to grow up to twice the font size:
Style[(1 + 1 / (1 + (1 / (1 + (1 / x))) ^ 2) ^ 2) ^ 2, SpanMaxSize -> 2]Brackets and braces are limited in their growth by default:
{f[1 / f[1 / x]]}Allow infinite growth of brackets and braces:
Style[{f[1 / f[1 / x]]}, SpanMaxSize -> Infinity]Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), SpanMaxSize, Wolfram Language function, https://reference.wolfram.com/language/ref/SpanMaxSize.html.
CMS
Wolfram Language. 1996. "SpanMaxSize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SpanMaxSize.html.
APA
Wolfram Language. (1996). SpanMaxSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpanMaxSize.html
BibTeX
@misc{reference.wolfram_2026_spanmaxsize, author="Wolfram Research", title="{SpanMaxSize}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/SpanMaxSize.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_spanmaxsize, organization={Wolfram Research}, title={SpanMaxSize}, year={1996}, url={https://reference.wolfram.com/language/ref/SpanMaxSize.html}, note=[Accessed: 13-June-2026]}