LaTeX reader: Implement siunitx v3 commands.

We support `\unit`, `\qty`, `\qtyrange`, and `\qtylist`
as synonynms of `\si`, `\SI`, `\SIrange`, and `\SIlist`.

Closes #7614.
This commit is contained in:
John MacFarlane
2021-10-11 08:54:45 -07:00
parent 0f98cbff4b
commit 84d68b92a2
+5 -1
View File
@@ -23,11 +23,15 @@ siunitxCommands :: PandocMonad m
=> LP m Inlines -> M.Map Text (LP m Inlines)
siunitxCommands tok = M.fromList
[ ("si", dosi tok)
, ("unit", dosi tok) -- v3 version of si
, ("SI", doSI tok)
, ("qty", doSI tok) -- v3 version of SI
, ("SIrange", doSIrange True tok)
, ("qtyrange", doSIrange True tok) -- v3 version of SIrange
, ("SIlist", doSIlist tok)
, ("qtylist", doSIlist tok) -- v3 version of SIlist
, ("numrange", doSIrange False tok)
, ("numlist", doSInumlist)
, ("SIlist", doSIlist tok)
, ("num", doSInum)
, ("ang", doSIang)
]