@@ -1559,10 +1559,11 @@ newcommand = do
1559 case mtype of
1559 case mtype of
1560 "DeclareMathOperator" ->
1560 "DeclareMathOperator" ->
1561 Tok pos (CtrlSeq "mathop") "\\mathop"
1561 Tok pos (CtrlSeq "mathop") "\\mathop"
1562+ : Tok pos Symbol "{"
1562 : Tok pos (CtrlSeq "mathrm") "\\mathrm"
1563 : Tok pos (CtrlSeq "mathrm") "\\mathrm"
1563 : Tok pos Symbol "{"
1564 : Tok pos Symbol "{"
1564 : (contents' ++
1565 : (contents' ++
1565− [ Tok pos Symbol "}" ])
1566+ [ Tok pos Symbol "}", Tok pos Symbol "}" ])
1566 _ -> contents'
1567 _ -> contents'
1567 when (mtype == "newcommand") $ do
1568 when (mtype == "newcommand") $ do
1568 macros <- sMacros <$> getState
1569 macros <- sMacros <$> getState