summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/coollist
diff options
context:
space:
mode:
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}%
}%
}%
}%