mirror of
https://github.com/calofmijuck/blog.git
synced 2025-12-06 14:53:50 +00:00
feat: restore macros
This commit is contained in:
@@ -86,6 +86,64 @@
|
|||||||
['$$', '$$'],
|
['$$', '$$'],
|
||||||
['\\[', '\\]']
|
['\\[', '\\]']
|
||||||
],
|
],
|
||||||
|
macros: {
|
||||||
|
ds: "\\displaystyle",
|
||||||
|
|
||||||
|
// font styles
|
||||||
|
rm: ["\\mathrm{#1}", 1],
|
||||||
|
mf: ["\\mathfrak{#1}", 1],
|
||||||
|
mc: ["\\mathcal{#1}", 1],
|
||||||
|
bb: ["\\mathbb{#1}", 1],
|
||||||
|
bf: ["\\mathbf{#1}", 1],
|
||||||
|
tt: ["\\texttt{#1}", 1],
|
||||||
|
|
||||||
|
inv: "^{-1}",
|
||||||
|
conj: "^\\ast",
|
||||||
|
trans: "^\\top",
|
||||||
|
cross: "^\\times",
|
||||||
|
bs: "\\setminus",
|
||||||
|
nsub: "\\unlhd",
|
||||||
|
pnsub: "\\lhd",
|
||||||
|
|
||||||
|
floor: ["\\left\\lfloor #1 \\right\\rfloor", 1],
|
||||||
|
ceil: ["\\left\\lceil #1 \\right\\rceil", 1],
|
||||||
|
round: ["\\left\\lfloor #1 \\right\\rceil", 1],
|
||||||
|
norm: ["\\left\\lVert #1 \\right\\rVert", 1],
|
||||||
|
abs: ["\\left\\lvert #1 \\right\\rvert", 1],
|
||||||
|
paren: ["\\left( #1 \\right)", 1],
|
||||||
|
braces: ["\\left\\{ #1 \\right\\}", 1],
|
||||||
|
span: ["\\left\\langle #1 \\right\\rangle", 1],
|
||||||
|
bar: ["\\overline{#1 \\vphantom{l}}", 1],
|
||||||
|
|
||||||
|
lcm: ["\\mathrm{lcm}"],
|
||||||
|
|
||||||
|
ra: "\\rightarrow",
|
||||||
|
la: "\\leftarrow",
|
||||||
|
lra: "\\leftrightarrow",
|
||||||
|
imp: "\\implies",
|
||||||
|
pll: "\\parallel",
|
||||||
|
|
||||||
|
N: "\\mathbb{N}",
|
||||||
|
Z: "\\mathbb{Z}",
|
||||||
|
Q: "\\mathbb{Q}",
|
||||||
|
R: "\\mathbb{R}",
|
||||||
|
C: "\\mathbb{C}",
|
||||||
|
F: "\\mathbb{F}",
|
||||||
|
|
||||||
|
Adv: ["\\mathrm{Adv}_{\\mathrm{#1}}[#2]", 2, ""],
|
||||||
|
|
||||||
|
im: "\\operatorname\{im\}",
|
||||||
|
ch: "\\operatorname\{char\}",
|
||||||
|
|
||||||
|
Aut: "\\mathrm{Aut}",
|
||||||
|
Gal: "\\mathrm{Gal}",
|
||||||
|
GF: "\\mathrm{GF}",
|
||||||
|
|
||||||
|
exists: "∃\\,",
|
||||||
|
|
||||||
|
tilde: ["\\widetilde{#1}", 1],
|
||||||
|
hat: ["\\widehat{#1}", 1]
|
||||||
|
},
|
||||||
tags: 'ams'
|
tags: 'ams'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user