summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/figures.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-10-12 22:25:33 +0200
committerNanderty <psopka@sopka.ch>2023-10-12 22:25:33 +0200
commit3c6845fdbc5f3448d2f99e444fed1c8758845866 (patch)
treefddf3d42b392a048ff72de0951744ee3a23b3d7c /lua/Snippets/tex/figures.lua
parentc78f40aa7d9869a20b6c7d20f73113a64fbac39d (diff)
downloadneovim-config-3c6845fdbc5f3448d2f99e444fed1c8758845866.tar.gz
neovim-config-3c6845fdbc5f3448d2f99e444fed1c8758845866.tar.bz2
neovim-config-3c6845fdbc5f3448d2f99e444fed1c8758845866.zip
Snippet improvements chemistry
Diffstat (limited to 'lua/Snippets/tex/figures.lua')
-rw-r--r--lua/Snippets/tex/figures.lua193
1 files changed, 0 insertions, 193 deletions
diff --git a/lua/Snippets/tex/figures.lua b/lua/Snippets/tex/figures.lua
index 81a4368..e2fddd5 100644
--- a/lua/Snippets/tex/figures.lua
+++ b/lua/Snippets/tex/figures.lua
@@ -3,51 +3,7 @@ local helper = require('Snippets.luasniphelpers')
return {
- s({ trig = 'chfig', snippetType = 'autosnippet' },
- fmta(
- [[
-\begin{figure}[!h]
- \centering
- \chemfig {
- <>
- }
- \caption{<>
- }
- \label{fig:<>}
-\end{figure}
-]],
- {
- i(1),
- i(2),
- i(3),
- }
- ),
- { condition = helper.line_begin }
- ),
- s({ trig = 'chsch', snippetType = 'autosnippet' },
- fmta(
- [[
-\begin{figure}[!h]
- \centering
- \schemestart
- \chemfig {
- <>
- }
- \schemestop
- \caption{<>
- }
- \label{fig:<>}
-\end{figure}
-]],
- {
- i(1),
- i(2),
- i(3),
- }
- ),
- { condition = helper.line_begin }
- ),
s({ trig = 'imfig', snippetType = 'autosnippet' },
fmta(
@@ -96,153 +52,4 @@ return {
{ condition = helper.line_begin }
),
- s({ trig = 'scm', snippetType = 'autosnippet' },
- fmta(
- [[
-\schemestart
-<>
-\schemestop
-]],
- {
- i(1),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'sus', snippetType = 'autosnippet' },
- fmta(
- [[
-\subscheme {
- <>
-}
-]],
- {
- i(1),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'chf', snippetType = 'autosnippet' },
- fmta(
- [[
-\chemfig {
- <>
-}
- ]],
- {
- i(1),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'arr', snippetType = 'autosnippet' },
- fmta(
- '\\arrow(<>){<>}[<>]',
- {
- i(1),
- i(2),
- i(3),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'move', snippetType = 'autosnippet' },
- fmta(
- [[
-\chemmove[shorten <<=<>,shorten >>=<>]{
- \draw(<>).. controls +(<>) and +(<>).. (<>);
-}
- ]],
- {
- i(1),
- i(2),
- i(3),
- i(4),
- i(5),
- i(6),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'chr', snippetType = 'autosnippet' },
- fmta(
- '\\charge{<>}{<>}',
- {
- i(1),
- i(2),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'brc', snippetType = 'autosnippet' },
- fmta(
- [[
-\polymerdelim[height = <>, depth = <>,
- open xshift=<>, close xshift=<>,
- indice = \!\!<>]
- {op<>}{cl<>}
-]],
- {
- i(1),
- i(2),
- i(3),
- i(4),
- i(5),
- i(6),
- i(7),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'nme', snippetType = 'autosnippet' },
- fmta(
- [[
-\chemname{
- <>
-}{<>}
-]],
- {
- i(1),
- i(2),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'omi', snippetType = 'autosnippet' },
- { t('\\ominus') },
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'opl', snippetType = 'autosnippet' },
- { t('\\oplus') },
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'crp', snippetType = 'autosnippet' },
- fmta(
- [[(-[::<>,0.2,,,draw=none]\oplus)]],
- {
- i(1),
- }
- ),
- { condition = tex.in_figure }
- ),
-
- s({ trig = 'crm', snippetType = 'autosnippet' },
- fmta(
- [[(-[::<>,0.2,,,draw=none]\ominus)]],
- {
- i(1),
- }
- ),
- { condition = tex.in_figure }
- ),
}