From b53a8f6d6e3e8d6b870b3624fbdc7de2f6576f61 Mon Sep 17 00:00:00 2001 From: Manoel Brunnen Date: Wed, 30 Mar 2016 02:30:05 +0200 Subject: [PATCH] changed the test case for glossaries to a more straight forward way --- test/features/completions/glossary.tex | 4 ++-- test/features/completions/latexmkrc | 12 ++++++------ test/features/completions/main.tex | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/features/completions/glossary.tex b/test/features/completions/glossary.tex index 04a1e07..61a3c5e 100644 --- a/test/features/completions/glossary.tex +++ b/test/features/completions/glossary.tex @@ -1,5 +1,5 @@ -\newglossary[gla]{gloss}{glb}{glc}{Glossar} -\newglossary[sya]{symbols}{syb}{syc}{Symbolverzeichnis} +\newglossary*{gloss}{Glossary} +\newglossary*{symbols}{List of symbols} \makeglossaries diff --git a/test/features/completions/latexmkrc b/test/features/completions/latexmkrc index 60712cb..debc43e 100644 --- a/test/features/completions/latexmkrc +++ b/test/features/completions/latexmkrc @@ -1,9 +1,9 @@ -add_cus_dep( 'glc', 'glb', 1, 'makeglc2glb' ); -add_cus_dep( 'syc', 'syb', 1, 'makesyc2syb' ); +add_cus_dep( 'gloss-glo', 'gloss-gls', 0, 'makegloss' ); +add_cus_dep( 'symbols-glo', 'symbols-gls', 0, 'makesymbols' ); -sub makeglc2glb { - system( "makeindex -s \"$_[0].ist\" -t \"$_[0].gla\" -o \"$_[0].glb\" \"$_[0].glc\"" ); +sub makegloss { + system( "makeindex -t \"$_[0].gloss-glg\" -s \"$_[0].ist\" -o \"$_[0].gloss-gls\" \"$_[0].gloss-glo\"" ); } -sub makesyc2syb { - system( "makeindex -s \"$_[0].ist\" -t \"$_[0].sya\" -o \"$_[0].syb\" \"$_[0].syc\"" ); +sub makesymbols { + system( "makeindex -t \"$_[0].symbols-glg\" -s \"$_[0].ist\" -o \"$_[0].symbols-gls\" \"$_[0].symbols-glo\"" ); } diff --git a/test/features/completions/main.tex b/test/features/completions/main.tex index 952c5d0..c354e95 100644 --- a/test/features/completions/main.tex +++ b/test/features/completions/main.tex @@ -9,7 +9,7 @@ \addbibresource{~/.vim/bundle/vimtex/test/completion/local2.bib} \usepackage[nonumberlist,acronymlists={gloss,symbolslist}]{glossaries} -\input{glossary.tex} +\loadglsentries{glossary} \includeonly{sub1,sub2 with spaces}