aboutsummaryrefslogtreecommitdiff
path: root/latex
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-10 13:17:18 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-10 13:17:18 +0200
commitacd6226445687057efa9bf28c8655fbca3d129e2 (patch)
treef20624ab5a95c91b9cc4b311f829d0124eeab0a1 /latex
parent36477f2d2655662208ab70aa3d6893dc18c6ecc7 (diff)
downloadunterricht-acd6226445687057efa9bf28c8655fbca3d129e2.tar.gz
unterricht-acd6226445687057efa9bf28c8655fbca3d129e2.zip
move signature header and border into test class
Diffstat (limited to 'latex')
-rw-r--r--latex/test.cls15
1 files changed, 15 insertions, 0 deletions
diff --git a/latex/test.cls b/latex/test.cls
index ee3c2e68..21e10261 100644
--- a/latex/test.cls
+++ b/latex/test.cls
@@ -9,6 +9,9 @@
\newtoggle{drawborder}
\DeclareOption{drawborder}{\toggletrue{drawborder}}
+\newtoggle{sigfooter}
+\DeclareOption{sigfooter}{\toggletrue{sigfooter}}
+
\newtoggle{erwartungshorizont}
\newcommand{\ifeh}[1]{\iftoggle{erwartungshorizont}{#1}{}}
\DeclareOption{erwartungshorizont}{\toggletrue{erwartungshorizont}}
@@ -46,6 +49,11 @@
\end{tikzpicture}
}
}
+ \AtEndDocument{
+ \begin{tikzpicture}[remember picture, overlay, black]
+ \node[left] at (current page marginpar area.south east) {\bfseries \ \ \ \ {/}\AnzahlInsgesamtPunkte \ BE};
+ \end{tikzpicture}
+ }
}{}
\renewcommand{\baselinestretch}{1,5}
@@ -129,3 +137,10 @@
\fancyhead[L]{\ifdefined\KeinLogo \else \includegraphics[width=0.3\textwidth]{\LogoSchule} \newline \fi \Schule}
\fancyhead[R]{\Large Name: \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
}
+
+\iftoggle{sigfooter}{
+ \fancypagestyle{last-page}{
+ \fancyfoot[C]{\makebox[\dimexpr\linewidth-2\fboxsep-2\fboxrule]{% Center footer
+ \includegraphics[height=1cm]{images/Kleeblatt.jpg} Viel Erfolg! \Signatur}}}
+ \AtEndDocument{\thispagestyle{last-page}}
+}{}