Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Style

This handles adding style formatting to the syntactic expressions components during LaTeX generation. It consists of a set of Styler functions, each of which can modify the generated LaTeX, typically by wrapping it with additional directives.

The Style.set, Style.wrap, and [[Style.wrapWith]] methods can be chained to provide any combination.

Hierarchy

  • Style

Implements

Index

Constructors

constructor

Properties

Readonly applyUnit

applyUnit: StylerFn<string | number, [IUnitBase<PUnitTerms>]>

Readonly applyUnitFunction

applyUnitFunction: StylerFn<string | number, [IUnitBase<PUnitTerms>]>

Readonly call

Readonly exponentStyle

exponentStyle: Style

Readonly function

Readonly number

number: StylerFn<number, any[]>

Readonly numberFormat

numberFormat: NumberFormat

Readonly numberPrecision

numberPrecision: number

Readonly numberSpecials

numberSpecials: Map<number, string>

Readonly numberTrimTrailingZero

numberTrimTrailingZero: boolean

Readonly unit

unit: StylerFn<IUnitBase<PUnitTerms>, any[]>

Readonly unitFraction

unitFraction: StylerFn<string, [string]>

Readonly unitProduct

unitProduct: StylerFn<string[], any[]>

Readonly unitSymbol

unitSymbol: StylerFn<IUnitBase<PUnitTerms>, any[]>

Readonly variable

variable: StylerFn<string, any[]>

Accessors

context

Methods

set

wrap

  • Returns a new Style with each Styler in stylers wrapping the one in this one. Each of the supplied Styler will receive the result of calling the current styler on the original string and this styler.

    Parameters

    Returns Style

wrapWithNewStyle

  • Returns a new Style with each Styler in stylers wrapping the one in this one. Each of the supplied Styler will receive the result of calling the current styler on the original string and the new styler.

    Parameters

    Returns Style

Generated using TypeDoc