initial commit

This commit is contained in:
Christian Clason 2021-04-12 14:10:20 +02:00
commit 00df81e56b
8 changed files with 183 additions and 0 deletions

BIN
DistProTh.otf Normal file

Binary file not shown.

BIN
FRANKGB.TTF Normal file

Binary file not shown.

BIN
FRANKGBOB.TTF Normal file

Binary file not shown.

BIN
FRANKGD.TTF Normal file

Binary file not shown.

BIN
FRANKGDOB.TTF Normal file

Binary file not shown.

15
kfu-clason.lco Normal file
View file

@ -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}}

39
kfu-letter.tex Normal file
View file

@ -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}

129
kfu-math.lco Normal file
View file

@ -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}