summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/csvsimple
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-05 22:58:44 +0000
committerKarl Berry <karl@freefriends.org>2011-04-05 22:58:44 +0000
commit3eec9d6f256c17603e9cbe8bbeaaf4b180034cd4 (patch)
tree8937ad4ac4e1c9636daf76dae2cbe45586b50336 /Master/texmf-dist/tex/latex/csvsimple
parentd26ca9599fb340e32bbdf5b22d211abc6837f00d (diff)
csvsimple (4apr11)
git-svn-id: svn://tug.org/texlive/trunk@21981 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/csvsimple')
-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}},