From 3eec9d6f256c17603e9cbe8bbeaaf4b180034cd4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 5 Apr 2011 22:58:44 +0000 Subject: csvsimple (4apr11) git-svn-id: svn://tug.org/texlive/trunk@21981 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex') 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}}, -- cgit v1.2.3