feature: add \unit{} command

This commit is contained in:
Matthias Jung
2025-12-25 22:37:52 +01:00
parent cd45154c60
commit eb8f2aa91f
+1
View File
@@ -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": "/",