mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(emacs): Optimize org-latex snippet
This commit is contained in:
parent
c48e024289
commit
a9a91b586b
6 changed files with 24 additions and 4 deletions
8
tools/doom/snippets/org-mode/align-math
Normal file
8
tools/doom/snippets/org-mode/align-math
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: align-math
|
||||||
|
# key: BAL
|
||||||
|
# expand-env: ((yas-indent-line 'fixed))
|
||||||
|
# --
|
||||||
|
\\begin{align*}
|
||||||
|
$1
|
||||||
|
\\end{align*}
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
# name: display-math
|
# name: display-math
|
||||||
# key: dm
|
# key: dm
|
||||||
# expand-env: ((yas-indent-line 'fixed))
|
# expand-env: ((yas-indent-line 'fixed))
|
||||||
# trigger-key: ""
|
|
||||||
# --
|
# --
|
||||||
$$
|
\\[
|
||||||
$1
|
$1
|
||||||
$$
|
\\]
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@
|
||||||
# key: mk
|
# key: mk
|
||||||
# expand-env: ((yas-indent-line 'fixed))
|
# expand-env: ((yas-indent-line 'fixed))
|
||||||
# --
|
# --
|
||||||
$$1$
|
\\( $1 \\)
|
||||||
|
|
|
||||||
6
tools/doom/snippets/org-mode/limit
Normal file
6
tools/doom/snippets/org-mode/limit
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Limit
|
||||||
|
# key: lim
|
||||||
|
# condition: (org-inside-LaTeX-fragment-p)
|
||||||
|
# --
|
||||||
|
\\lim_{$1 \to $2} $0
|
||||||
6
tools/doom/snippets/org-mode/summation
Normal file
6
tools/doom/snippets/org-mode/summation
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Summation
|
||||||
|
# key: sum
|
||||||
|
# condition: (org-inside-LaTeX-fragment-p)
|
||||||
|
# --
|
||||||
|
\\sum_{$1}^{$2} $0
|
||||||
1
tools/emacs.d/snippets
Symbolic link
1
tools/emacs.d/snippets
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../doom/snippets
|
||||||
Loading…
Add table
Add a link
Reference in a new issue