Support abbreviated units for siunitx (#4773).

This commit is contained in:
John MacFarlane 2018-07-15 13:35:37 -07:00
parent 339a9e1b8b
commit 1579e57833

View file

@ -1551,6 +1551,95 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList
-- siuntix
, ("SI", dosiunitx)
-- units of siuntix
, ("fg", lit "fg")
, ("pg", lit "pg")
, ("ng", lit "ng")
, ("ug", lit "μg")
, ("mg", lit "mg")
, ("g", lit "g")
, ("kg", lit "kg")
, ("amu", lit "u")
, ("pm", lit "pm")
, ("nm", lit "nm")
, ("um", lit "μm")
, ("mm", lit "mm")
, ("cm", lit "cm")
, ("dm", lit "dm")
, ("m", lit "m")
, ("km", lit "km")
, ("as", lit "as")
, ("fs", lit "fs")
, ("ps", lit "ps")
, ("ns", lit "ns")
, ("us", lit "μs")
, ("ms", lit "ms")
, ("s", lit "s")
, ("fmol", lit "fmol")
, ("pmol", lit "pmol")
, ("nmol", lit "nmol")
, ("umol", lit "μmol")
, ("mmol", lit "mmol")
, ("mol", lit "mol")
, ("kmol", lit "kmol")
, ("pA", lit "pA")
, ("nA", lit "nA")
, ("uA", lit "μA")
, ("mA", lit "mA")
, ("A", lit "A")
, ("kA", lit "kA")
, ("ul", lit "μl")
, ("ml", lit "ml")
, ("l", lit "l")
, ("hl", lit "hl")
, ("uL", lit "μL")
, ("mL", lit "mL")
, ("L", lit "L")
, ("hL", lit "hL")
, ("mHz", lit "mHz")
, ("Hz", lit "Hz")
, ("kHz", lit "kHz")
, ("MHz", lit "MHz")
, ("GHz", lit "GHz")
, ("THz", lit "THz")
, ("mN", lit "mN")
, ("N", lit "N")
, ("kN", lit "kN")
, ("MN", lit "MN")
, ("Pa", lit "Pa")
, ("kPa", lit "kPa")
, ("MPa", lit "MPa")
, ("GPa", lit "GPa")
, ("mohm", lit "")
, ("kohm", lit "")
, ("Mohm", lit "")
, ("pV", lit "pV")
, ("nV", lit "nV")
, ("uV", lit "μV")
, ("mV", lit "mV")
, ("V", lit "V")
, ("kV", lit "kV")
, ("W", lit "W")
, ("uW", lit "μW")
, ("mW", lit "mW")
, ("kW", lit "kW")
, ("MW", lit "MW")
, ("GW", lit "GW")
, ("J", lit "J")
, ("uJ", lit "μJ")
, ("mJ", lit "mJ")
, ("kJ", lit "kJ")
, ("eV", lit "eV")
, ("meV", lit "meV")
, ("keV", lit "keV")
, ("MeV", lit "MeV")
, ("GeV", lit "GeV")
, ("TeV", lit "TeV")
, ("kWh", lit "kWh")
, ("F", lit "F")
, ("fF", lit "fF")
, ("pF", lit "pF")
, ("K", lit "K")
, ("dB", lit "dB")
, ("angstrom", lit "Å")
, ("arcmin", lit "")
, ("arcminute", lit "")