[nvim] change acronyms for glossary
This commit is contained in:
@@ -71,8 +71,9 @@
|
|||||||
"\\newtheorem{theorem}{Satz}[section]",
|
"\\newtheorem{theorem}{Satz}[section]",
|
||||||
"\\newtheorem*{remark}{Bemerkung}",
|
"\\newtheorem*{remark}{Bemerkung}",
|
||||||
"",
|
"",
|
||||||
"%%% acronyms - use with \\ac{} - don't print a list of acronyms",
|
"%%% glossary, use with \\gls{}",
|
||||||
"\\usepackage[nolist]{acronym}",
|
"% make sure to run `makeglossaries FILE` to generate the glossary entries",
|
||||||
|
"\\usepackage{glossaries}",
|
||||||
"",
|
"",
|
||||||
"%%% bibtex - cite with \\autocite{}, will show in footnote",
|
"%%% bibtex - cite with \\autocite{}, will show in footnote",
|
||||||
"\\usepackage{csquotes}",
|
"\\usepackage{csquotes}",
|
||||||
@@ -84,20 +85,21 @@
|
|||||||
"\\date{\\today}",
|
"\\date{\\today}",
|
||||||
"",
|
"",
|
||||||
"\\bibliography{bibliography}",
|
"\\bibliography{bibliography}",
|
||||||
|
"\\makeglossaries",
|
||||||
"",
|
"",
|
||||||
"\\begin{document}",
|
"\\begin{document}",
|
||||||
"",
|
"",
|
||||||
|
"% use with \\gls{nvim}",
|
||||||
|
"% \\newglossaryentry{nvim}{name=Neovim, description={Bester Editor der Welt}}",
|
||||||
|
"",
|
||||||
"% create title page with toc",
|
"% create title page with toc",
|
||||||
"\\maketitle",
|
"\\maketitle",
|
||||||
"\\newpage",
|
"\\newpage",
|
||||||
"\\tableofcontents",
|
"\\tableofcontents",
|
||||||
|
"% \\newpage",
|
||||||
|
"% \\printglossaries",
|
||||||
"\\newpage",
|
"\\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 :>",
|
"% begin here; don't forget to relaunch nvim :>",
|
||||||
"\\section{}",
|
"\\section{}",
|
||||||
"",
|
"",
|
||||||
|
|||||||
@@ -117,3 +117,10 @@ map <C-_> :noh<CR>
|
|||||||
map <leader>gs :Git status<CR>
|
map <leader>gs :Git status<CR>
|
||||||
map <leader>gb :Git blame<CR>
|
map <leader>gb :Git blame<CR>
|
||||||
map <C-s> :Git grep
|
map <C-s> :Git grep
|
||||||
|
|
||||||
|
fun! TrimWhitespace()
|
||||||
|
let l:save = winsaveview()
|
||||||
|
keeppatterns %s/\s\+$//e
|
||||||
|
call winrestview(l:save)
|
||||||
|
endfun
|
||||||
|
noremap <leader>ws :call TrimWhitespace()<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user