diff options
| author | Nanderty <psopka@sopka.ch> | 2023-11-09 18:03:22 +0100 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2023-11-09 18:03:22 +0100 |
| commit | 42383b96d9a1b929080824946340d7459d49ac20 (patch) | |
| tree | 1010b642c7d1f72416e0b33fe406d11f1ea04ad4 /lua/Snippets/tex/schemes.lua | |
| parent | b4399bedea5e8b3fb6612b4c5483248f09089efc (diff) | |
| download | neovim-config-42383b96d9a1b929080824946340d7459d49ac20.tar.gz neovim-config-42383b96d9a1b929080824946340d7459d49ac20.tar.bz2 neovim-config-42383b96d9a1b929080824946340d7459d49ac20.zip | |
chemistry snippets
Diffstat (limited to 'lua/Snippets/tex/schemes.lua')
| -rw-r--r-- | lua/Snippets/tex/schemes.lua | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/lua/Snippets/tex/schemes.lua b/lua/Snippets/tex/schemes.lua index fcb6579..ae93b31 100644 --- a/lua/Snippets/tex/schemes.lua +++ b/lua/Snippets/tex/schemes.lua @@ -30,9 +30,11 @@ return { \begin{scheme}[!h] \centering \schemestart - \chemfig { - <> - } + \chemname{ + \chemfig { + <> + } + }{} \schemestop \caption{<> } @@ -187,11 +189,13 @@ return { { condition = tex.in_scheme } ), - s({ trig = 'crp', snippetType = 'autosnippet' }, + s({ trig = 'nmbr', snippetType = 'autosnippet' }, fmta( - [[(-[::<>,0.4,,,draw=none]\oplus)]], + [[(-[::<>,0.4,,,draw=none]{\color{<>}<>})]], { i(1), + i(2), + i(3), } ), { condition = tex.in_scheme } @@ -199,9 +203,21 @@ return { s({ trig = 'crm', snippetType = 'autosnippet' }, fmta( - [[(-[::<>,0.4,,,draw=none]\ominus)]], + [[\charge{<>=$\ominus$}{<>}]], + { + i(1), + i(2), + } + ), + { condition = tex.in_scheme } + ), + + s({ trig = 'crp', snippetType = 'autosnippet' }, + fmta( + [[\charge{<>=$\oplus$}{<>}]], { i(1), + i(2), } ), { condition = tex.in_scheme } |
