nvim: latex glossary snippets

This commit is contained in:
dogeystamp 2022-12-14 20:51:30 -05:00
parent 024565d0c2
commit 361620f70c
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -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