From 9f9f2c5ca29d752e3bd7d22c2de5276cb3ff1079 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Wed, 19 Oct 2022 15:48:31 +0200 Subject: [PATCH] [nvim] add acronym snippet --- .../.config/nvim/snippets/snippets/latex.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/files/nvim/.config/nvim/snippets/snippets/latex.json b/files/nvim/.config/nvim/snippets/snippets/latex.json index 2e9d049..d3ba20c 100644 --- a/files/nvim/.config/nvim/snippets/snippets/latex.json +++ b/files/nvim/.config/nvim/snippets/snippets/latex.json @@ -71,6 +71,9 @@ "\\newtheorem{theorem}{Satz}[section]", "\\newtheorem*{remark}{Bemerkung}", "", + "%%% acronyms - use with \\ac{} - don't print a list of acronyms", + "\\usepackage[nolist]{acronym}", + "", "%%% bibtex - cite with \\autocite{}, will show in footnote", "\\usepackage{csquotes}", "\\usepackage[style=verbose-trad2]{biblatex}", @@ -80,7 +83,7 @@ "\\author{Marco Thomas}", "\\date{\\today}", "", - "% \\bibliography{bibliography}", + "\\bibliography{bibliography}", "", "\\begin{document}", "", @@ -90,11 +93,17 @@ "\\tableofcontents", "\\newpage", "", + "% use with \\ac{}", + "\\begin{acronym}[Acronyms]", + " \\acro{latex}[LaTeX]{Bestes Doku Tool der Welt}", + "\\end{acronym}", + "", "% begin here; don't forget to relaunch nvim :>", "\\section{}", "", - "% \\newpage", - "% \\printbibliography", + "% bibliography, cite with \\autocite{}", + "\\newpage", + "\\printbibliography", "", "\\end{document}" ],