Skip to content

Commit

Permalink
Fix a typo that was breaking abs() (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarron authored Oct 26, 2023
1 parent e0ddde4 commit 341265e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latexify/codegen/expression_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 341265e

Please sign in to comment.