summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tableof
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-02-21 23:03:57 +0000
committerKarl Berry <karl@freefriends.org>2015-02-21 23:03:57 +0000
commite4f727c8991f7980badd242b13ad357e3aa970bd (patch)
treef78eac5986bf438bff65d50aa935cfbe29a6f28b /Master/texmf-dist/tex/latex/tableof
parentce8d92af4260f815abdb49c6dc8736307d50e93e (diff)
tableof (21feb15)
git-svn-id: svn://tug.org/texlive/trunk@36347 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tableof')
-rw-r--r--Master/texmf-dist/tex/latex/tableof/tableof.sty30
1 files changed, 21 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/tableof/tableof.sty b/Master/texmf-dist/tex/latex/tableof/tableof.sty
index 73d4b1a944f..855ada6d8d3 100644
--- a/Master/texmf-dist/tex/latex/tableof/tableof.sty
+++ b/Master/texmf-dist/tex/latex/tableof/tableof.sty
@@ -22,10 +22,10 @@
%% in the same archive or directory.)
%%
\ProvidesPackage{tableof}
- [2015/02/11 v1.3 Tables of tagged contents (jfB)]
+ [2015/02/20 v1.4 Tables of tagged contents (jfB)]
%%
%% Package: tableof
-%% Version: 1.3 (2015/02/11)
+%% Version: 1.4 (2015/02/20)
%% License: LPPL 1.3c
%% Copyright (C) 2012-2015 Jean-Francois Burnol <jfbu at free dot fr>
%%
@@ -83,15 +83,27 @@
\@for\@tempa:=\tof@tags@tmp\do {\tof@false{\@tempa}}%
\@for\@tempa:=\tof@untags@tmp\do{\tof@true {\@tempa}}}
\def\tof@filter#1#2{\ifx#1#2\else
- \ifx\tof@tmptags\@empty\edef\tof@tmptags{#2}\else
- \edef\tof@tmptags{\tof@tmptags,#2}\fi\fi}
+ \ifx\tof@tmptags\@empty
+ \expandafter\def\expandafter\tof@tmptags\expandafter{#2}%
+ \else
+ \expandafter\expandafter\expandafter\def
+ \expandafter\expandafter\expandafter\tof@tmptags
+ \expandafter\expandafter\expandafter{\expandafter
+ \tof@tmptags\expandafter,#2}%
+ \fi\fi}
\def\tof@@starttags#1{%
- \ifx\tof@tags\@empty\edef\tof@tags{#1}\else
- \edef\tof@tags{\tof@tags,#1}\fi}
+ \ifx\tof@tags\@empty
+ \def\tof@tags{#1}%
+ \else
+ \expandafter\def\expandafter\tof@tags\expandafter{\tof@tags,#1}%
+ \fi }
\def\tof@@stoptags#1{%
- \@for\@tempa:=#1\do{\def\tof@tmptags{}%
- \@for\@tempb:=\tof@tags\do{\tof@filter\@tempa\@tempb}%
- \edef\tof@tags{\tof@tmptags}}}
+ \@for\@tempa:=#1\do{%
+ \def\tof@tmptags{}%
+ \@for\@tempb:=\tof@tags\do{\tof@filter\@tempa\@tempb}%
+ \expandafter\def\expandafter\tof@tags\expandafter{\tof@tmptags}%
+ }%
+ }
\def\tof@init#1{%
\def\tof@begin{%
\begingroup