feature: add \unit{} command
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": "/",
|
||||||
|
|||||||
Reference in New Issue
Block a user