You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
3.4 KiB

\documentclass[parskip=full]{scrartcl}
\usepackage{tikz}
\usepackage{hyperref}
\usepackage{setspace}
\usepackage{pbox}
\usepackage{geometry}
\usepackage{fancyhdr}
\usepackage{enumitem}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=5mm,
}
\renewcommand*{\DefaultOptionsofRadio}{print,radio, radiosymbol=6, width=\baselineskip, bordercolor={black}, borderwidth=0pt}
\renewcommand*{\DefaultOptionsofText}{print,bordercolor={black}, backgroundcolor=white, borderwidth=0pt}
\renewcommand{\LayoutTextField}[2]{% label, field
\setbox0=\hbox{#1\unskip}\ifdim\wd0=0pt
\setbox1=\hbox{#2\unskip}\ifdim\ht1>3ex
% Multiline
\begin{tikzpicture}[every node/.style={inner sep=0,outer sep=0}]
\node[anchor=west] (TextFieldNode) at (0cm,0cm) {#2};
\draw [thick] (current bounding box.south west) rectangle (current bounding box.north east);
\end{tikzpicture}%
\else
% Inline field, lowered a little bit to be better integrated into the text
\raisebox{-3.2pt}{\begin{tikzpicture}[every node/.style={inner sep=0,outer sep=0}]
\node[anchor=west] (TextFieldNode) at (0cm,0cm) {#2};
\draw[thick] ([yshift=-0.3ex]TextFieldNode.south west) -- ([yshift=-0.3ex]TextFieldNode.south east);
\end{tikzpicture}}%
\fi
\else
% Field with label below it
\begin{tikzpicture}[every node/.style={inner sep=0,outer sep=0}]
\node[anchor=west] (TextFieldNode) at (0cm,2ex) {#2};
\draw[thick] ([yshift=-0.3ex]TextFieldNode.south west) -- ([yshift=-0.3ex]TextFieldNode.south east);
\node[anchor=west,font=\footnotesize] at (0cm,-0.9ex) {#1};
\end{tikzpicture}%
\fi
}
\newcommand{\field}[2]{\TextField[width=#2]{#1}}
\newcommand{\fieldinline}[2]{\TextField[width=#2,name=#1]{}}
\newcommand{\radiosize}{0.33cm}
\newcommand{\yesnoticks}[1]{%
\raisebox{-3.2pt}{\begin{tikzpicture}[every node/.style={inner sep=0,outer sep=0}]
\node[anchor=west,style={inner sep=2px}] (FieldYes) at (0cm,0cm) {\ChoiceMenu[radio=true,name=#1,width=\radiosize,height=\radiosize]{}{=Yes}};
\node[anchor=west] (LabelYes) at ([xshift=0.7ex]FieldYes.east) {Ja};
\node[anchor=west,style={inner sep=2px}] (FieldNo) at ([xshift=1ex]LabelYes.east) {\ChoiceMenu[radio=true,name=#1,width=\radiosize,height=\radiosize]{}{=No}};
\node[anchor=west] (LabelNo) at ([xshift=0.7ex]FieldNo.east) {Nein};
\draw [thick] ([xshift=-(\radiosize+0.15cm),yshift=-(\radiosize+0.15cm)]FieldYes.north east) rectangle (FieldYes.north east);
\draw [thick] ([xshift=-(\radiosize+0.15cm),yshift=-(\radiosize+0.15cm)]FieldNo.north east) rectangle (FieldNo.north east);
\end{tikzpicture}}%
}
\newcommand{\yesno}[2]{\pbox{0.7\textwidth}{\setstretch{1}#1}\hfill\yesnoticks{#2}}
\renewcommand{\rmdefault}{phv} % setting helvetica as our font
% daten
\newcommand{\CHAOSTREFFNAME}{Chaostreff Tübingen e.V.}
\newcommand{\IBAN}{DE61 6415 0020 0004 8049 10}
\newcommand{\BIC}{SOLADES1TUB}
\newcommand{\CREDITORID}{DE42ZZZ00002730248}
\begin{document}
\pagestyle{fancy}
\fancyfoot[L]{\CHAOSTREFFNAME{} \textbullet \hspace{} \textbf{IBAN:} \IBAN{} \textbullet \hspace{} \textbf{BIC:} \BIC{} \textbullet \hspace{} \textbf{Gläubiger-ID:} \CREDITORID{}}
\fancyfoot[C]{ }
% uncomment either one of these
% diese hier eher gedacht für z.B. fördermitglieder, oder wo ggf. mehr Daten erforderlich sind
%\include{form_long.tex}
% diese hier für ordentliche mitglieder, etwas gekürzt und benötigt nur email
\include{form_short.tex}
\newpage
\include{sepa.tex}
\end{document}