[nvim] update latex snippet

This commit is contained in:
Marco Thomas
2022-11-24 16:23:38 +01:00
parent 8fac995679
commit 5b34fefb32
2 changed files with 12 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
"notes": {
"prefix": "notes",
"body": [
"%%% compile with `latexmk -xelatex -interaction=nonstop -synctex=1 -shell-escape DOC.tex`",
"%%% compile with `latexmk -xelatex -shell-escape DOC.tex`",
"",
"%%% general article setup",
"\\documentclass{article}[a4paper]",
@@ -73,13 +73,13 @@
"",
"%%% glossary, use with \\gls{}",
"% make sure to run `makeglossaries FILE` to generate the glossary entries",
"\\usepackage{glossaries}",
"\\usepackage[toc]{glossaries}",
"",
"%%% bibtex - cite with \\autocite{}, will show in footnote",
"\\usepackage{csquotes}",
"\\usepackage[style=verbose-trad2]{biblatex}",
"",
"%%% set metadata",
"%%% set titlepage",
"\\title{ \\\\\\[0.2em] \\large }",
"\\author{Marco Thomas}",
"\\date{\\today}",
@@ -96,16 +96,20 @@
"\\maketitle",
"\\newpage",
"\\tableofcontents",
"% \\newpage",
"% \\printglossaries",
"\\newpage",
"",
"% begin here; don't forget to relaunch nvim :>",
"\\section{}",
"",
"% optional appendix",
"% \\appendix",
"% \\section{optional appendix}",
"",
"% glossary, use with \\gls{TERM}; make sure to run `makeglossaries`",
"\\printglossaries",
"",
"% bibliography, cite with \\autocite{}",
"\\newpage",
"\\printbibliography",
"\\printbibliography[heading=bibintoc,title={Quellen}]",
"",
"\\end{document}"
],