//! Mathematical formulas. #[macro_use] mod ctx; mod accent; mod align; mod attach; mod cancel; mod class; mod frac; mod fragment; mod lr; mod matrix; mod op; mod root; mod row; mod spacing; mod stretch; mod style; mod underover; pub use self::accent::*; pub use self::align::*; pub use self::attach::*; pub use self::cancel::*; pub use self::class::*; pub use self::frac::*; pub use self::lr::*; pub use self::matrix::*; pub use self::op::*; pub use self::root::*; pub use self::style::*; pub use self::underover::*; use std::borrow::Cow; use ttf_parser::{GlyphId, Rect}; use typst::eval::{Module, Scope}; use typst::font::{Font, FontWeight}; use typst::model::Guard; use typst::util::option_eq; use unicode_math_class::MathClass; use self::ctx::*; use self::fragment::*; use self::row::*; use self::spacing::*; use crate::layout::{AlignElem, BoxElem, HElem, ParElem, Spacing}; use crate::meta::{ Count, Counter, CounterUpdate, LocalNameIn, Numbering, Outlinable, Refable, Supplement, }; use crate::prelude::*; use crate::shared::BehavedBuilder; use crate::text::{ families, variant, FontFamily, FontList, LinebreakElem, SpaceElem, TextElem, TextSize, }; /// Create a module with all math definitions. pub fn module() -> Module { let mut math = Scope::deduplicating(); math.category("math"); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_elem::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::(); math.define_func::