pub enum Content<'a> {
Text(&'a str),
Number(&'a str),
Function(&'a str),
Ordinary {
content: char,
stretchy: bool,
},
LargeOp {
content: char,
small: bool,
},
BinaryOp {
content: char,
small: bool,
},
Relation {
content: RelationContent,
small: bool,
},
Delimiter {
content: char,
size: Option<DelimiterSize>,
ty: DelimiterType,
},
Punctuation(char),
}
Expand description
Base events that produce mathml
nodes
Variants§
Text(&'a str)
Text content that should be typeset following the rules of LaTeX
’s text
mode.
Number(&'a str)
A number, which can include decimal points and commas.
Function(&'a str)
A function identifier, such as sin
, lim
, or a custom function with
\operatorname{arccotan}
.
Ordinary
A variable identifier, such as x
, \theta
, \aleph
, etc., and other stuff that do not have
any spacing around them. This includes things that normally go in under and overscripts
which may be stretchy, e.g., →
, ‾
, etc.
Fields
LargeOp
A large operator, e.g., \sum
, \int
, \prod
, etc.
Fields
BinaryOp
A binary operator, e.g., +
, *
, ⊗
, ?
, etc.
Fields
Relation
A relation, e.g., =
, ≠
, ≈
, etc.
Fields
content: RelationContent
The content of the relation.
Delimiter
An opening, closing, or fence delimiter, e.g., (
, [
, {
, |
, )
, ]
, }
, etc.
Fields
size: Option<DelimiterSize>
The size of the delimiter, if any.
ty: DelimiterType
The type of the delimiter.
Punctuation(char)
A punctuation character, such as ,
, .
, or ;
.