From 7eebafa7837ec173a7b2064ae60fd45b5413d17c Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 23 Nov 2023 16:25:49 +0100 Subject: Merge `typst` and `typst-library` --- crates/typst-library/src/math/mod.rs | 500 ----------------------------------- 1 file changed, 500 deletions(-) delete mode 100644 crates/typst-library/src/math/mod.rs (limited to 'crates/typst-library/src/math/mod.rs') diff --git a/crates/typst-library/src/math/mod.rs b/crates/typst-library/src/math/mod.rs deleted file mode 100644 index 7ced638b..00000000 --- a/crates/typst-library/src/math/mod.rs +++ /dev/null @@ -1,500 +0,0 @@ -//! 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::