Skip to content

Commit 3093f9f

Browse files
committed
Allow digits in \operatorname (mathjax/MathJax#2991)
Extend operatornamePattern to include `0-9`, so operators like `\operatorname{atan2}` are parsed as a single identifier. Fixes mathjax/MathJax#2991
1 parent afaf1ea commit 3093f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/input/tex/ams/AmsConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const AmsConfiguration = Configuration.create('ams', {
5959
[ConfigurationType.OPTIONS]: {
6060
multlineWidth: '',
6161
ams: {
62-
operatornamePattern: /^[-*a-zA-Z]+/, // multiLetterIdentifier for \operatorname
62+
operatornamePattern: /^[-*a-zA-Z0-9]+/, // multiLetterIdentifier for \operatorname
6363
multlineWidth: '100%', // The width to use for multline environments.
6464
multlineIndent: '1em', // The margin to use on both sides of multline environments.
6565
},

0 commit comments

Comments
 (0)