diff --git a/common/lib/symmath/symmath/formula.py b/common/lib/symmath/symmath/formula.py index 355dbfd57d..e82d361d7c 100644 --- a/common/lib/symmath/symmath/formula.py +++ b/common/lib/symmath/symmath/formula.py @@ -84,7 +84,7 @@ def to_latex(expr): # sometimes get 'script(N)__B' or more complicated terms expr_s = re.sub( r'script([a-zA-Z0-9]+)', - '\\mathcal{\\1}', + r'\\mathcal{\\1}', expr_s )