From c62a8ebc231964c4ce7dcf0bcd795b2ea506d297 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Tue, 14 May 2024 12:13:11 +0200 Subject: [PATCH] snippets: add block in latex --- luasnippets/tex.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/luasnippets/tex.lua b/luasnippets/tex.lua index 5efd715..930876f 100644 --- a/luasnippets/tex.lua +++ b/luasnippets/tex.lua @@ -23,4 +23,18 @@ return { } ) ), + + s({ trig = "block", dscr = "A beamer block" }, + fmta( + [[ + \begin{block}{<>} + <> + \end{block} + ]], + { + i(1, "title"), + i(2, "content") + } + ) + ), }