@@ -62,7 +62,7 @@ import Text.Pandoc.Readers.LaTeX.Math (dollarsMath, inlineEnvironments,
62import Text.Pandoc.Readers.LaTeX.Table (tableEnvironments)
62import Text.Pandoc.Readers.LaTeX.Table (tableEnvironments)
63import Text.Pandoc.Readers.LaTeX.Lang (polyglossiaLangToBCP47,
63import Text.Pandoc.Readers.LaTeX.Lang (polyglossiaLangToBCP47,
64 babelLangToBCP47, setDefaultLanguage)
64 babelLangToBCP47, setDefaultLanguage)
65−import Text.Pandoc.Readers.LaTeX.SIunitx
65+import Text.Pandoc.Readers.LaTeX.SIunitx (siunitxCommands)
66import Text.Pandoc.Shared
66import Text.Pandoc.Shared
67import qualified Text.Pandoc.Translations as Translations
67import qualified Text.Pandoc.Translations as Translations
68import Text.Pandoc.Walk
68import Text.Pandoc.Walk
@@ -426,6 +426,7 @@ inlineCommands =
426 M.union inlineLanguageCommands $
426 M.union inlineLanguageCommands $
427 M.union (accentCommands tok) $
427 M.union (accentCommands tok) $
428 M.union (citationCommands inline) $
428 M.union (citationCommands inline) $
429+ M.union (siunitxCommands tok) $
429 M.fromList
430 M.fromList
430 [ ("emph", extractSpaces emph <$> tok)
431 [ ("emph", extractSpaces emph <$> tok)
431 , ("textit", extractSpaces emph <$> tok)
432 , ("textit", extractSpaces emph <$> tok)
@@ -594,14 +595,6 @@ inlineCommands =
594 , ("Acfp", doAcronymPlural "full")
595 , ("Acfp", doAcronymPlural "full")
595 , ("Acsp", doAcronymPlural "abbrv")
596 , ("Acsp", doAcronymPlural "abbrv")
596 , ("Aclp", doAcronymPlural "long")
597 , ("Aclp", doAcronymPlural "long")
598− , ("si", skipopts *> dosi tok)
600− , ("SIrange", doSIrange True tok)
601− , ("numrange", doSIrange False tok)
602− , ("numlist", doSInumlist)
605 -- hyphenat
598 -- hyphenat
606 , ("bshyp", lit "\\\173")
599 , ("bshyp", lit "\\\173")
607 , ("fshyp", lit "/\173")
600 , ("fshyp", lit "/\173")