summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/coollist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-20 23:33:54 +0000
committerKarl Berry <karl@freefriends.org>2009-09-20 23:33:54 +0000
commitb07ceb5e9913df5242a8e58faca8f8e060109b10 (patch)
tree86cef879ad0f389ce638000ece90d30832812d12 /Master/texmf-dist/tex/latex/coollist
parent44bb8968da104e49b3765b18aa54f62870f88c39 (diff)
coollist update (20sep09)
git-svn-id: svn://tug.org/texlive/trunk@15389 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/coollist')
-rw-r--r--Master/texmf-dist/tex/latex/coollist/coollist.sty19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/coollist/coollist.sty b/Master/texmf-dist/tex/latex/coollist/coollist.sty
index 052ea198fe6..a17ecac30ac 100644
--- a/Master/texmf-dist/tex/latex/coollist/coollist.sty
+++ b/Master/texmf-dist/tex/latex/coollist/coollist.sty
@@ -13,7 +13,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{coollist}
- [2007/10/14 v1.3 COntent Oriented LaTeX Lists]
+ [2009/09/20 v1.4 COntent Oriented LaTeX Lists]
\RequirePackage{ifthen}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
@@ -114,19 +114,19 @@
\newcounter{COOL@register@len}
\newboolean{COOL@listsum@isint}
\newcommand{\listsum}[3][liststored=false]{%
-\ifthenelse{ \equal{#1}{liststored=false} }%
+\ifthenelse{ \equal{#1}{liststored=false} \OR \equal{#1}{storedlist=false} }%
{%
\liststore{#2}{COOL@listtosum@element@}%
\listlenstore{COOL@listlen}{#2}%
}%
-{ \ifthenelse{ \equal{#1}{liststored=true} }%
+{ \ifthenelse{ \equal{#1}{liststored=true} \OR \equal{#1}{storedlist=true} }%
{%
\listcopy{#2}{COOL@listtosum@element@}%
\setcounter{COOL@listlen}{\COOL@listtosum@element@length}%
}%
{%
\PackageError{cool}{Invalid listsum optional argument}%
- {listsum's optional argument may only be `storedlist=true' or `storedlist=false'}%
+ {optional argument may only be `storedlist=true', `liststored=true', `storedlist=false', or `liststored=false'}%
}}%
\ifthenelse{ \value{COOL@listlen} < 1 }%
{%
@@ -170,7 +170,9 @@
}%
\setcounter{COOL@intsum}{\COOL@listsum@known@element@coef}%
\addtocounter{COOL@intsum}{1}%
- \expandafter\xdef\csname COOL@listsum@register@coef@\roman{COOL@register@ct}\endcsname{\arabic{COOL@intsum}}%
+ \expandafter%
+ \xdef\csname COOL@listsum@register@coef@\roman{COOL@register@ct}\endcsname%
+ {\arabic{COOL@intsum}}%
\setboolean{COOL@found}{true}%
}%
{%
@@ -180,8 +182,11 @@
{}%
{%
\addtocounter{COOL@register@len}{1}%
- \expandafter\xdef\csname COOL@listsum@register@\roman{COOL@register@len}\endcsname{\COOL@listsum@element}%
- \expandafter\xdef\csname COOL@listsum@register@coef@\roman{COOL@register@len}\endcsname{1}%
+ \expandafter%
+ \xdef\csname COOL@listsum@register@\roman{COOL@register@len}\endcsname%
+ {\COOL@listsum@element}%
+ \expandafter%
+ \xdef\csname COOL@listsum@register@coef@\roman{COOL@register@len}\endcsname{1}%
}%
}%
}%