From 361620f70c6c28e44058bdca9ecf16a58fdd1999 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 14 Dec 2022 20:51:30 -0500 Subject: [PATCH] nvim: latex glossary snippets --- src/.config/nvim/ultisnips/tex.snippets | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/.config/nvim/ultisnips/tex.snippets b/src/.config/nvim/ultisnips/tex.snippets index 5c06d87..2543f33 100644 --- a/src/.config/nvim/ultisnips/tex.snippets +++ b/src/.config/nvim/ultisnips/tex.snippets @@ -358,6 +358,16 @@ snippet s_ "substack" i \substack{$1}$0 endsnippet +snippet glos "glossary" bi +\newglossaryentry{$1}{ + name=$1, + description={$2} +} +endsnippet +snippet pglos "print glossaries" bi +\printnoidxglossary +endsnippet + snippet root "tex root specification" bi %!TEX root = ${1:master.tex} $0 @@ -366,6 +376,7 @@ endsnippet snippet master "template for notes" bi \documentclass[fleqn, 12pt, a4paper]{article} \input{$1../preamble.tex} +%\input{glossary.tex} \title{$2} \begin{document} @@ -375,3 +386,7 @@ snippet master "template for notes" bi $0 \end{document} endsnippet + +snippet inp "input" bi +\input{$1} +endsnippet