Initial commit
This commit is contained in:
17
snippets/latex-mode/Fraction slash
Normal file
17
snippets/latex-mode/Fraction slash
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Fraction slash
|
||||
# key: /
|
||||
# type: command
|
||||
# condition: (texmathp)
|
||||
# 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)))
|
||||
Reference in New Issue
Block a user