12.07.2015 Views

Manual for the csvsimple package

Manual for the csvsimple package

Manual for the csvsimple package

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

\csvfilteracceptAll following consistent data lines will be accepted and processed. This command overwritesall previous filter settings and may be used inside /csv/be<strong>for</strong>e filter → P. 11 to implementan own filtering rule toge<strong>the</strong>r with \csvfilterreject.\csvreader[autotabular,be<strong>for</strong>e filter=\if<strong>the</strong>nelse{\equal{\csvcoliv}{m}}{\csvfilteraccept}{\csvfilterreject}]{grade.csv}{}{\csvlinetotablerow}%name givenname matriculation gender gradeMaier Hans 12345 m 1.0Weißbäck Werner 34567 m 5.0\csvfilterrejectAll following data lines will be ignored. This command overwrites all previous filter settings.\csvlineThis macro contains <strong>the</strong> current and unprocessed data line.\csvreader[no head, tabbing, table head=\textit{line XX:}\=\kill]%{grade.csv}{}{\textit{line \<strong>the</strong>csvrow:} \> \csvline}%line 1:line 2:line 3:line 4:name,givenname,matriculation,gender,gradeMaier,Hans,12345,m,1.0Huber,Anna,23456,f,2.3Weißbäck,Werner,34567,m,5.0\<strong>the</strong>csvrowTypesets <strong>the</strong> current data line number. This is <strong>the</strong> current number of accepted data lineswithout <strong>the</strong> header line. The L A TEX counter csvrow can be addressed directly in <strong>the</strong> usualway, e. g. by \roman{csvrow}.\<strong>the</strong>csvinputlineTypesets <strong>the</strong> current file line number. This is <strong>the</strong> current number of all data lines including<strong>the</strong> header line. The L A TEX counter csvinputline can be addressed directly in <strong>the</strong> usualway, e. g. by \roman{csvinputline}.\csvreader[no head, filter equal={\<strong>the</strong>csvinputline}{3}]%{grade.csv}{}%{The line with number \<strong>the</strong>csvinputline\ contains: \csvline}%The line with number 3 contains: Huber,Anna,23456,f,2.3\csvlinetotablerowTypesets <strong>the</strong> current processed data line with & between <strong>the</strong> entries. Most users will neverapply this command.10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!