Merge pull request #33 from DARC-e-V/fix-centi-unit
fix: add dezi and centi for units
This commit is contained in:
@@ -2,6 +2,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
var macros = {
|
var macros = {
|
||||||
",": (context) => context.future()?.text === " " ? "{\\char`,}" : "\\char`,",
|
",": (context) => context.future()?.text === " " ? "{\\char`,}" : "\\char`,",
|
||||||
"\\qty": "{#1\\,\\mathrm{#2}}",
|
"\\qty": "{#1\\,\\mathrm{#2}}",
|
||||||
|
"\\unit": "{\\mathrm{#1}}",
|
||||||
"\\squared": "{^{2}}",
|
"\\squared": "{^{2}}",
|
||||||
"\\cubed": "{^{3}}",
|
"\\cubed": "{^{3}}",
|
||||||
"\\per": "/",
|
"\\per": "/",
|
||||||
@@ -9,9 +10,12 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
"\\giga": "G",
|
"\\giga": "G",
|
||||||
"\\mega": "M",
|
"\\mega": "M",
|
||||||
"\\kilo": "k",
|
"\\kilo": "k",
|
||||||
|
"\\dezi": "d",
|
||||||
|
"\\centi": "c",
|
||||||
"\\milli": "m",
|
"\\milli": "m",
|
||||||
"\\micro": "\\text{μ}",
|
"\\micro": "\\text{μ}",
|
||||||
"\\nano": "n",
|
"\\nano": "n",
|
||||||
|
"\\pico": "p",
|
||||||
"\\kilogram": "\\text{kg}",
|
"\\kilogram": "\\text{kg}",
|
||||||
"\\meter": "\\text{m}",
|
"\\meter": "\\text{m}",
|
||||||
"\\second": "\\text{s}",
|
"\\second": "\\text{s}",
|
||||||
|
|||||||
Reference in New Issue
Block a user