summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/seealso
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-24 22:27:33 +0000
committerKarl Berry <karl@freefriends.org>2017-03-24 22:27:33 +0000
commitae2003403c75fd90aa7273314aad1b78c1feec89 (patch)
tree5539e0cbd55e2bcd0c70c1e0a180eb4d5d61e6a5 /Master/texmf-dist/tex/latex/seealso
parent638c484cd54573bf377234d46c5d564c53421bb5 (diff)
seealso (24mar17)
git-svn-id: svn://tug.org/texlive/trunk@43595 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/seealso')
-rw-r--r--Master/texmf-dist/tex/latex/seealso/seealso.sty20
1 files changed, 16 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/seealso/seealso.sty b/Master/texmf-dist/tex/latex/seealso/seealso.sty
index 235beb8f4a8..18a341a5aa8 100644
--- a/Master/texmf-dist/tex/latex/seealso/seealso.sty
+++ b/Master/texmf-dist/tex/latex/seealso/seealso.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2014 by Leo Liu <leoliu.pku@gmail.com>
+%% Copyright (C) 2014, 2017 by Leo Liu <leoliu.pku@gmail.com>
%% --------------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -20,8 +20,20 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{seealso}
- [2014/04/10 v1.1 makeidx's see and seealso with page number support.]
+ [2017/03/23 v1.2 makeidx's see and seealso with page number support.]
\RequirePackage{etoolbox}
+\long\def\seealso@ifinlist@#1#2#3#4{%
+ \def\next{#4}%
+ \def\do##1{%
+ \ifstrequal{##1}{#2}
+ {\def\next{#3}\listbreak}
+ {}}%
+ \dolistloop{#1}%
+ \next}
+\protected\long\def\seealso@ifinlist#1#2{%
+ \seealso@ifinlist@{#2}{#1}}
+\protected\long\def\seealso@ifinlistcs#1#2{%
+ \expandafter\seealso@ifinlist@\csname #2\endcsname{#1}}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=seealso@opt,
@@ -62,7 +74,7 @@
\newcommand\DeclareSeealsoMacro[3]{%
\newcommand#1[2]{%
\seealso@setactivecr
- \ifinlistcs{##1}{seealso@#2@list}
+ \seealso@ifinlistcs{##1}{seealso@#2@list}
{}
{\listcsgadd{seealso@#2@list}{##1}}%
\csuse{seealso@#2@pageformat}{##2}}%
@@ -114,7 +126,7 @@
\fi}
\let\seealso@enditemlist\empty
\def\seealso@enditemlistadd#1{%
- \ifinlist{#1}\seealso@enditemlist
+ \seealso@ifinlist{#1}\seealso@enditemlist
{}
{\listadd\seealso@enditemlist{#1}}}
\define@key{seealso}{enditem}{%