Type Alias SerializeLatexOptions

SerializeLatexOptions: {
    applyFunctionStyle: ((expr: Expression, level: number) =>
        | "paren"
        | "leftright"
        | "big"
        | "none");
    fractionStyle: ((expr: Expression, level: number) =>
        | "quotient"
        | "block-quotient"
        | "inline-quotient"
        | "inline-solidus"
        | "nice-solidus"
        | "reciprocal"
        | "factor");
    groupStyle: ((expr: Expression, level: number) =>
        | "paren"
        | "leftright"
        | "big"
        | "none");
    invisibleMultiply: LatexString;
    invisiblePlus: LatexString;
    logicStyle: ((expr: Expression, level: number) =>
        | "word"
        | "boolean"
        | "uppercase-word"
        | "punctuation");
    missingSymbol: LatexString;
    multiply: LatexString;
    numericSetStyle: ((expr: Expression, level: number) =>
        | "compact"
        | "regular"
        | "interval"
        | "set-builder");
    powerStyle: ((expr: Expression, level: number) => "root" | "solidus" | "quotient");
    rootStyle: ((expr: Expression, level: number) => "radical" | "quotient" | "solidus");
}

Type declaration

  • applyFunctionStyle: ((expr: Expression, level: number) =>
        | "paren"
        | "leftright"
        | "big"
        | "none")
      • (expr, level):
            | "paren"
            | "leftright"
            | "big"
            | "none"
      • Parameters

        Returns
            | "paren"
            | "leftright"
            | "big"
            | "none"

  • fractionStyle: ((expr: Expression, level: number) =>
        | "quotient"
        | "block-quotient"
        | "inline-quotient"
        | "inline-solidus"
        | "nice-solidus"
        | "reciprocal"
        | "factor")
      • (expr, level):
            | "quotient"
            | "block-quotient"
            | "inline-quotient"
            | "inline-solidus"
            | "nice-solidus"
            | "reciprocal"
            | "factor"
      • Parameters

        Returns
            | "quotient"
            | "block-quotient"
            | "inline-quotient"
            | "inline-solidus"
            | "nice-solidus"
            | "reciprocal"
            | "factor"

  • groupStyle: ((expr: Expression, level: number) =>
        | "paren"
        | "leftright"
        | "big"
        | "none")
      • (expr, level):
            | "paren"
            | "leftright"
            | "big"
            | "none"
      • Parameters

        Returns
            | "paren"
            | "leftright"
            | "big"
            | "none"

  • invisibleMultiply: LatexString

    LaTeX string used to render an invisible multiply, e.g. in '2x'.

    Leave it empty to join the adjacent terms, i.e. 2x.

    Use \cdot to insert a \cdot operator between them, i.e. 2\cdot x.

    Empty by default.

  • invisiblePlus: LatexString

    LaTeX string used for an invisible plus with mixed numbers e.g. in '1 3/4'.

    Leave it empty to join the main number and the fraction, i.e. render it as 1\frac{3}{4}.

    Use + to insert an explicit + operator between them, i.e. 1+\frac{3}{4}

    Empty by default.

  • logicStyle: ((expr: Expression, level: number) =>
        | "word"
        | "boolean"
        | "uppercase-word"
        | "punctuation")
      • (expr, level):
            | "word"
            | "boolean"
            | "uppercase-word"
            | "punctuation"
      • Parameters

        Returns
            | "word"
            | "boolean"
            | "uppercase-word"
            | "punctuation"

  • missingSymbol: LatexString

    When an expression contains the error expression ["Error", 'missing'], serialize it with this LaTeX string

  • multiply: LatexString

    LaTeX string used for an explicit multiply operator,

    Default: \times

  • numericSetStyle: ((expr: Expression, level: number) =>
        | "compact"
        | "regular"
        | "interval"
        | "set-builder")
      • (expr, level):
            | "compact"
            | "regular"
            | "interval"
            | "set-builder"
      • Parameters

        Returns
            | "compact"
            | "regular"
            | "interval"
            | "set-builder"

  • powerStyle: ((expr: Expression, level: number) => "root" | "solidus" | "quotient")
      • (expr, level): "root" | "solidus" | "quotient"
      • Parameters

        Returns "root" | "solidus" | "quotient"

  • rootStyle: ((expr: Expression, level: number) => "radical" | "quotient" | "solidus")
      • (expr, level): "radical" | "quotient" | "solidus"
      • Parameters

        Returns "radical" | "quotient" | "solidus"