summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/leipzig/leipzig.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/leipzig/leipzig.sty')
-rw-r--r--Master/texmf-dist/tex/latex/leipzig/leipzig.sty17
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/leipzig/leipzig.sty b/Master/texmf-dist/tex/latex/leipzig/leipzig.sty
index c6b0b8387b1..e564de6cefb 100644
--- a/Master/texmf-dist/tex/latex/leipzig/leipzig.sty
+++ b/Master/texmf-dist/tex/latex/leipzig/leipzig.sty
@@ -38,7 +38,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1996/10/24]%
\ProvidesPackage{leipzig}%
- [2017/06/16 v2.0 Leipzig package for linguistic abbreviations]%
+ [2019/06/09 v2.2 Leipzig package for linguistic abbreviations]%
@@ -422,7 +422,7 @@
}%
\def\@newleipzig#1#2\@nil{%
\ifleipzigdonotindex
- \uppercase{\expandafter\gdef\csname #2}#2\endcsname{%
+ \uppercase{\expandafter\gdef\csname #1}#2\endcsname{%
\leipzigfont{\glsentryshort{#1#2}}%
}%
\else
@@ -468,7 +468,8 @@
\fi
{\newleipzig{#2}}{\newleipzig[#1]{#2}}%
}%
-}{%
+}%
+{%
\newcommand{\newleipzig}[4][]{\@newleipzig(#3)#2\@nil}%
\newcommand{\renewleipzig}[4][]{%
\if@leipzig@defined{#2}
@@ -482,12 +483,22 @@
\@gobbletwo
}%
}
+ \def\if@leipzig@defined#1{%
+ \uppercase\expandafter{\expandafter\ifcsname\@car#1\@nil}\@cdr#1\@nil\endcsname
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
+ }
\def\@newleipzig(#1)#2#3\@nil{%
\uppercase{\expandafter\gdef\csname #2}#3\endcsname{\leipzigfont{#1}}
}%
}
\@ifpackageloaded{glossaries}{%
+ \ifleipzig@nostandards\leipzigdonotindextrue\fi
\loadglsentries{leipzig.tex}%
+ \glsfindwidesttoplevelname[\leipzigtype]%
+ \leipzigdonotindexfalse
}%
{\input{leipzig.tex}}%
%%