When typesetting equations in Mathematica text cell if I press Ctrl+/ the numerator and denominator font is smaller than the base font. Similarly for sub- and superscripts. How do I tell Mathematica notebook to stop changing font size when going into fraction and subscript or superscript mode?
1 Answer
This is controlled by the option AllowScriptLevelChange
. If it is set to False, the font will not be smaller in the fractions.
There are several ways to do this.
A. This will only keep the size of the fractions. The easiest is probably the switch off the script level changes that are taking place by selecting the cell bracket and setting
AllowScriptLevelChange -> False
in the options inspector. This is done as follows:
Open Menu/Format/OptionInspector.
Select the cell in question. It might be good to not only select the right bracket, but also the formula itself.
In the Option Inspector dialog the field "Show Option Values" should show "Selected". In the lookup text field type
AllowScriptLevelChange
.In the bottom right window uncheck the checkbox at the option AllowScriptLevelChange.
Done.
B. This will control both the size of the fractions and of the exponents. You may adjust ScriptSizeMultipliers
directly in the CellBox:
After you have typed the formula select the cell bracket and press Sift+Ctrl+E (Cmnd+Shift+E in Mac). The cell structure will open.
Add
ScriptSizeMultipliers -> {1.0}
as the option for the function Cell and again press Sift+Ctrl+E (Cmnd+Shift+E in Mac). This will close the CellBox and return you to the normal view. In this case not only fractions, but also exponents will show 100%.
C.
As the variant of B one can add the option FractionBoxOptions->{AllowScriptLevelChange->False}
to the Cell function in the CellBox presentation making all actions described in B.
Have fun!
-
$\begingroup$ @ Michael E2 Yes, but this is what I have written, have not I? $\endgroup$ Commented May 14, 2018 at 13:05
-
$\begingroup$ @Michael E2 No, of course not. But it is not written in A that the approach will do everything. Therefore, I specifically noted it in the approach B. One can then try and decide, which one to use in what case. $\endgroup$ Commented May 14, 2018 at 13:20
-
$\begingroup$ Thank you it works but how do i do this programmatically. $\endgroup$ Commented May 14, 2018 at 16:16
-
$\begingroup$ Thank you it works but how do i do this programmatically globally for the frontend. $\endgroup$ Commented May 14, 2018 at 17:11
-
$\begingroup$ @Michael E2 You are right. I introduced some correrections to make it clearer. $\endgroup$ Commented May 15, 2018 at 7:22