is an option for selections that is used in determining the font size of modifiers such as subscripts and superscripts in a nested expression.
ScriptLevel
is an option for selections that is used in determining the font size of modifiers such as subscripts and superscripts in a nested expression.
Details
- ScriptLevel has a starting value of 0 for math editor cells and 1 for inline cells. Its value increases by 1 for each level at which a subscript or superscript is added.
- A few special characters, including
,
and
, are displayed in a larger font size when ScriptLevel->0.
Examples
open all close allBasic Examples (2)
The default script level of 0 displays a full height integral:
Defer[Integrate[x ^ 2, {x, 0, 1}]]Setting the script level to 1 to displays the integral more compactly, closely matching a typical line height:
Style[Defer[Integrate[x ^ 2, {x, 0, 1}]], ScriptLevel -> 1]Scripting constructs such as superscript automatically increase the script level in the script position:
Defer[y ^ Integrate[x ^ 2, {x, 0, 1}]]Defer[y / Integrate[x ^ 2, {x, 0, 1}]]Grid[{{Defer[Integrate[x ^ 2, {x, 0, 1}]]}}]Scope (4)
Defer[Integrate[x, {x, 0, 1}]]Style[%, ScriptLevel -> 1]Defer[Sum[x, {x, 1, 10}]]Style[%, ScriptLevel -> 1]Defer[Product[x, {x, 1, 10}]]Style[%, ScriptLevel -> 1]Defer[Limit[x, x -> 1]]Style[%, ScriptLevel -> 1]Properties & Relations (2)
Inline cells automatically set the script level to 1:
ExpressionCell[Defer[Sum[x, {x, 1, 10}]]]ScriptLevel can be passed as a cell option to affect the behavior:
ExpressionCell[Defer[Sum[x, {x, 1, 10}]], ScriptLevel -> 0]Scripting constructs that affect the grid level do so by incrementing it, starting at 2:
With[{level = Dynamic[CurrentValue[ScriptLevel]]}, Nest[Subscript[level, #]&, level, 5]]See Also
History
Introduced in 1999 (4.0)
Text
Wolfram Research (1999), ScriptLevel, Wolfram Language function, https://reference.wolfram.com/language/ref/ScriptLevel.html.
CMS
Wolfram Language. 1999. "ScriptLevel." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ScriptLevel.html.
APA
Wolfram Language. (1999). ScriptLevel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ScriptLevel.html
BibTeX
@misc{reference.wolfram_2026_scriptlevel, author="Wolfram Research", title="{ScriptLevel}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/ScriptLevel.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_scriptlevel, organization={Wolfram Research}, title={ScriptLevel}, year={1999}, url={https://reference.wolfram.com/language/ref/ScriptLevel.html}, note=[Accessed: 13-June-2026]}