2
$\begingroup$

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?

$\endgroup$
  • 3
    $\begingroup$ You may want to look at ScriptSizeMultipliers function, or ScriptMinSize $\endgroup$ – roman465 May 13 '18 at 23:18
6
$\begingroup$

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:

  1. Open Menu/Format/OptionInspector.

  2. Select the cell in question. It might be good to not only select the right bracket, but also the formula itself.

  3. In the Option Inspector dialog the field "Show Option Values" should show "Selected". In the lookup text field type AllowScriptLevelChange.

  4. 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:

  1. 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.

  2. 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!

$\endgroup$
  • $\begingroup$ @ Michael E2 Yes, but this is what I have written, have not I? $\endgroup$ – Alexei Boulbitch May 14 '18 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$ – Alexei Boulbitch May 14 '18 at 13:20
  • $\begingroup$ Thank you it works but how do i do this programmatically. $\endgroup$ – user13892 May 14 '18 at 16:16
  • $\begingroup$ Thank you it works but how do i do this programmatically globally for the frontend. $\endgroup$ – user13892 May 14 '18 at 17:11
  • $\begingroup$ @Michael E2 You are right. I introduced some correrections to make it clearer. $\endgroup$ – Alexei Boulbitch May 15 '18 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.