Module math

Source
Expand description

Mathematical formulas.

Re-exports§

pub use self::accent::Accent;
pub use self::accent::AccentElem;

Modules§

accent

Structs§

AlignPointElem
A math alignment point: &, &&.
AttachElem
A base with optional attachments.
Augment
Parameters specifying how augmentation lines should be drawn on a matrix.
AugmentOffsets
The offsets at which augmentation lines should be drawn on a matrix.
BinomElem
A binomial expression.
CancelElem
Displays a diagonal line over a part of an equation.
CasesElem
A case distinction.
ClassElem
Forced use of a certain math class.
Delimiter
A delimiter is a single character that is used to delimit a matrix, vector or cases. The character has to be a Unicode codepoint tagged as a math “opening”, “closing” or “fence”.
DelimiterPair
A pair of delimiters (one closing, one opening) used for matrices, vectors and cases.
EquationElem
A mathematical equation.
FracElem
A mathematical fraction.
LimitsElem
Forces a base to display attachments as limits.
LrElem
Scales delimiters.
MatElem
A matrix.
MidElem
Scales delimiters vertically to the nearest surrounding {lr()} group.
OpElem
A text operator in an equation.
OverbraceElem
A horizontal brace over content, with an optional annotation above.
OverbracketElem
A horizontal bracket over content, with an optional annotation above.
OverlineElem
A horizontal line over content.
OverparenElem
A horizontal parenthesis over content, with an optional annotation above.
OvershellElem
A horizontal tortoise shell bracket over content, with an optional annotation above.
PrimesElem
Grouped primes.
RootElem
A general root.
ScriptsElem
Forces a base to display attachments as scripts.
StretchElem
Stretches a glyph.
UnderbraceElem
A horizontal brace under content, with an optional annotation below.
UnderbracketElem
A horizontal bracket under content, with an optional annotation below.
UnderlineElem
A horizontal line under content.
UnderparenElem
A horizontal parenthesis under content, with an optional annotation below.
UndershellElem
A horizontal tortoise shell bracket under content, with an optional annotation below.
VecElem
A column vector.

Enums§

CancelAngle
Defines the cancel line.
MathSize
The size of elements in an equation.
MathVariant
A mathematical style variant, as defined by Unicode.

Constants§

MEDIUM
QUAD
THICK
THIN
WIDE

Traits§

Mathy
Trait for recognizing math elements and auto-wrapping them in equations.

Functions§

abs
Takes the absolute value of an expression.
bb
Blackboard bold (double-struck) font style in math.
bold
Bold font style in math.
cal
Calligraphic font style in math.
ceil
Ceils an expression.
display
Forced display style in math.
floor
Floors an expression.
frak
Fraktur font style in math.
inline
Forced inline (text) style in math.
italic
Italic font style in math.
module
Create a module with all math definitions.
mono
Monospace font style in math.
norm
Takes the norm of an expression.
round
Rounds an expression.
sans
Sans-serif font style in math.
script
Forced script style in math.
serif
Serif (roman) font style in math.
sqrt
A square root.
sscript
Forced second script style in math.
upright
Upright (non-italic) font style in math.