Draw big operators with cmex10 outlines

This commit is contained in:
gloamxun committed 2026-10-24 03:46:50 +08:00
1 parent 6446de6b6b
commit 66ceabad0e
7 files changed
+167 -28

No files matched your search

+21
View File
@@ -835,6 +835,27 @@ fn parse_delimiter(chars: &[char], index: usize) -> (char, usize) {
}
}
/// Unicode n-ary operator for a `\sum`-style big operator name.
pub(crate) fn big_operator_character(name: &str) -> Option<char> {
let character = match name {
"sum" => '\u{2211}',
"prod" => '\u{220F}',
"coprod" => '\u{2210}',
"int" => '\u{222B}',
"oint" => '\u{222E}',
"bigcap" => '\u{22C2}',
"bigcup" => '\u{22C3}',
"bigsqcup" => '\u{2A06}',
"bigvee" => '\u{22C1}',
"bigwedge" => '\u{22C0}',
"bigodot" => '\u{2A00}',
"bigotimes" => '\u{2A02}',
"bigoplus" => '\u{2A01}',
_ => return None,
};
Some(character)
}
fn math_symbol_command(name: &str) -> Option<char> {
let character = match name {
"cdot" => '\u{00B7}',