texform 0.1.0

LaTeX formula parser, editor, and normalizer — the public TeXForm facade
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub use texform_transform::{Profile, RuleKey, TransformConfig};

pub fn rule_key_from_name(name: &str) -> Option<RuleKey> {
    texform_transform::rewrite::all_rules()
        .iter()
        .find_map(|rule| {
            let key = rule.meta().key;
            (key.to_string() == name).then_some(key)
        })
}

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct NormalizeConfig {
    pub parse: texform_core::parse::ParseConfig,
    pub transform: TransformConfig,
}