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

View File

@@ -11,6 +11,7 @@ alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE
alias gg='git grep $1' alias gg='git grep $1'
alias tex='nix-shell ~/.dots/tex.nix' alias tex='nix-shell ~/.dots/tex.nix'
alias mktex="latexmk -xelatex -shell-escape" alias mktex="latexmk -xelatex -shell-escape"
alias lg="lazygit"
alias l='ls -lFh --color' alias l='ls -lFh --color'
alias la='ls -lAFh --color' alias la='ls -lAFh --color'