new version to print out erfas
parent
747d3e8567
commit
627267a1ca
|
@ -324,47 +324,36 @@
|
|||
}
|
||||
|
||||
\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}
|
||||
\newcommand{\DSerfakreise}[1]{%
|
||||
\definecolor{color0}{gray}{0.9}%
|
||||
\definecolor{color1}{gray}{0.7}%
|
||||
\pgfplotstableread[col sep=semicolon]{#1}\addresstable%
|
||||
\pgfplotstablegetrowsof{\addresstable}%
|
||||
\pgfmathparse{\pgfplotsretval-1}%
|
||||
\foreach \index in {0,...,\pgfmathresult}{%
|
||||
\pgfmathparse{int(mod(\index,2))}%
|
||||
\definecolor{currentcolor}{named}{color\pgfmathresult}%
|
||||
\noindent\tikz[baseline,outer sep=0]{\node[
|
||||
text width=\textwidth,
|
||||
anchor=base,
|
||||
outer sep=0,
|
||||
%inner sep=0,
|
||||
fill=currentcolor
|
||||
]{%
|
||||
\pgfmathparse{int(mod(\index,2))}%
|
||||
\pgfplotstablegetelem{\index}{Erfa}\of\addresstable%
|
||||
\noindent\textbf{\pgfplotsretval}, %
|
||||
\pgfplotstablegetelem{\index}{Ort}\of\addresstable%
|
||||
\ifthenelse{\equal{\pgfplotsretval}{}}{}{\pgfplotsretval, }%
|
||||
\pgfplotstablegetelem{\index}{Tag}\of\addresstable%
|
||||
\pgfplotsretval, %
|
||||
\pgfplotstablegetelem{\index}{Adresse}\of\addresstable%
|
||||
\pgfplotsretval, %
|
||||
\pgfplotstablegetelem{\index}{Bemerkung}\of\addresstable%
|
||||
\url{\pgfplotsretval}%
|
||||
}}%
|
||||
\\[-1pt]
|
||||
}
|
||||
}
|
||||
|
||||
\RequirePackage{environ}
|
||||
|
|
Loading…
Reference in New Issue