Skip to content
Snippets Groups Projects
Unverified Commit 6796d5f6 authored by mirabilos's avatar mirabilos Committed by mirabilos
Browse files

first cut at teckids2brief class but typearea is not yet proper

parent a665ab2c
No related branches found
No related tags found
No related merge requests found
% Dokumentklasse „Brief 2.0“ für den Teckids e.V.
%
% Copyright © 2015, 2017, 2018, 2019, 2024
% Thorsten Glaser <thorsten.glaser@teckids.org>
% Copyright © 2013
% Dominik George <nik@naturalnet.de>
%
% 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{teckids2brief}[2024/06/11 0.1 Teckids letter TeX/LaTeX class, second epoch]%
\PassOptionsToPackage{paper=a4,BCOR=6pt}{typearea}%
%\PassOptionsToPackage{paper=a4,BCOR=6pt,DIV=13}{typearea}%
\RequirePackage{fancyhdr}%
\LoadClass[paper=a4,
fromalign=right,
fromphone=on,
locfield=wide,
fontsize=10pt,
parskip=half,
refline=narrow,
pagenumber=headright,
headsepline=on]{scrlttr2}%
\RequirePackage{teckids2style}%
\RequirePackage{array}%
\RequirePackage{tabularx}%
\LoadLetterOption{teckids2ltr}%
\hypersetup{colorlinks = false}%
\teckidsgeometry[margin=2cm]%
%\recalctypearea%
% note: not in teckids2style as some pubmats use P for RaggedRight
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}%
\setkomavar{signature}{XXX signature unset XXX}% ← set in each letter!
\newkomavar{fromstreet}%
\newkomavar{fromdistrict}%
\newkomavar{fromco}%
\setkomavar{fromname}{Teckids e.V.}%
\setkomavar{fromstreet}{Kennedyallee 18}%
\setkomavar{fromdistrict}{53175 Bonn}%
\setkomavar{fromemail}{\emaillink{verein@teckids.org}}%
\setkomavar{fromphone}{+49 228 9293416‒0}%
\setkomavar{fromfax}{+49 228 9293416‒9}%
\setkomavar{fromurl}{https://www.teckids.org/}%
\setkomavar{backaddressseparator}{ \textperiodcentered\ }%
\setkomavar{fromaddress}{\usekomavar{fromstreet}\usekomavar[\\]{fromdistrict}}%
\setkomavar{fromlogo}{\includegraphics[height=60pt]{teckids_logo}}%
\setkomavar{location}{\begin{tabular}[t]{@{}rl}
\Letter & \usekomavar{fromname} \\
& \usekomavar{fromstreet} \\
& \usekomavar{fromdistrict} \\
\Telefon & \usekomavar{fromphone} \\
\Faxmachine & \usekomavar{fromfax} \\
\MVAt & \usekomavar{fromemail} \\
\Info & \usekomavar{fromurl} \\
\end{tabular}}%
\setkomavar{firsthead}{\hfill\usekomavar{fromlogo}}%
\setkomavar{firstfoot}{%
\parbox[t]{\textwidth}{\footnotesize%
\begin{tabularx}{\linewidth}[t]{@{}p{.75\linewidth} P{.25\linewidth}}
Vereinsregister Amtsgericht Bonn · VR 9846\newline
Vorstand: Dominik George, Tom Teichler, Benedict Suska\newline
Stadtsparkasse KölnBonn · IBAN: \mbox{DE31 3705 0198 1933 0485 46} · BIC: \mbox{COLSDE33XXX}\newline
Anerkannt als gemeinnützig beim Finanzamt Bonn-Außenstadt\newline
Steuernummer 206/5879/1026 · USt-ID: DE313359560
&
Unterstützt durch:
\vspace{\baselineskip}%
\includegraphics[height=3\baselineskip]{logo_informatik-aktuell}%
\end{tabularx}}%
}%
\@addtoplength{firstfootvpos}{-1cm}%
\@addtoplength{firstheadvpos}{0.5cm}%
\@setplength{sigbeforevskip}{1.5ex}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment