documented schild command

This commit is contained in:
manuelthieme 2019-06-09 20:32:35 +02:00
parent 0ae7d566a6
commit afd7b1f1a2
2 changed files with 13 additions and 4 deletions

View file

@ -195,7 +195,7 @@
% pagestyle % pagestyle
\pagestyle{empty} \pagestyle{empty}
\newcommand{\schild}[4]{ \newcommand{\schild}[5]{
\begin{minipage}[b][\textheight][b]{.25\textwidth}% \begin{minipage}[b][\textheight][b]{.25\textwidth}%
\centering \centering
% QR code url is 3rd argument % QR code url is 3rd argument
@ -223,7 +223,7 @@
#1 #1
\end{fitbox} \end{fitbox}
\vspace{0cm} \ifthenelse{\not{\equal{#5}{}}}{\vspace{#5}}{}
\begin{fitbox}{\textwidth}{.22\textheight} \begin{fitbox}{\textwidth}{.22\textheight}
\centering \centering
#2 #2

View file

@ -1,7 +1,16 @@
\documentclass{kifschild} \documentclass{kifschild}
\begin{document} \begin{document}
% build as many signs as you may want.
% \schild{<text1>}{<text2>}{<qr-url>}{<image-url>}{<spacing>}
% <text1> The Text that takes the bigger part of the Sign. It fits to its bounds.
% <text2> The Text that takes the lower smaller part of the sign. Also fits to bounds.
% <qr-url> URL for qr code to generate as an image. Do not use together with <image-url>
% Leave it blank for no qr code.
% <image-url> local path for image to include. It fits to the space.
% Do not use together with <qr-url>. Leave it blank for no image.
% <spacing> For finetuning reasons. Add length to space out the boxes for <text1> and <text2>
\schild{Kein Papier?}{Sag dem Infopoint bescheid}{https://dvb.de}{} \schild{Kein Papier?}{Sag dem Infopoint bescheid}{https://dvb.de}{}{1cm}
\schild{Kein Papier!}{Ich sag' hier niemandem was.}{}{charlie.jpg} \schild{Kein Papier!}{Ich sag' hier niemandem was.}{}{charlie.jpg}{}
\end{document} \end{document}