diff --git a/tools/doom/snippets/org-mode/align-math b/tools/doom/snippets/org-mode/align-math new file mode 100644 index 0000000..3906e2f --- /dev/null +++ b/tools/doom/snippets/org-mode/align-math @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: align-math +# key: BAL +# expand-env: ((yas-indent-line 'fixed)) +# -- +\\begin{align*} +$1 +\\end{align*} diff --git a/tools/doom/snippets/org-mode/display-math b/tools/doom/snippets/org-mode/display-math index 8e8286e..4266565 100644 --- a/tools/doom/snippets/org-mode/display-math +++ b/tools/doom/snippets/org-mode/display-math @@ -2,8 +2,7 @@ # name: display-math # key: dm # expand-env: ((yas-indent-line 'fixed)) -# trigger-key: "" # -- -$$ +\\[ $1 -$$ +\\] diff --git a/tools/doom/snippets/org-mode/inline-math b/tools/doom/snippets/org-mode/inline-math index 79c48eb..f6bab07 100644 --- a/tools/doom/snippets/org-mode/inline-math +++ b/tools/doom/snippets/org-mode/inline-math @@ -3,4 +3,4 @@ # key: mk # expand-env: ((yas-indent-line 'fixed)) # -- -$$1$ +\\( $1 \\) diff --git a/tools/doom/snippets/org-mode/limit b/tools/doom/snippets/org-mode/limit new file mode 100644 index 0000000..cf84217 --- /dev/null +++ b/tools/doom/snippets/org-mode/limit @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Limit +# key: lim +# condition: (org-inside-LaTeX-fragment-p) +# -- +\\lim_{$1 \to $2} $0 diff --git a/tools/doom/snippets/org-mode/summation b/tools/doom/snippets/org-mode/summation new file mode 100644 index 0000000..b095a2a --- /dev/null +++ b/tools/doom/snippets/org-mode/summation @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Summation +# key: sum +# condition: (org-inside-LaTeX-fragment-p) +# -- +\\sum_{$1}^{$2} $0 diff --git a/tools/emacs.d/snippets b/tools/emacs.d/snippets new file mode 120000 index 0000000..3a69d5c --- /dev/null +++ b/tools/emacs.d/snippets @@ -0,0 +1 @@ +../doom/snippets \ No newline at end of file