3
0
Fork 0
mirror of https://github.com/fsr/ese-spiel synced 2024-11-15 12:23:11 +01:00
ese-spiel/Schilder/eseSchildgenerator.tex

81 lines
2 KiB
TeX

\documentclass[12pt, a4paper]{article}
\usepackage[left=0.4cm, right=0.00cm, top=1.5cm, bottom=0.5cm]{geometry}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{float}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{tikz}
\usepackage{xifthen}
\usepackage{color, colortbl}
\usepackage[first=5, last=18]{lcg}
\usepackage{hyphenat}
\usepackage{array,booktabs}
\usepackage{lscape}
\definecolor{eseColor}{RGB}{1, 133, 84}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\pagenumbering{gobble}
\setmainfont{Exo2-Regular.ttf}
% \linespread{1.3}
\def\chopline#1\\{
\def\name{#1}
}
\newif\ifmore \moretrue
\newif\ifnewpage \newpagetrue
\newboolean{newPage}
\setboolean{newPage}{true}
\begin{document}
\newread\quelle
\openin\quelle=orte.csv
\loop
\read\quelle to \zeile
\ifeof\quelle
\global\morefalse
\else
\expandafter\chopline\zeile\\
\read\quelle to \zeilee
\ifeof\quelle
\global\morefalse
\fi
\begin{tikzpicture}
\ifthenelse{\NOT \isundefined{\zeile}{}}{
\filldraw[fill=eseColor, draw=black, rounded corners=8pt] (0,0) rectangle (18, 13);
\filldraw[fill=white, draw=black, rounded corners=8pt] (0.5 ,0.5) rectangle (17.5,12.5);
\node at (9, 6.5){\fontsize{60}{60}\selectfont\zeile};
\node at (15, 11){\includegraphics[width=0.2\textwidth]{../LogoCropped.pdf}};
}{}
\draw[dashed] (0, 13.5) -- (19, 13.5);
\ifthenelse{\NOT \isundefined{\zeilee}{}}{
\filldraw[fill=eseColor, draw=black, rounded corners=8pt] (0, 14) rectangle (18, 27);
\filldraw[fill=white, draw=black, rounded corners=8pt] (0.5, 14.5) rectangle (17.5, 26.5);
\node at (9, 20.5){\fontsize{60}{60}\selectfont \zeilee};
\node at (15, 25){\includegraphics[width=0.2\textwidth]{../LogoCropped.pdf}};
}{}
\end{tikzpicture}
\fi%
\ifmore\repeat%
%
\closein\quelle%
%
\end{document}