From 341265e87767d7871c770aa5a8ee562460a27f1e Mon Sep 17 00:00:00 2001 From: jonbarron Date: Wed, 25 Oct 2023 20:33:28 -0700 Subject: [PATCH] Fix a typo that was breaking abs() (#188) --- src/latexify/codegen/expression_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/latexify/codegen/expression_rules.py b/src/latexify/codegen/expression_rules.py index 3000833..a745c4e 100644 --- a/src/latexify/codegen/expression_rules.py +++ b/src/latexify/codegen/expression_rules.py @@ -215,7 +215,7 @@ class FunctionRule: # name => left_syntax, right_syntax, is_wrapped BUILTIN_FUNCS: dict[str, FunctionRule] = { - "abs": FunctionRule(r"\mathropen{}\left|", r"\mathclose{}\right|", is_wrapped=True), + "abs": FunctionRule(r"\mathopen{}\left|", r"\mathclose{}\right|", is_wrapped=True), "acos": FunctionRule(r"\arccos", is_unary=True), "acosh": FunctionRule(r"\mathrm{arcosh}", is_unary=True), "arccos": FunctionRule(r"\arccos", is_unary=True),