[nvim] update latex snippet
This commit is contained in:
@@ -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}"
|
||||
],
|
||||
|
||||
@@ -11,6 +11,7 @@ alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE
|
||||
alias gg='git grep $1'
|
||||
alias tex='nix-shell ~/.dots/tex.nix'
|
||||
alias mktex="latexmk -xelatex -shell-escape"
|
||||
alias lg="lazygit"
|
||||
|
||||
alias l='ls -lFh --color'
|
||||
alias la='ls -lAFh --color'
|
||||
|
||||
Reference in New Issue
Block a user