summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty')
-rw-r--r--Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty16
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty b/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty
index 98459c5a6c4..f7f4dc39cd6 100644
--- a/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty
+++ b/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 1.01 (2010/11/10)
+%% The LaTeX package csvsimple - version 1.02 (2011/04/04)
%% csvsimple.sty: Simple LaTeX CSV file processing
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{csvsimple}[2010/11/10 version 1.01 LaTeX CSV file processing]
+\ProvidesPackage{csvsimple}[2011/04/04 version 1.02 LaTeX CSV file processing]
\RequirePackage{pgfkeys,ifthen}
@@ -148,6 +148,14 @@
}{}%
}
+\def\csv@truefilter#1#2{#1}
+
+\def\csv@falsefilter#1#2{#2}
+
+\def\csvfilteraccept{\global\let\csv@iffilter=\csv@truefilter}
+
+\def\csvfilterreject{\global\let\csv@iffilter=\csv@falsefilter}
+
% check columns
\def\csv@checkcolumncount{%
\ifnum\thecsvcol=\csv@columncount%
@@ -281,7 +289,9 @@
filter/.code={%
\def\temp{#1}\toks@=\expandafter{\temp}%
\xdef\csv@iffilter{\noexpand\ifthenelse{\the\toks@}}},
- nofilter/.code={\gdef\csv@iffilter##1##2{##1}},
+ nofilter/.code={\csvfilteraccept},
+ filter reject all/.code={\csvfilterreject},
+ filter accept all/.code={\csvfilteraccept},
before filter/.gstore in=\csv@prefiltercommand,
before first line/.gstore in=\csv@prefirstline,
before line/.code={\gdef\csv@preline{#1}\pgfkeysalso{before first line=#1}},