diff --git a/crates/mitex/tests/cvt/misc.rs b/crates/mitex/tests/cvt/misc.rs index ecec10b..ad318da 100644 --- a/crates/mitex/tests/cvt/misc.rs +++ b/crates/mitex/tests/cvt/misc.rs @@ -83,7 +83,7 @@ fn test_convert_space() { #[test] fn test_convert_escape() { - assert_snapshot!(convert_math(r#"$\|x\|| \& \# \% \$ y$"#).unwrap(), @"|| x || | amp hash percent dollar y " + assert_snapshot!(convert_math(r#"$\|x\|| \& \# \% \$ y$"#).unwrap(), @"|| x || | amp hash % dollar y " ); assert_snapshot!(convert_math(r#"$a*b * c$"#).unwrap(), @r###"a \*b \* c "### ); diff --git a/packages/mitex/specs/latex/standard.typ b/packages/mitex/specs/latex/standard.typ index a31cdfd..f10e7b3 100644 --- a/packages/mitex/specs/latex/standard.typ +++ b/packages/mitex/specs/latex/standard.typ @@ -107,7 +107,9 @@ "|": define-sym("||"), "&": define-sym("amp"), "#": define-sym("hash"), - "%": define-sym("percent"), + "%": define-sym("%"), + "-": define-sym("-"), + "+": define-sym("+"), "$": define-sym("dollar"), "{": define-sym("\\{"), "}": define-sym("\\}"),