Wikipedia:Manual of Style/Superscripts and subscripts: Difference between revisions

Content deleted Content added
Tags: Mobile edit Mobile web edit
m change source to syntaxhighlight
Line 55:
Special care is needed with subscripted labels to distinguish the purpose of the subscript (as this is a common error): variables and constants in subscripts should be italic, while textual labels should be in normal text font (Roman, upright). For example:
 
: <math> x_\text{this one} = y_\text{that one} \,\!</math> &emsp; (correct—typeset from <sourcesyntaxhighlight lang="tex" inline><math> x_\text{this one} = y_\text{that one} \,\!</math></sourcesyntaxhighlight>),
and
: <math>\sum_{i=1}^n { y_i^2 }\!</math> &emsp; (correct—typeset from <sourcesyntaxhighlight lang="tex" inline><math>\sum_{i=1}^n { y_i^2 }\!</math></sourcesyntaxhighlight>),
but not
: <math>r = x_{predicted} - x_{observed}</math> &emsp; (''incorrect''—typeset from <code><nowiki>r = x_{predicted} - x_{observed}</nowiki></code>).