Update generated nvim config
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
.PHONY: test $(TARGETS)
|
||||
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
INMAKE := 1
|
||||
export INMAKE
|
||||
|
||||
TARGETS := glossaries glossaries-extra
|
||||
|
||||
test: $(TARGETS)
|
||||
|
||||
glossaries: glossaries.aux
|
||||
@$(MYVIM) -u $@.vim
|
||||
@latexmk -C $@.tex >/dev/null 2>&1
|
||||
|
||||
glossaries-extra:
|
||||
@TEXFILE=$@-1.tex $(MYVIM) -u $@.vim
|
||||
@TEXFILE=$@-2.tex $(MYVIM) -u $@.vim
|
||||
|
||||
%.aux: %.tex
|
||||
@latexmk $< >/dev/null 2>&1
|
||||
@ -0,0 +1,19 @@
|
||||
\documentclass{minimal}
|
||||
\usepackage[german]{babel}
|
||||
\usepackage{csquotes}
|
||||
\usepackage[record,style=long]{glossaries-extra}
|
||||
|
||||
\GlsXtrLoadResources[
|
||||
src={glossaries-extra.bib},
|
||||
selection={all},
|
||||
]
|
||||
|
||||
\begin{document}
|
||||
|
||||
Hello World!
|
||||
|
||||
\gls{isbn}
|
||||
|
||||
\printunsrtglossaries
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,16 @@
|
||||
\documentclass{minimal}
|
||||
\usepackage[german]{babel}
|
||||
\usepackage{csquotes}
|
||||
\usepackage[record,style=long]{glossaries-extra}
|
||||
|
||||
\GlsXtrLoadResources[selection={all}, src={glossaries-extra.bib}]
|
||||
|
||||
\begin{document}
|
||||
|
||||
Hello World!
|
||||
|
||||
\gls{isbn}
|
||||
|
||||
\printunsrtglossaries
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,49 @@
|
||||
% Encoding: UTF-8
|
||||
@acronym{isbn,
|
||||
short = {ISBN},
|
||||
long = {international standard book number}
|
||||
}
|
||||
|
||||
@acronym{isbn13,
|
||||
short = {isbn-13},
|
||||
long = {international standard book number}
|
||||
}
|
||||
|
||||
@acronym{nasa,
|
||||
short = {NASA},
|
||||
long = {National Aeronautics and Space Administration}
|
||||
}
|
||||
|
||||
@entry{abelian,
|
||||
name = {Abelsch},
|
||||
description = {Som}
|
||||
}
|
||||
|
||||
@entry{codeword,
|
||||
plural = {Codew\"orter},
|
||||
name = {Codewort},
|
||||
description = {Element eines Codes}
|
||||
}
|
||||
|
||||
@entry{codingtheory,
|
||||
name = {Codierungstheorie},
|
||||
description = {Theorie der Codes}
|
||||
}
|
||||
|
||||
@entry{plausibility-check,
|
||||
name = {Plausibilit\"ats-Check},
|
||||
description = {\"Uberpr\"ufung,
|
||||
ob ein Objekt \enquote{plausibel}
|
||||
ist; dies kann bedeuten zupr\"ufen,
|
||||
ob es in dem erwarteten Raum ist},
|
||||
}
|
||||
|
||||
@entry{dual-code,
|
||||
name = {dualer Code},
|
||||
description = {Code, der von der Paritycheckmatrix eines anderen Codes aufgespannt wird},
|
||||
}
|
||||
|
||||
@entry{qr-code,
|
||||
name = {QR-Code},
|
||||
description = {\enquote{Quick Response}-Code},
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
set nomore
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit $TEXFILE
|
||||
|
||||
let s:candidates = vimtex#test#completion('\gls{', '')
|
||||
call assert_equal(len(s:candidates), 9)
|
||||
|
||||
call vimtex#test#finished()
|
||||
@ -0,0 +1,27 @@
|
||||
\documentclass{minimal}
|
||||
\usepackage[nonumberlist,acronymlists={gloss,symbolslist}]{glossaries}
|
||||
|
||||
\loadglsentries{glsentries}
|
||||
\longnewglossaryentry{baz}{name={test}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Hello World!
|
||||
|
||||
\glsaddall
|
||||
|
||||
\printglossary[
|
||||
type=gloss,
|
||||
style=long,
|
||||
title={Glossary},
|
||||
toctitle={Glossary}
|
||||
]
|
||||
|
||||
\printglossary[
|
||||
type=symbols,
|
||||
style=long,
|
||||
title={List of Symbols},
|
||||
toctitle={List of Symbols}
|
||||
]
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,45 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
set nomore
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit glossaries.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
let s:candidates = vimtex#test#completion('\gls{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
" Allow completion for custom keys (#1489)
|
||||
let s:candidates = vimtex#test#completion('\Glsentrymaccusative{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
" Allow acronym and extended gls syntax (#1582)
|
||||
let s:candidates = vimtex#test#completion('\ac{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
let s:candidates = vimtex#test#completion('\acr{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
let s:candidates = vimtex#test#completion('\ACR{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
let s:candidates = vimtex#test#completion('\cgls{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
let s:candidates = vimtex#test#completion('\pgls{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
let s:candidates = vimtex#test#completion('\dgls{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
let s:candidates = vimtex#test#completion('\rgls{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
let s:candidates = vimtex#test#completion('\glsname{', '')
|
||||
call assert_equal(len(s:candidates), 7)
|
||||
|
||||
call vimtex#test#finished()
|
||||
@ -0,0 +1,53 @@
|
||||
\newglossary*{gloss}{Glossary}
|
||||
\newglossary*{symbols}{List of symbols}
|
||||
|
||||
\makeglossaries
|
||||
|
||||
\newglossaryentry{kv}
|
||||
{
|
||||
type=gloss,
|
||||
name=KV,
|
||||
description={Kontrollvolumen}
|
||||
}
|
||||
|
||||
\newglossaryentry{dgl}
|
||||
{
|
||||
type=gloss,
|
||||
name=DGL,
|
||||
description={Differentialgleichung}
|
||||
}
|
||||
|
||||
\newglossaryentry{agl}
|
||||
{
|
||||
type=gloss,
|
||||
name=AGL,
|
||||
description={Algebraische Gleichung}
|
||||
}
|
||||
|
||||
\newglossaryentry{dichte}
|
||||
{
|
||||
sort=1171,
|
||||
type=symbols,
|
||||
name={\ensuremath{\varrho}},
|
||||
description={
|
||||
Dichte, $[\varrho] = \frac{kg}{m^3}$
|
||||
}
|
||||
}
|
||||
\newglossaryentry{c}
|
||||
{
|
||||
sort=0031,
|
||||
type=symbols,
|
||||
name={\ensuremath{c}},
|
||||
description={
|
||||
spezifische Wärmekapazität, $[c] = \frac{J}{kg\cdot K}$
|
||||
}
|
||||
}
|
||||
\newglossaryentry{C}
|
||||
{
|
||||
sort=0030,
|
||||
type=symbols,
|
||||
name={\ensuremath{C_{th}}},
|
||||
description={
|
||||
Wärmekapazität, $[C_{th}] = \frac{J}{K}$
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
push @generated_exts, "glo";
|
||||
push @generated_exts, "ist";
|
||||
push @generated_exts, "gloss-glo";
|
||||
push @generated_exts, "gloss-gls";
|
||||
push @generated_exts, "gloss-glg";
|
||||
push @generated_exts, "symbols-glo";
|
||||
push @generated_exts, "symbols-gls";
|
||||
push @generated_exts, "symbols-glg";
|
||||
|
||||
add_cus_dep( 'gloss-glo', 'gloss-gls', 0, 'makegloss' );
|
||||
add_cus_dep( 'symbols-glo', 'symbols-gls', 0, 'makesymbols' );
|
||||
|
||||
sub makegloss {
|
||||
system( "makeindex -t \"$_[0].gloss-glg\" -s \"$_[0].ist\" -o \"$_[0].gloss-gls\" \"$_[0].gloss-glo\"" );
|
||||
}
|
||||
sub makesymbols {
|
||||
system( "makeindex -t \"$_[0].symbols-glg\" -s \"$_[0].ist\" -o \"$_[0].symbols-gls\" \"$_[0].symbols-glo\"" );
|
||||
}
|
||||
Reference in New Issue
Block a user