com.agog.mathdisplay.parse / MTFraction

MTFraction

class MTFraction : MTMathAtom

Constructors

<init> MTFraction(rule: Boolean)
MTFraction()

Properties

denominator var denominator: MTMathList?
hasRule var hasRule: Boolean

If true, the fraction has a rule (i.e. a line) between the numerator and denominator. The default value is true.

leftDelimiter var leftDelimiter: String?

An optional delimiter for a fraction on the left.

numerator var numerator: MTMathList?
rightDelimiter var rightDelimiter: String?

An optional delimiter for a fraction on the right.

Inherited Properties

fontStyle var fontStyle: MTFontStyle

The font style to be used for the atom.

fusedAtoms var fusedAtoms: <ERROR CLASS>
indexRange var indexRange: NSRange
nucleus var nucleus: String
subScript var subScript: MTMathList?

An optional subscript.

superScript var superScript: MTMathList?

An optional superscript.

type var type: MTMathAtomType

Functions

copyDeep fun copyDeep(): MTFraction
finalized fun finalized(): MTFraction
toLatexString fun toLatexString(): String

Inherited Functions

copyDeepContent fun copyDeepContent(atom: MTMathAtom): MTMathAtom
description fun description(): String
finalized fun finalized(newNode: MTMathAtom): MTMathAtom
fuse fun fuse(atom: MTMathAtom): Unit
scriptsAllowed fun scriptsAllowed(): Boolean

Returns true if this atom allows scripts (sub or super).

toStringSubs fun toStringSubs(s: String): String