docx
    Preparing search index...

    Type Alias MathRunOptions

    Options for a MathRun.

    type MathRunOptions = {
        literal?: boolean;
        normalText?: boolean;
        script?: MathRunScript;
        style?: MathRunStyle;
        text: string;
    }
    Index
    literal?: boolean

    Takes the text as it is (m:lit), rather than as something Word builds up or lines up, such as an & in a MathEquationArray, which would otherwise be a point the rows line up at.

    false
    
    normalText?: boolean

    Writes the text as ordinary text rather than math, as Word's "Normal Text" button does (m:nor): upright and in the document's font, with its spaces kept. For words in an equation, such as "if" and "otherwise" in cases. It can't be given with style or script, which are for math.

    false
    
    script?: MathRunScript

    The alphabet the letters are drawn in, such as double-struck for ℝ (m:scr).

    style?: MathRunStyle

    How the letters are drawn: plain (upright), bold, italic or both (m:sty).

    "plain" with a script other than roman, as LaTeX draws its alphabets upright; otherwise none, and Word draws letters in italic

    text: string

    The text