From 8e498d680934e32b062c538a8359521fa428b6a4 Mon Sep 17 00:00:00 2001
From: Manuel Pégourié-Gonnard <mpg@elzevir.fr>
Date: Mon, 8 Oct 2012 09:18:20 +0000
Subject: datatool update

git-svn-id: svn://tug.org/texlive/trunk@27917 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/datatool/datatool-pgfmath.sty        | 24 ++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty')

diff --git a/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty b/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty
index b6a593d36eb..39e8597e71a 100644
--- a/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty
+++ b/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty
@@ -39,30 +39,42 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool-pgfmath}[2012/09/25 v2.11 (NLCT)]
+\ProvidesPackage{datatool-pgfmath}[2012/10/06 v2.12 (NLCT)]
 \RequirePackage{xkeyval}
 \RequirePackage{pgfrcs,pgfkeys,pgfmath}
 \ProcessOptionsX
 \providecommand*{\@dtl@mathprocessor}{pgfmath}
 \newcommand*{\dtlifnumeq}[4]{%
-  \pgfmathifthenelse{#1==#2}{"#3"}{"#4"}%
+  \def\@dtl@truepart{#3}%
+  \def\@dtl@falsepart{#4}%
+  \pgfmathifthenelse{0#1==0#2}{"\noexpand\@dtl@truepart"}{"\noexpand\@dtl@falsepart"}%
   \pgfmathresult
 }
 \RequirePackage{datatool-base}
 \newcommand*{\dtlifnumlt}[4]{%
-  \pgfmathifthenelse{#1 < #2}{"#3"}{"#4"}%
+  \def\@dtl@truepart{#3}%
+  \def\@dtl@falsepart{#4}%
+  \pgfmathifthenelse{0#1 < 0#2}{"\noexpand\@dtl@truepart"}{"\noexpand\@dtl@falsepart"}%
   \pgfmathresult
 }
 \newcommand*{\dtlifnumgt}[4]{%
-  \pgfmathifthenelse{#1 > #2}{"#3"}{"#4"}%
+  \def\@dtl@truepart{#3}%
+  \def\@dtl@falsepart{#4}%
+  \pgfmathifthenelse{0#1 > 0#2}{"\noexpand\@dtl@truepart"}{"\noexpand\@dtl@falsepart"}%
   \pgfmathresult
 }
 \newcommand*{\dtlifnumopenbetween}[5]{%
-  \pgfmathifthenelse{(#2 < #1) && (#1 < #3)}{"#4"}{"#5"}%
+  \def\@dtl@truepart{#4}%
+  \def\@dtl@falsepart{#5}%
+  \pgfmathifthenelse{(0#2 < 0#1) && (0#1 < 0#3)}
+    {"\noexpand\@dtl@truepart"}{"\noexpand\@dtl@falsepart"}%
   \pgfmathresult
 }
 \newcommand*{\dtlifnumclosedbetween}[5]{%
-  \pgfmathifthenelse{(#2 <= #1) && (#1 <= #3)}{"#4"}{"#5"}%
+  \def\@dtl@truepart{#4}%
+  \def\@dtl@falsepart{#5}%
+  \pgfmathifthenelse{(0#2 <= #1) && (0#1 <= 0#3)}
+    {"\noexpand\@dtl@truepart"}{"\noexpand\@dtl@falsepart"}%
   \pgfmathresult
 }
 \newcommand*{\dtladd}[3]{%
-- 
cgit v1.2.3

