new dserfa command

This commit is contained in:
Benjamin Kellermann 2017-02-21 01:20:21 +01:00
parent 4b43e511e6
commit f9d7a3c099
1 changed files with 46 additions and 0 deletions

View File

@ -96,6 +96,8 @@
tabsize=2
}
\RequirePackage{booktabs}
\RequirePackage{colortbl}
\RequirePackage{scrlayer-scrpage}
\RequirePackage{graphicx}
\RequirePackage{tikz}
@ -320,6 +322,50 @@
\end{impressum*}
}
\RequirePackage{pgfplotstable}
\newcommand{\DSerfakreise}{
\pgfplotstableset{
columns/Erfa/.style={string type},
columns/Ort/.style={string type},
columns/Tag/.style={
string type,
column name={Tag, Uhrzeit}
},
columns/Adresse/.style={string type},
columns/Bemerkung/.style={string type,
assign cell content/.code={
\pgfkeyssetvalue{/pgfplots/table/@cell content}{\url{##1}}
},
},
create on use/Zusammen/.style={
string type,
create col/assign/.code={
\getthisrow{Erfa}\erfa
\getthisrow{Ort}\ort
\edef\entry{ {\erfa~wohnt im \ort}}%
\pgfkeyslet{/pgfplots/table/create col/next content}\entry
},
},
columns/Zusammen/.style={
string type,
},
}
\pgfplotstabletypeset[
col sep=semicolon,
% columns={Erfa,Ort},
%
empty cells with={--}, % replace empty cells
%every head row/.style={before row=\toprule, after row=\midrule},
%every last row/.style={after row=\midrule},
every even row/.style={%
before row={%
\rowcolor{lightgray}
},
},
]{schleuderpackung/example/adressliste.csv}
}
\RequirePackage{environ}
\RequirePackage{eurosym}
\newcommand{\DSPage@fg}{black}