From a214e25aa35703933434387c49111d827d19ebca Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 6 Apr 2019 21:12:39 +0000
Subject: keyindex (6apr19)

git-svn-id: svn://tug.org/texlive/trunk@50814 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/keyindex/keyindex.sty | 60 +++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 Master/texmf-dist/tex/latex/keyindex/keyindex.sty

(limited to 'Master/texmf-dist/tex/latex/keyindex/keyindex.sty')

diff --git a/Master/texmf-dist/tex/latex/keyindex/keyindex.sty b/Master/texmf-dist/tex/latex/keyindex/keyindex.sty
new file mode 100644
index 00000000000..eec7d13372a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/keyindex/keyindex.sty
@@ -0,0 +1,60 @@
+%%
+%% This is file `keyindex.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% keyindex.dtx  (with options: `package')
+%% 
+%% This is a generated file.
+%% 
+%% Copyright (C) 2019 by Richard Zach <rzach@ucalgary.ca>
+%% 
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3c of this license
+%% or (at your option) any later version.  The latest version of this
+%% license is in:
+%% 
+%%    http://www.latex-project.org/lppl.txt
+%% 
+%% and version 1.3 or later is part of all distributions of LaTeX version
+%% 2005/12/01 or later.
+%% 
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{keyindex}
+    [2019/04/05 1.0 Index entries by key lookup]
+\RequirePackage{ifthen}
+\newcommand*{\keyindexfile}[1]{%
+  \renewcommand*{\@keyindexfile}{#1}}
+\newcommand*{\@keyindexfile}{\jobname.kix}
+\newcommand*{\keyindexformat}[1]{#1}
+\newcommand*{\missingkeyindexformat}[1]{%
+  \textbf{#1}}
+\newcommand*{\keyindexcommand}[1]{\index{#1}}
+\AtBeginDocument{%
+  \InputIfFileExists{\@keyindexfile}{%
+    \PackageInfo{keyindex}{Using index key definition file
+      \@keyindexfile.}}{%
+    \PackageWarning{keyindex}{No index key definition file
+      \@keyindexfile!}}}
+\newcommand*{\keyindexprint}[1]{\@ifundefined{kix@e@\detokenize{#1}}{%
+    \PackageWarning{keyindex}{Index key \detokenize{#1}
+      undefined}%
+    \missingkeyindexformat{#1}}{%
+    \keyindexformat{\@nameuse{kix@e@\detokenize{#1}}}}}
+\newcommand*{\keyindexonly}[2][]{\@ifundefined{kix@e@\detokenize{#2}}{%
+    \PackageWarning{keyindex}{Index key \detokenize{#2}
+      undefined}}{%
+    \ifthenelse{\equal{#1}{}}{%
+      \keyindexcommand{\@nameuse{kix@i@\detokenize{#2}}}}{%
+      \keyindexcommand{\@nameuse{kix@i@\detokenize{#2}}|#1}}}}
+\newcommand{\keyindex}[2][]{\keyindexprint{#2}\keyindexonly[#1]{#2}}
+\newcommand*{\keyindexentry}[3]{%
+  \@ifundefined{kix@e@\detokenize{#1}}{%
+    \@namedef{kix@e@\detokenize{#1}}{#2}%
+    \@namedef{kix@i@\detokenize{#1}}{#3}}{%
+    \PackageWarning{keyindex}{Duplicate definition for keyindex key
+      \detokenize{#1} ignored}}}
+\endinput
+%%
+%% End of file `keyindex.sty'.
-- 
cgit v1.2.3

