CTAN update: boolexpr
Date: August 31, 2009 7:40:38 AM CEST
This update should within a day be at your local mirror.
Jim Hefferon
Saint Michael's College
..................................................................................
The following information was provided by our fellow contributor:
Name of contribution: boolexpr
Version number: 2.9
Author's name: Florent CHERVET
Location on CTAN: /macros/latex/contrib/boolexpr/
Summary description: purely expandable boolean expressions and switch (eTeX) [v2.9 2008/08/31]
License type: lppl
Announcement text:
Testing values of counters required \number of \numexpr : \boolexpr{\number\value{myCounter}=5} Now number is no more required before \value. \switch has an optional argument (and remains purely expandable...): eg: \switch[\value{myCounter}] \case{=0}... \case{<10}... \case{<=12}... \otherwise...... \endswitch Documentation updated.
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/boolexpr/ . More information is at http://tug.ctan.org/pkg/boolexpr (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Testing values of counters required \number of \numexpr : \boolexpr{\number\value{myCounter}=5} Now number is no more required before \value. \switch has an optional argument (and remains purely expandable...): eg: \switch[\value{myCounter}] \case{=0}... \case{<10}... \case{<=12}... \otherwise...... \endswitch Documentation updated.
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/boolexpr/ . More information is at http://tug.ctan.org/pkg/boolexpr (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
boolexpr – A boolean expression evaluator and a switch command
The \boolexpr macro evaluates boolean expressions in a purely expandable way.
\boolexpr{ A \OR B \AND C } expands to 0 if the logical
expression is TRUE. A, B, C may be:
numeric expressions such as:
x=y, x<>y, x>y
or x<y;
– boolean switches: \iftrue 0\else 1\fi;
– conditionals: \ifcsname whatsit\endcsname 0\else 1\fi;
– another \boolexpr: \boolexpr{ D \OR E \AND F }:
\boolexpr may be used with \ifcase:
\ifcase\boolexpr{ A \OR B \AND C } What to do if true \else What to do if false \fi
The \switch command (which is also expandable) has the form:
\switch \case{<boolean expression>} ... \case{<boolean expression>} ... ... \otherwise ... \endswitch
Package | boolexpr |
Version | 3.14 |
Copyright | 2009 Florent Chervet |
Maintainer | Florent Chervet |