diff --git a/README.markdown b/README.markdown
--- a/README.markdown
+++ b/README.markdown
@@ -25,6 +25,16 @@
 
 To run the test suite, compile with `--enable-tests` and do `cabal test`.
 
+Alternatively, texmath can be installed using
+[stack](https://github.com/commercialhaskell/stack).  Install
+the stack binary somewhere in your path.  Then, in the texmath
+repository,
+
+    stack setup
+    stack install --flag texmath:executable
+
+The `texmath` binary will be put in `~/.local/bin`.
+
 Macro definitions may be included before a LaTeX formula.
 
 `texmath` will behave as a CGI script when called under the name
diff --git a/changelog b/changelog
--- a/changelog
+++ b/changelog
@@ -1,3 +1,30 @@
+texmath (0.8.4.1)
+
+  * Added stack install instructions.
+  * Fixed bold-italic in OMML (#76).  Previously `\mathbfit` didn't work
+    properly in OMML output.
+  * Ignore `\nonumber` (#79).
+  * Allow styling in `\operatorname` e.g. `\operatorname{\mathcal{L}}` (#80).
+  * Fixed bug in `supHide` and `subHide` for OMML.  This  led to little
+    empty boxes being displayed in integrals with subscripts but no
+    superscripts.  See jgm/pandoc#2571.
+  * Implemented `\mod` as a math operator (#81).  This doesn't capture all the
+    spacing subtleties of the amsmath version, but should be good enough
+    for most purposes.
+  * Allow pandoc-types < 1.17.
+
+texmath (0.8.4)
+
+  * Improved symbol spacing in Pandoc output (jgm/pandoc#2261).
+    This change avoids putting space around binary symbols that
+    come at the beginning or end of a group, or appear on their
+    own.  It also avoids spacing on a binary symbol that follows
+    a Bin, Op, Rel, Open, or Punct atom, in accord with
+    TeXBook Appendix G.  We could go farther towards exactly
+    matching the TeXBook rules, but this simple change goes some of
+    the way.
+  * Added stack.yaml.
+
 texmath (0.8.3)
 
   * Parse uppercase Greek letters as EIdentifier, not ESymbol Op.
diff --git a/src/Text/TeXMath/Readers/TeX.hs b/src/Text/TeXMath/Readers/TeX.hs
--- a/src/Text/TeXMath/Readers/TeX.hs
+++ b/src/Text/TeXMath/Readers/TeX.hs
@@ -36,6 +36,7 @@
 import Text.TeXMath.Readers.TeX.Macros (applyMacros, parseMacroDefinitions)
 import Text.TeXMath.Unicode.ToTeX (getSymbolType)
 import Data.Maybe (fromMaybe, fromJust)
+import Text.TeXMath.Unicode.ToUnicode (toUnicode)
 
 type TP = Parser
 
@@ -100,7 +101,8 @@
   return result
 
 ignorable :: TP ()
-ignorable = skipMany (comment <|> label <|> (skipMany1 space <?> "whitespace"))
+ignorable = skipMany (comment <|> label <|> () <$ ctrlseq "nonumber" <|>
+        (skipMany1 space <?> "whitespace"))
 
 comment :: TP ()
 comment = char '%' *> skipMany (noneOf "\n") *> optional newline
@@ -155,6 +157,8 @@
                     ESymbol _ "\x02B9" -> Just "'"
                     ESymbol _ s -> Just s
                     ENumber s -> Just s
+                    EStyled sty [EIdentifier s] ->
+                      Just (toUnicode sty s)
                     _ -> Nothing
 
 bareSubSup :: TP Exp
@@ -945,6 +949,7 @@
            , ("\\log", EMathOperator "log")
            , ("\\max", EMathOperator "max")
            , ("\\min", EMathOperator "min")
+           , ("\\mod", EMathOperator "mod")
            , ("\\Pr", EMathOperator "Pr")
            , ("\\sec", EMathOperator "sec")
            , ("\\sin", EMathOperator "sin")
diff --git a/src/Text/TeXMath/Writers/OMML.hs b/src/Text/TeXMath/Writers/OMML.hs
--- a/src/Text/TeXMath/Writers/OMML.hs
+++ b/src/Text/TeXMath/Writers/OMML.hs
@@ -96,7 +96,7 @@
        TextDoubleStruck -> [sty "p", scr "double-struck"]
        TextScript       -> [sty "p", scr "script"]
        TextFraktur      -> [sty "p", scr "fraktur"]
-       TextBoldItalic    -> [sty "i"]
+       TextBoldItalic    -> [sty "bi"]
        TextSansSerifBold -> [sty "b", scr "sans-serif"]
        TextBoldScript    -> [sty "b", scr "script"]
        TextBoldFraktur   -> [sty "b", scr "fraktur"]
@@ -216,10 +216,10 @@
   mnode "nary" [ mnode "naryPr"
                  [ mnodeA "chr" s ()
                  , mnodeA "limLoc" t ()
-                 , mnodeA "supHide"
+                 , mnodeA "subHide"
                     (if y == EGrouped [] then "on" else "off") ()
                  , mnodeA "supHide"
-                    (if y == EGrouped [] then "on" else "off") ()
+                    (if z == EGrouped [] then "on" else "off") ()
                  ]
                , mnode "e" $ showExp props w
                , mnode "sub" $ showExp props y
diff --git a/tests/writers/05.omml b/tests/writers/05.omml
--- a/tests/writers/05.omml
+++ b/tests/writers/05.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e />
@@ -29,7 +29,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -95,7 +95,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/06.omml b/tests/writers/06.omml
--- a/tests/writers/06.omml
+++ b/tests/writers/06.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -16,7 +16,7 @@
           <m:naryPr>
             <m:chr m:val="∑" />
             <m:limLoc m:val="undOvr" />
-            <m:supHide m:val="off" />
+            <m:subHide m:val="off" />
             <m:supHide m:val="off" />
           </m:naryPr>
           <m:e>
diff --git a/tests/writers/10.omml b/tests/writers/10.omml
--- a/tests/writers/10.omml
+++ b/tests/writers/10.omml
@@ -83,7 +83,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/13.omml b/tests/writers/13.omml
--- a/tests/writers/13.omml
+++ b/tests/writers/13.omml
@@ -135,7 +135,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/22.omml b/tests/writers/22.omml
--- a/tests/writers/22.omml
+++ b/tests/writers/22.omml
@@ -924,37 +924,37 @@
         <m:e>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>A</m:t>
           </m:r>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>B</m:t>
           </m:r>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>C</m:t>
           </m:r>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>a</m:t>
           </m:r>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>b</m:t>
           </m:r>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>c</m:t>
           </m:r>
diff --git a/tests/writers/chain1.omml b/tests/writers/chain1.omml
--- a/tests/writers/chain1.omml
+++ b/tests/writers/chain1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -63,7 +63,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -111,7 +111,7 @@
       <m:naryPr>
         <m:chr m:val="∏" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -159,7 +159,7 @@
       <m:naryPr>
         <m:chr m:val="∐" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -207,7 +207,7 @@
       <m:naryPr>
         <m:chr m:val="∮" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -262,7 +262,7 @@
       <m:naryPr>
         <m:chr m:val="∬" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -317,7 +317,7 @@
       <m:naryPr>
         <m:chr m:val="∭" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/chain2.omml b/tests/writers/chain2.omml
--- a/tests/writers/chain2.omml
+++ b/tests/writers/chain2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -63,7 +63,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -111,7 +111,7 @@
       <m:naryPr>
         <m:chr m:val="∏" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -159,7 +159,7 @@
       <m:naryPr>
         <m:chr m:val="∐" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -207,7 +207,7 @@
       <m:naryPr>
         <m:chr m:val="∮" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -262,7 +262,7 @@
       <m:naryPr>
         <m:chr m:val="∬" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -317,7 +317,7 @@
       <m:naryPr>
         <m:chr m:val="∭" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/complex1.omml b/tests/writers/complex1.omml
--- a/tests/writers/complex1.omml
+++ b/tests/writers/complex1.omml
@@ -497,8 +497,8 @@
             <m:naryPr>
               <m:chr m:val="∮" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
+              <m:supHide m:val="on" />
             </m:naryPr>
             <m:e>
               <m:f>
@@ -1130,8 +1130,8 @@
             <m:naryPr>
               <m:chr m:val="∏" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
+              <m:supHide m:val="on" />
             </m:naryPr>
             <m:e>
               <m:r>
@@ -2237,7 +2237,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -2403,7 +2403,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -2566,7 +2566,7 @@
             <m:naryPr>
               <m:chr m:val="∏" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
diff --git a/tests/writers/complex2.omml b/tests/writers/complex2.omml
--- a/tests/writers/complex2.omml
+++ b/tests/writers/complex2.omml
@@ -893,7 +893,7 @@
                 <m:naryPr>
                   <m:chr m:val="∑" />
                   <m:limLoc m:val="undOvr" />
-                  <m:supHide m:val="off" />
+                  <m:subHide m:val="off" />
                   <m:supHide m:val="off" />
                 </m:naryPr>
                 <m:e>
@@ -990,7 +990,7 @@
                 <m:naryPr>
                   <m:chr m:val="∑" />
                   <m:limLoc m:val="undOvr" />
-                  <m:supHide m:val="off" />
+                  <m:subHide m:val="off" />
                   <m:supHide m:val="off" />
                 </m:naryPr>
                 <m:e>
@@ -1087,7 +1087,7 @@
                 <m:naryPr>
                   <m:chr m:val="∑" />
                   <m:limLoc m:val="undOvr" />
-                  <m:supHide m:val="off" />
+                  <m:subHide m:val="off" />
                   <m:supHide m:val="off" />
                 </m:naryPr>
                 <m:e>
diff --git a/tests/writers/complex3.omml b/tests/writers/complex3.omml
--- a/tests/writers/complex3.omml
+++ b/tests/writers/complex3.omml
@@ -1584,7 +1584,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -1725,7 +1725,7 @@
                     <m:naryPr>
                       <m:chr m:val="∑" />
                       <m:limLoc m:val="undOvr" />
-                      <m:supHide m:val="off" />
+                      <m:subHide m:val="off" />
                       <m:supHide m:val="off" />
                     </m:naryPr>
                     <m:e>
@@ -1807,7 +1807,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -1982,7 +1982,7 @@
                         <m:naryPr>
                           <m:chr m:val="∑" />
                           <m:limLoc m:val="undOvr" />
-                          <m:supHide m:val="off" />
+                          <m:subHide m:val="off" />
                           <m:supHide m:val="off" />
                         </m:naryPr>
                         <m:e>
@@ -2145,7 +2145,7 @@
                     <m:naryPr>
                       <m:chr m:val="∑" />
                       <m:limLoc m:val="undOvr" />
-                      <m:supHide m:val="off" />
+                      <m:subHide m:val="off" />
                       <m:supHide m:val="off" />
                     </m:naryPr>
                     <m:e>
@@ -7002,7 +7002,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -7023,7 +7023,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -14587,7 +14587,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -14618,7 +14618,7 @@
             <m:naryPr>
               <m:chr m:val="∫" />
               <m:limLoc m:val="subSup" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -14708,7 +14708,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -14803,7 +14803,7 @@
             <m:naryPr>
               <m:chr m:val="∫" />
               <m:limLoc m:val="subSup" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -14914,7 +14914,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -15007,7 +15007,7 @@
             <m:naryPr>
               <m:chr m:val="∫" />
               <m:limLoc m:val="subSup" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -15093,7 +15093,7 @@
             <m:naryPr>
               <m:chr m:val="∫" />
               <m:limLoc m:val="subSup" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -15555,7 +15555,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
@@ -19192,7 +19192,7 @@
             <m:naryPr>
               <m:chr m:val="∑" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e>
diff --git a/tests/writers/coprod1.omml b/tests/writers/coprod1.omml
--- a/tests/writers/coprod1.omml
+++ b/tests/writers/coprod1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∐" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/coprod2.omml b/tests/writers/coprod2.omml
--- a/tests/writers/coprod2.omml
+++ b/tests/writers/coprod2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∐" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/deMorgans_law.omml b/tests/writers/deMorgans_law.omml
--- a/tests/writers/deMorgans_law.omml
+++ b/tests/writers/deMorgans_law.omml
@@ -77,7 +77,7 @@
           <m:naryPr>
             <m:chr m:val="⋃" />
             <m:limLoc m:val="undOvr" />
-            <m:supHide m:val="off" />
+            <m:subHide m:val="off" />
             <m:supHide m:val="off" />
           </m:naryPr>
           <m:e>
@@ -127,7 +127,7 @@
       <m:naryPr>
         <m:chr m:val="⋂" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/doubleint1.omml b/tests/writers/doubleint1.omml
--- a/tests/writers/doubleint1.omml
+++ b/tests/writers/doubleint1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∬" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/doubleint2.omml b/tests/writers/doubleint2.omml
--- a/tests/writers/doubleint2.omml
+++ b/tests/writers/doubleint2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∬" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/int10.omml b/tests/writers/int10.omml
--- a/tests/writers/int10.omml
+++ b/tests/writers/int10.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/int3.omml b/tests/writers/int3.omml
--- a/tests/writers/int3.omml
+++ b/tests/writers/int3.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/int4.omml b/tests/writers/int4.omml
--- a/tests/writers/int4.omml
+++ b/tests/writers/int4.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/int7.omml b/tests/writers/int7.omml
--- a/tests/writers/int7.omml
+++ b/tests/writers/int7.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/int8.omml b/tests/writers/int8.omml
--- a/tests/writers/int8.omml
+++ b/tests/writers/int8.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/int9.omml b/tests/writers/int9.omml
--- a/tests/writers/int9.omml
+++ b/tests/writers/int9.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/largeopPos3.omml b/tests/writers/largeopPos3.omml
--- a/tests/writers/largeopPos3.omml
+++ b/tests/writers/largeopPos3.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="⋂" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/mfracZcomp-30.omml b/tests/writers/mfracZcomp-30.omml
--- a/tests/writers/mfracZcomp-30.omml
+++ b/tests/writers/mfracZcomp-30.omml
@@ -57,7 +57,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/mfracZcomp-33.omml b/tests/writers/mfracZcomp-33.omml
--- a/tests/writers/mfracZcomp-33.omml
+++ b/tests/writers/mfracZcomp-33.omml
@@ -106,8 +106,8 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
+        <m:supHide m:val="on" />
       </m:naryPr>
       <m:e>
         <m:f>
diff --git a/tests/writers/miequivalents11.omml b/tests/writers/miequivalents11.omml
--- a/tests/writers/miequivalents11.omml
+++ b/tests/writers/miequivalents11.omml
@@ -145,7 +145,7 @@
           </m:r>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>A</m:t>
           </m:r>
diff --git a/tests/writers/mimathvariant13.omml b/tests/writers/mimathvariant13.omml
--- a/tests/writers/mimathvariant13.omml
+++ b/tests/writers/mimathvariant13.omml
@@ -53,7 +53,7 @@
         <m:e>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>a</m:t>
           </m:r>
@@ -189,7 +189,7 @@
         <m:e>
           <m:r>
             <m:rPr>
-              <m:sty m:val="i" />
+              <m:sty m:val="bi" />
             </m:rPr>
             <m:t>A</m:t>
           </m:r>
diff --git a/tests/writers/moAmovable15.omml b/tests/writers/moAmovable15.omml
--- a/tests/writers/moAmovable15.omml
+++ b/tests/writers/moAmovable15.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -34,7 +34,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -60,7 +60,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -86,7 +86,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -112,7 +112,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -138,7 +138,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e />
diff --git a/tests/writers/mstyleA2.omml b/tests/writers/mstyleA2.omml
--- a/tests/writers/mstyleA2.omml
+++ b/tests/writers/mstyleA2.omml
@@ -6,19 +6,19 @@
   <m:oMath>
     <m:r>
       <m:rPr>
-        <m:sty m:val="i" />
+        <m:sty m:val="bi" />
       </m:rPr>
       <m:t>2</m:t>
     </m:r>
     <m:r>
       <m:rPr>
-        <m:sty m:val="i" />
+        <m:sty m:val="bi" />
       </m:rPr>
       <m:t>+</m:t>
     </m:r>
     <m:r>
       <m:rPr>
-        <m:sty m:val="i" />
+        <m:sty m:val="bi" />
       </m:rPr>
       <m:t>x</m:t>
     </m:r>
diff --git a/tests/writers/msubsup1.omml b/tests/writers/msubsup1.omml
--- a/tests/writers/msubsup1.omml
+++ b/tests/writers/msubsup1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/msubsupBsize2.omml b/tests/writers/msubsupBsize2.omml
--- a/tests/writers/msubsupBsize2.omml
+++ b/tests/writers/msubsupBsize2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -108,7 +108,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e />
diff --git a/tests/writers/msupBsize3.omml b/tests/writers/msupBsize3.omml
--- a/tests/writers/msupBsize3.omml
+++ b/tests/writers/msupBsize3.omml
@@ -8,8 +8,8 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="on" />
-        <m:supHide m:val="on" />
+        <m:subHide m:val="on" />
+        <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
         <m:r>
@@ -91,8 +91,8 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="on" />
-        <m:supHide m:val="on" />
+        <m:subHide m:val="on" />
+        <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
         <m:r>
@@ -112,8 +112,8 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="on" />
-        <m:supHide m:val="on" />
+        <m:subHide m:val="on" />
+        <m:supHide m:val="off" />
       </m:naryPr>
       <m:e />
       <m:sub />
diff --git a/tests/writers/oint1.omml b/tests/writers/oint1.omml
--- a/tests/writers/oint1.omml
+++ b/tests/writers/oint1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∮" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/oint2.omml b/tests/writers/oint2.omml
--- a/tests/writers/oint2.omml
+++ b/tests/writers/oint2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∮" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/prod1.omml b/tests/writers/prod1.omml
--- a/tests/writers/prod1.omml
+++ b/tests/writers/prod1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∏" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/prod2.omml b/tests/writers/prod2.omml
--- a/tests/writers/prod2.omml
+++ b/tests/writers/prod2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∏" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/sophomores_dream.omml b/tests/writers/sophomores_dream.omml
--- a/tests/writers/sophomores_dream.omml
+++ b/tests/writers/sophomores_dream.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∫" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
@@ -62,7 +62,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/sphere_volume.omml b/tests/writers/sphere_volume.omml
--- a/tests/writers/sphere_volume.omml
+++ b/tests/writers/sphere_volume.omml
@@ -180,8 +180,8 @@
             <m:naryPr>
               <m:chr m:val="∭" />
               <m:limLoc m:val="undOvr" />
-              <m:supHide m:val="on" />
-              <m:supHide m:val="on" />
+              <m:subHide m:val="on" />
+              <m:supHide m:val="off" />
             </m:naryPr>
             <m:e />
             <m:sub />
@@ -271,7 +271,7 @@
             <m:naryPr>
               <m:chr m:val="∫" />
               <m:limLoc m:val="subSup" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e />
@@ -310,7 +310,7 @@
             <m:naryPr>
               <m:chr m:val="∫" />
               <m:limLoc m:val="subSup" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e />
@@ -359,7 +359,7 @@
             <m:naryPr>
               <m:chr m:val="∫" />
               <m:limLoc m:val="subSup" />
-              <m:supHide m:val="off" />
+              <m:subHide m:val="off" />
               <m:supHide m:val="off" />
             </m:naryPr>
             <m:e />
diff --git a/tests/writers/substack.omml b/tests/writers/substack.omml
--- a/tests/writers/substack.omml
+++ b/tests/writers/substack.omml
@@ -8,8 +8,8 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="on" />
-        <m:supHide m:val="on" />
+        <m:subHide m:val="on" />
+        <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
         <m:r>
diff --git a/tests/writers/sum1.omml b/tests/writers/sum1.omml
--- a/tests/writers/sum1.omml
+++ b/tests/writers/sum1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/sum2.omml b/tests/writers/sum2.omml
--- a/tests/writers/sum2.omml
+++ b/tests/writers/sum2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∑" />
         <m:limLoc m:val="undOvr" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/tripleint1.omml b/tests/writers/tripleint1.omml
--- a/tests/writers/tripleint1.omml
+++ b/tests/writers/tripleint1.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∭" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/tests/writers/tripleint2.omml b/tests/writers/tripleint2.omml
--- a/tests/writers/tripleint2.omml
+++ b/tests/writers/tripleint2.omml
@@ -8,7 +8,7 @@
       <m:naryPr>
         <m:chr m:val="∭" />
         <m:limLoc m:val="subSup" />
-        <m:supHide m:val="off" />
+        <m:subHide m:val="off" />
         <m:supHide m:val="off" />
       </m:naryPr>
       <m:e>
diff --git a/texmath.cabal b/texmath.cabal
--- a/texmath.cabal
+++ b/texmath.cabal
@@ -1,5 +1,5 @@
 Name:                texmath
-Version:             0.8.4
+Version:             0.8.4.1
 Cabal-Version:       >= 1.10
 Build-type:          Simple
 Synopsis:            Conversion between formats used to represent mathematics.
@@ -82,7 +82,7 @@
 
 Library
     Build-depends:       xml, parsec >= 3, containers,
-                         pandoc-types >= 1.12.3.3 && < 1.13, mtl
+                         pandoc-types >= 1.12.3.3 && < 1.17, mtl
     if impl(ghc >= 6.10)
       Build-depends: base >= 4.5 && < 5, syb
     else
@@ -129,7 +129,7 @@
     if flag(executable)
       Buildable:         True
       Build-Depends:     base >= 4.5 && < 5, texmath, xml,
-                         pandoc-types >= 1.12.3.3 && < 1.13,
+                         pandoc-types >= 1.12.3.3 && < 1.17,
                          split, aeson, bytestring, text
     else
       Buildable:         False
