## AMA Manual of Style - Stacy L. Christiansen, Cheryl Iverson 2020

# Displayed vs Run-in

Mathematical Composition

Mathematical formulas and other expressions that involve special symbols, character positions, and relationships may present difficulties in clarity in print and online publications. Avoid ambiguity through proper use of parentheses and brackets and adhere to typographic conventions and capitalization rules in equations (__see 8.5__, Parentheses and Brackets, and __21.0__, Editing, Proofreading, Tagging, and Display). Some software applications, such as MathType,__ ^{1}__ and document markup languages, such as LaTeX,

__provide support for typesetting, formatting, and displaying complex mathematical notation and equations.__

^{2}__20.1 Displayed vs Run-in.__

Simple formulas may remain within the text of the manuscript if they can be set on the line (ie, run in; __see 20.2__, Stacked vs Unstacked Fractions or Formulas):

The pulmonary vascular resistance index (PVRI) was calculated as follows: PVRI = (MPAP − PCWP)/CI, where MPAP indicates mean pulmonary artery pressure; PCWP, pulmonary capillary wedge pressure; and CI, cardiac index.

Long or complicated formulas should be set off and centered on a separate line.

For any given sample, *s*, we then defined the smoking index score, SI(*s*), as

where *wc* is +1 (—1) if the smoking-associated CpG, *c*, is hypermethylated (hypomethylated) in smokers and where β*cs* is the β-methylation value of the CpG *c* in sample *s*.

Whether run in to the text or set below it and centered, an equation is an element of the sentence that contains it. Punctuation and grammatical rules thus apply, just as they do for all other sentence elements. For example, if the equation is the last element in a sentence, it must be followed by a period. If there are 3 equations in a list, they must be separated by commas, and the final equation must be preceded by “and.”

If there are numerous equations in a manuscript or if equations are related to each other or are referred to after initial presentation, they should be numbered consecutively. Numbered equations should each be set on a separate line, centered, with parenthetical numbers set flush left or flush right. More complex equations can be numbered sequentially and displayed in a separate box. See examples in __Box 20.1-1__.

**Box 20.1-1. Examples of Complex Equations**

Equation 1. Full model

Equation 2. Probabilities of sexual transmission

Equation 3. Probability of IDU transmission

Equation 4. Per-act transmission risk, vaginal sex

*A _{j,k,m}* indicates annual per-partner number of episodes for sex act or role;

*c*, proportion of transmissions averted by condom use (condom effectiveness);

*D*, sex partner serodiscordance;

_{j,k,l}*D*, drug partner serodiscordance;

_{u}*F*, annual per-partner episodes of IDU distributive sharing;

*I*, injection drug use (IDU);

_{u}*j*, partner sex (1 if male, 2 if female);

*J*, maximum number of partner sex types (1 if partner is female, 2 if male);

*k,*partner main or casual type;

*l*, protected or unprotected sex partner (1 if unprotected, 2 if protected);

*m*, insertive or receptive sex role; RR

*, per-act relative risk of needle sharing compared with vaginal sex; RR*

_{1}*, per-act relative risk of act and role compared with vaginal sex;*

_{S j,m}*S*, vaginal or anal act or role with partner;

_{j,k,l,m}*T*, total partners of sex

_{j, k}*j*and type

*k*; tx, transmission; and

*U*, total IDU-sharing partners.

Standard abbreviations should be used in expressing units of measure (__see 13.12__, Units of Measure). For short, simple equations, it may be preferable to express an equation as words in the running text rather than to set it off as an actual formula:

Attributable risk is calculated by subtracting the incidence among the nonexposed from the incidence among the exposed.

Note: Do not present a formula or equation as a unit of measure (eg, do not use kg/m^{2} as a unit of measure for body mass index, which is calculated as weight in kilograms divided by height in meters squared, because it is the actual equation that is used to determine body mass index). Therefore, the sentence “His BMI was 30.0 kg/m^{2}” is incorrect; instead, the sentence should read, “His BMI was 30.0.”