From 146083e981a831bba6d601baf8333a1026af3bb9 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Fri, 24 May 2024 13:21:19 +0200 Subject: [PATCH] snippets: \textheight and \textwidth in latex --- luasnippets/tex.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/luasnippets/tex.lua b/luasnippets/tex.lua index 359f88b..0a81032 100644 --- a/luasnippets/tex.lua +++ b/luasnippets/tex.lua @@ -57,4 +57,12 @@ return { s({ trig = "bs", dscr = "Insert a big skip" }, fmt("\\bigskip", {}) ), + + s({ trig = "tw", dscr = "Insert \\textwidth" }, + fmt("\\textwidth", {}) + ), + + s({ trig = "th", dscr = "Insert \\textheight" }, + fmt("\\textheight", {}) + ), }