This commit is contained in:
Zelong Kuang
2025-12-14 09:04:11 +11:00
parent 2321eb603b
commit 753ea5ea48
185 changed files with 1608 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
# key: //
# name: Fraction auto
# type: command
# condition: (and (texmathp) (quote auto))
# group: math
# --
(let ((numerator t))
(condition-case nil
(save-excursion
(backward-sexp)
(kill-sexp)
(delete-char 1))
(error (setq numerator 'nil)))
(insert "\\frac{" (if numerator (current-kill 0) "")
"}{}")
(backward-char (if numerator 1 3)))