summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/schule/latex/schule.mod.Formulare.code.tex
blob: fc41b245bab3a993bb49ebf93467a6dece9e4680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% Formulare
% ********************************************************************
\AtBeginDocument{\begin{Form}}
\AtEndDocument{\end{Form}}

\newlength{\schule@TextFieldHeight}

\NewDocumentCommand{\feldLinFormular}{O{0.7cm} m O{}}{
    \par
    \begin{tikzpicture}
        \pgfmathsetlength\schule@TextFieldHeight{#2 * #1}
        \foreach \n in {1,...,#2} % Linien zeichnen
            \draw[gray](0, -#1*\n )--(0.99\linewidth, -#1*\n );
        \node (0,0) [anchor=north west, inner sep=0pt] {\TextField[name=Comment,multiline=true,height={\schule@TextFieldHeight},charsize=18pt,backgroundcolor=,width=0.99\linewidth,bordercolor=,#3]{}};
\end{tikzpicture}
}