I am attempting to build a stylesheet to emulate the underoverscripts in a textbook.
First some background... When I come to place in a "Text" cell where I need to write some math notation I use an "InlineCell". The code in my stylesheet for "InlineCell" is:
Cell[StyleData["InlineCell"],
ScriptSizeMultipliers->{0.7, 0.7142857, 1.},
ScriptLevel->1,
NumberSeparator->",",
FontSize->12,
UnderoverscriptBoxOptions->{LimitsPositioning->True},
FractionBoxOptions->{BaseStyle->{ScriptSizeMultipliers -> {1., 0.7, 0.7142857, 1.}}}]
The option UnderoverscriptBoxOptions->{LimitsPositioning->True}
makes sure that underoverscripts are written on the side (not above and below), as you can see in the summation notation below:
This seems to be standard practice in a textbook when the math is located inside a textual paragraph. I believe the reason for this is so that the line spacing looks more consistent in the paragraph. However, there are times when underoverscripts are written above and below as you can see below:
In general, I want the overunderscipts to appear this way when the math notation is located on its own line outside of a paragraph. The pic below illustrates this:
I would like to emulate this by using an "InlineCell" inside a "DisplayFormula" cell.
This means that for an "InlineCell", I would need to have UnderoverscriptBoxOptions->{LimitsPositioning->False}
only when the "InlineCell" is inside a "DisplayFormula" cell. But would need to be true when the "InlineCell" is inside a "Text" cell.
I hope this makes sense. You can see both types of limitspositioning in the pic above.
ParentCell[]
but I am not sure it will be efficient or a proper way to do. It really seems like you need two styles e.g. InlineFormula and StandaloneFormula, one can inherit from another with adjustments you need, that gives you more flexibility. $\endgroup$