Add bmatrix and equation* env CDLaTeX snippets

This commit is contained in:
TEC 2021-09-17 11:57:59 +08:00
parent 9c6afcac0a
commit 3e6732e2ec
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 3 additions and 0 deletions

View File

@ -10225,6 +10225,9 @@ fleshing out. Let's change the prefix to a key which is similarly rarely used,
but more convenient, like =;=.
#+begin_src emacs-lisp
(after! cdlatex
(setq cdlatex-env-alist
'(("bmatrix" "\\begin{bmatrix}\n?\n\\end{bmatrix}" nil)
("equation*" "\\begin{equation*}\n?\n\\end{equation*}" nil)))
(setq ;; cdlatex-math-symbol-prefix ?\; ;; doesn't work at the moment :(
cdlatex-math-symbol-alist
'( ;; adding missing functions to 3rd level symbols