commit 00df81e56bcb4640fa31950e58a8570fab3dd42f Author: Christian Clason Date: Mon Apr 12 14:10:20 2021 +0200 initial commit diff --git a/DistProTh.otf b/DistProTh.otf new file mode 100644 index 0000000..1512dcc Binary files /dev/null and b/DistProTh.otf differ diff --git a/FRANKGB.TTF b/FRANKGB.TTF new file mode 100644 index 0000000..f73ed48 Binary files /dev/null and b/FRANKGB.TTF differ diff --git a/FRANKGBOB.TTF b/FRANKGBOB.TTF new file mode 100644 index 0000000..74a8677 Binary files /dev/null and b/FRANKGBOB.TTF differ diff --git a/FRANKGD.TTF b/FRANKGD.TTF new file mode 100644 index 0000000..e714a74 Binary files /dev/null and b/FRANKGD.TTF differ diff --git a/FRANKGDOB.TTF b/FRANKGDOB.TTF new file mode 100644 index 0000000..4d7a61f Binary files /dev/null and b/FRANKGDOB.TTF differ diff --git a/kfu-clason.lco b/kfu-clason.lco new file mode 100644 index 0000000..5401dfb --- /dev/null +++ b/kfu-clason.lco @@ -0,0 +1,15 @@ +\setkomavar{fromname}{% Name (Kopf und Signatur) +Christian Clason} +\setkomavar{fromtitle}{% Titel (Kopf) +Univ.-Prof.~Dr.\,rer.nat.} +\setkomavar{fromurl}{% Webseite (Fuß) +https://homepage.uni-graz.at/c.clason} +\setkomavar{fromemail}{% Email (ohne @uni-graz.at) +c.clason} +\setkomavar{fromphone}{% Durchwahl +5158} +\setkomavar{backaddress}{% Adresszeile im Sichtfenster +Clason% +\usekomavar{backaddressseparator}Mathematik% +\usekomavar{backaddressseparator}KFU% +\usekomavar{backaddressseparator}\usekomavar{fromaddress}} diff --git a/kfu-letter.tex b/kfu-letter.tex new file mode 100644 index 0000000..f7d4201 --- /dev/null +++ b/kfu-letter.tex @@ -0,0 +1,39 @@ +%!TEX TS-program = lualatex +\documentclass[kfu-math, % Layout, Insituts-Angaben + kfu-clason, % Name, tel, email vom Mitarbeiter + english, % Sprache: 'ngerman' oder 'english' + % print, % für Ausdruck: Faltmarken, Rückanschrift + fontsize=11pt % Größe der Grundschrift: '10pt' oder '11pt' +]{scrlttr2} + +\usepackage{lipsum} +\begin{document} + +\begin{letter}{% + Frau Professor\\ + Karin Musterfrau\\ + Sensengasse 1\\ + 1090 Wien\\ + Österreich + } + +\setkomavar{subject}{Testbrief} + +\opening{Sehr geehrte Frau Professor Musterfrau,} + +vielen Dank für Ihre \emph{freundliche} Unterstützung. + +\lipsum + +\lipsum + +% \setkomavar{signature}{Dein Christian} +\closing{Mit besten Grüßen,} + +%\encl{}% etwaige Anlagenliste mit \\ trennen +%\ps % Postskriptum ohne {} +%\cc{}% etwaige Verteilerliste mit \\ trennen + +\end{letter} + +\end{document} diff --git a/kfu-math.lco b/kfu-math.lco new file mode 100644 index 0000000..5426e36 --- /dev/null +++ b/kfu-math.lco @@ -0,0 +1,129 @@ +%% kfu-math.lco +%% author: christian clason (c.clason@uni-graz.at) +% +% scrlttr2 (KOMAscript) template for University of Graz +% implements layout according to corporate design of 2017 +% and provides defaults for Institute of Mathematics and Scientific Computing + +\ProvidesFile{kfu-math.lco}[2021-03-27 letter class option 'KFU Mathematik'] + +\RequirePackage{calc} +\RequirePackage{kvoptions} +\SetupKeyvalOptions{ + family = kfu, + prefix = kfu@ +} +\DeclareBoolOption{print} +\ProcessKeyvalOptions* + +\RequirePackage{babel} +\RequirePackage{csquotes} +\RequirePackage{fontspec} +\setmainfont[Ligatures=TeX, ExternalLocation, +ItalicFont=FRANKGBOB, +BoldFont=FRANKGD, +BoldItalicFont=FRANKGDOB]{FRANKGB} +\newfontfamily\institutefont[ExternalLocation]{DistProTh} +\RequirePackage{microtype} + +\KOMAoptions{paper=a4, parskip=half-, enlargefirstpage=on, subject=left} +\usepackage[left=20mm,right=20mm,bottom=30mm]{geometry} +\@setplength{firstheadvpos}{1cm} +\@setplength{firstheadhpos}{30mm} +\@setplength{firstheadwidth}{170mm} +\@setplength{firstfoothpos}{20mm} +\@setplength{firstfootvpos}{287mm} +\@addtoplength[-5]{firstfootvpos}{\baselineskip} +\@setplength{refhpos}{30mm} +\@setplength{refwidth}{170mm} +\@setplength{sigbeforevskip}{3\baselineskip} +\let\raggedsignature=\raggedright + +\ifkfu@print + \KOMAoptions{foldmarks=true} +\else + \KOMAoptions{foldmarks=off} + \KOMAoptions{backaddress=off} +\fi + +\RequirePackage{xcolor} +\definecolor{kfu@gray}{gray}{0.5} +\RequirePackage{graphicx} +\RequirePackage[colorlinks=true,urlcolor=black]{hyperref} +\urlstyle{rm} + +\newkomavar{myinstitute} +\newkomavar{myuniversity} +\newkomavar{fromtitle} +\newkomavar{emaildomain} +\providecaptionname{english}\myinstitute{Institute of Mathematics and Scientific Computing} +\providecaptionname{ngerman}\myinstitute{Institut für Mathematik und Wissenschaftliches Rechnen} +\providecaptionname{english}\myuniversity{UNIVERSITY OF GRAZ} +\providecaptionname{ngerman}\myuniversity{UNIVERSITÄT GRAZ} +\setkomavar{myinstitute}{\myinstitute} +\setkomavar{myuniversity}{\myuniversity} + +\setkomavar{emaildomain}{@uni-graz.at} +\setkomavar{phoneseparator}{:~+43~316~380~} +\providecaptionname{english}\myaddress{Heinrichstrasse 36, 8010 Graz, Austria} +\providecaptionname{ngerman}\myaddress{Heinrichstrasse 36, 8010 Graz} + +\setkomavar{fromaddress}{\myaddress} +\setkomavar{backaddressseparator}{~\raisebox{0.25ex}{\textbf{\large.}}~} +\setkomavar{fromfax}{\usekomavar[\faxname]{faxseparator}+43~316~380~9815} +\setkomavar{place}{Graz} + +\setkomavar{signature}{\usekomavar{fromtitle}~\usekomavar{fromname}} + +\setkomavar{firsthead}{% + \raggedleft + \parbox[c]{12cm}{\raggedleft \color{kfu@gray} + \huge \institutefont UNIVERSITÄT GRAZ\\UNIVERSITY OF GRAZ\\[0.75ex] + \Large\usekomavar{myinstitute} + }\hspace{1em} + \parbox[c]{3cm}{\centering + \includegraphics[height=2.5cm,keepaspectratio=true]{logo_uni_graz_4c.pdf} + } +} + +\setkomavar{firstfoot}{\small% + \color{kfu@gray} + \footnotesize\raggedleft + \usekomavar{fromtitle}~\usekomavar{fromname}\\ + \usekomavar{fromaddress}\\ + \usekomavar[\phonename]{phoneseparator}\usekomavar{fromphone}\\ + \usekomavar{fromfax}\\ + \usekomavar[\emailname]{emailseparator}\usekomavar{fromemail}\usekomavar{emaildomain}\\ + \pageofpages\hfill + \begingroup + \hypersetup{urlcolor=kfu@gray} + \usekomavar[\url]{fromurl} + \endgroup +} + + +\RequirePackage{scrlayer-scrpage} +\RequirePackage{lastpage} +\newcommand{\pageofpages}{% + \begingroup + \hypersetup{linkcolor=kfu@gray} + \@ifundefined{pageof@\languagename} + {page~\thepage~of~\pageref{LastPage}} % a default + {\@nameuse{pageof@\languagename}}% + \endgroup +} +\newcommand{\pageof@ngerman}{Seite~\thepage~von~\pageref{LastPage}} + +\DeclareNewLayer[foreground,rightmargin, +contents={\rotatebox{90}{% + \parbox[b][0.4\layerwidth][b]{0.953\layerheight}{ + \Large\usekomavar[\color{kfu@gray}\institutefont]{myuniversity}}} +}] +{KFUletter.right} +\DeclareNewLayer[foreground,foot, +contents={\color{kfu@gray}\upshape\footnotesize\hfill\pageofpages}] +{KFUletter.outer} +\DeclarePageStyleByLayers{kfuletter}{% +KFUletter.right,KFUletter.outer} +\pagestyle{kfuletter} +