diff options
author | Norbert Preining <preining@logic.at> | 2007-11-16 11:36:27 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-11-16 11:36:27 +0000 |
commit | 4adbea2c56b6d6306b139ba9de0b60e4e0a2dc26 (patch) | |
tree | 9d19c15d43a7d1d3e6a45321fe288d6267e337ec /Master/texmf-dist/tex/latex/vhistory/sets.sty | |
parent | b7899e95726c10175f384c1bf7baadbab493336d (diff) |
vhistory 2007-07-21
git-svn-id: svn://tug.org/texlive/trunk@5467 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/vhistory/sets.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/vhistory/sets.sty | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/vhistory/sets.sty b/Master/texmf-dist/tex/latex/vhistory/sets.sty index 2a16a869cbc..8c5de82fa42 100644 --- a/Master/texmf-dist/tex/latex/vhistory/sets.sty +++ b/Master/texmf-dist/tex/latex/vhistory/sets.sty @@ -3,8 +3,8 @@ %% FILE: sets.sty %% %% %% %% AUTHOR: Jochen Wertenauer %% -%% VERSION: 1.0 %% -%% DATE: 2005-02-17 %% +%% VERSION: 1.1 %% +%% DATE: 2006-01-09 %% %% %% %% LICENSE: This program may be distributed and/or modified under the %% %% conditions of the LaTeX Project Public License, either version 1.2 %% @@ -30,7 +30,7 @@ %% and using that macro would solve the problem. Commands like like "A %% %% work fine. Of course an element cannot contain the character | (but %% %% you can "hide" it in a command like \boldTest, too). %% -%% Another forbidden element is the command \endset. %% +%% Other forbidden elemente are the commands \endset and \empty. %% %% In this package a set is normally sorted and contains no duplicates %% %% unless you explicitly want it as it is by using \newsetsimple (but %% %% several operations will return a sorted set without duplicates). %% @@ -157,8 +157,8 @@ % Helper method for \sizeofset. Recursively calls itself. Implemented straight % forward. \def \sets@sizeofset #1|#2\endset#3{% - \def \sizetemps@t {#1}% - \ifx \sizetemps@t\empty\else + \def \sizetemps@t{#1}% + \ifx \sizetemps@t\empty\relax\else \stepcounter{#3}% \def \sizetemps@t{#2}% \ifx\sizetemps@t\empty\else @@ -176,13 +176,12 @@ \def \setseparator{,\ } %% Prints the contents of set #1. Elements will be separated by \setseparator. -\def \listset #1{\xpa\sets@listset #1|\endset} +\def \listset #1{\xpa\sets@listset #1|\empty\endset} %% Helper method for \listset. \def \sets@listset #1|#2\endset{% - \def \temps@t{#2}% #1% - \ifx\temps@t\empty{}\else + \ifx #2\empty{}\else \setseparator \sets@ReturnFi{\sets@listset #2\endset}% \fi |