diff --git a/teckids2urkunde.cls b/teckids2urkunde.cls new file mode 100644 index 0000000000000000000000000000000000000000..01ece853af8939ab771426f78ee6a82c178b7b9b --- /dev/null +++ b/teckids2urkunde.cls @@ -0,0 +1,53 @@ +% Dokumentklasse „Urkunde“ für den Teckids e.V. +% +% Copyright © 2018 +% mirabilos <thorsten.glaser@teckids.org> +% +% Provided that these terms and disclaimer and all copyright notices +% are retained or reproduced in an accompanying document, permission +% is granted to deal in this work without restriction, including un†+% limited rights to use, publicly perform, distribute, sell, modify, +% merge, give away, or sublicence. +% +% This work is provided “AS IS†and WITHOUT WARRANTY of any kind, to +% the utmost extent permitted by applicable law, neither express nor +% implied; without malicious intent or gross negligence. In no event +% may a licensor, author or contributor be held liable for indirect, +% direct, other damage, loss, or other issues arising in any way out +% of dealing in the work, even if advised of the possibility of such +% damage or existence of a defect, except proven that it results out +% of said person’s immediate fault when using the work as intended. + +\NeedsTeXFormat{LaTeX2e}% +\ProvidesClass{teckids2jahresbericht}[2018/08/21 0.1 Teckids Urkunde class]% + +\PassOptionsToPackage{paper=a4}{typearea}% +\RequirePackage{fancyhdr}% +\LoadClass{scrartcl}% +\RequirePackage{teckids2style}% + +\geometry{hmargin=2cm,top=0.5cm,showframe}% +% tell fancyhdr to redo its geometry calculations +\makeatletter\f@nch@setoffs\makeatother% +% restore lengths damaged during geometry change +\setlength{\intextsep}{0pt}% + +% run parent style constructor +\teckidshdr[\the\year{}]{Urkunde}% +% clear page design +\fancyhf{}% +\renewcommand{\headrulewidth}{0pt}% +\renewcommand{\footrulewidth}{0pt}% + +% Berichtskopf mit Titel und Logo, Normalfall +\newcommand{\teckidshead}[1]{% + \begin{minipage}[c]{.5\linewidth}\centering\Large\textbf{#1}\end{minipage} + \hfill% + \begin{minipage}[c]{.4\linewidth}\teckidslogo[\linewidth]\end{minipage} +}% +% Berichtskopf mit Titel und Logo, Sonderfall (mehrzeiliger Text) +\newcommand{\teckidsheadleft}[1]{% + \begin{minipage}[c]{.5\linewidth}\Large\textbf{#1}\end{minipage} + \hfill% + \begin{minipage}[c]{.4\linewidth}\teckidslogo[\linewidth]\end{minipage} +}%