diff --git a/kifschild.cls b/kifschild.cls index 17a4a63..5f1d437 100644 --- a/kifschild.cls +++ b/kifschild.cls @@ -195,7 +195,7 @@ % pagestyle \pagestyle{empty} -\newcommand{\schild}[4]{ +\newcommand{\schild}[5]{ \begin{minipage}[b][\textheight][b]{.25\textwidth}% \centering % QR code url is 3rd argument @@ -223,7 +223,7 @@ #1 \end{fitbox} - \vspace{0cm} + \ifthenelse{\not{\equal{#5}{}}}{\vspace{#5}}{} \begin{fitbox}{\textwidth}{.22\textheight} \centering #2 diff --git a/kifschild.tex b/kifschild.tex index 3fdf71d..36f832f 100644 --- a/kifschild.tex +++ b/kifschild.tex @@ -1,7 +1,16 @@ \documentclass{kifschild} \begin{document} +% build as many signs as you may want. +% \schild{}{}{}{}{} +% The Text that takes the bigger part of the Sign. It fits to its bounds. +% The Text that takes the lower smaller part of the sign. Also fits to bounds. +% URL for qr code to generate as an image. Do not use together with +% Leave it blank for no qr code. +% local path for image to include. It fits to the space. +% Do not use together with . Leave it blank for no image. +% For finetuning reasons. Add length to space out the boxes for and -\schild{Kein Papier?}{Sag dem Infopoint bescheid}{https://dvb.de}{} -\schild{Kein Papier!}{Ich sag' hier niemandem was.}{}{charlie.jpg} +\schild{Kein Papier?}{Sag dem Infopoint bescheid}{https://dvb.de}{}{1cm} +\schild{Kein Papier!}{Ich sag' hier niemandem was.}{}{charlie.jpg}{} \end{document}