Merge branch 'master' of git.c3d2.de:schleuderpackung
This commit is contained in:
commit
ed6583c30c
|
@ -324,47 +324,36 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
\RequirePackage{pgfplotstable}
|
\RequirePackage{pgfplotstable}
|
||||||
\newcommand{\DSerfakreise}{
|
\newcommand{\DSerfakreise}[1]{%
|
||||||
\pgfplotstableset{
|
\definecolor{color0}{gray}{0.9}%
|
||||||
columns/Erfa/.style={string type},
|
\definecolor{color1}{gray}{0.7}%
|
||||||
columns/Ort/.style={string type},
|
\pgfplotstableread[col sep=semicolon]{#1}\addresstable%
|
||||||
columns/Tag/.style={
|
\pgfplotstablegetrowsof{\addresstable}%
|
||||||
string type,
|
\pgfmathparse{\pgfplotsretval-1}%
|
||||||
column name={Tag, Uhrzeit}
|
\foreach \index in {0,...,\pgfmathresult}{%
|
||||||
},
|
\pgfmathparse{int(mod(\index,2))}%
|
||||||
columns/Adresse/.style={string type},
|
\definecolor{currentcolor}{named}{color\pgfmathresult}%
|
||||||
columns/Bemerkung/.style={string type,
|
\noindent\tikz[baseline,outer sep=0]{\node[
|
||||||
assign cell content/.code={
|
text width=\textwidth,
|
||||||
\pgfkeyssetvalue{/pgfplots/table/@cell content}{\url{##1}}
|
anchor=base,
|
||||||
},
|
outer sep=0,
|
||||||
},
|
%inner sep=0,
|
||||||
create on use/Zusammen/.style={
|
fill=currentcolor
|
||||||
string type,
|
]{%
|
||||||
create col/assign/.code={
|
\pgfmathparse{int(mod(\index,2))}%
|
||||||
\getthisrow{Erfa}\erfa
|
\pgfplotstablegetelem{\index}{Erfa}\of\addresstable%
|
||||||
\getthisrow{Ort}\ort
|
\noindent\textbf{\pgfplotsretval}, %
|
||||||
\edef\entry{ {\erfa~wohnt im \ort}}%
|
\pgfplotstablegetelem{\index}{Ort}\of\addresstable%
|
||||||
\pgfkeyslet{/pgfplots/table/create col/next content}\entry
|
\ifthenelse{\equal{\pgfplotsretval}{}}{}{\pgfplotsretval, }%
|
||||||
},
|
\pgfplotstablegetelem{\index}{Tag}\of\addresstable%
|
||||||
|
\pgfplotsretval, %
|
||||||
},
|
\pgfplotstablegetelem{\index}{Adresse}\of\addresstable%
|
||||||
columns/Zusammen/.style={
|
\pgfplotsretval, %
|
||||||
string type,
|
\pgfplotstablegetelem{\index}{Bemerkung}\of\addresstable%
|
||||||
},
|
\url{\pgfplotsretval}%
|
||||||
|
}}%
|
||||||
|
\\[-1pt]
|
||||||
}
|
}
|
||||||
\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{environ}
|
||||||
|
|
Loading…
Reference in New Issue