129 lines
4 KiB
Text
129 lines
4 KiB
Text
%% 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 Department of Mathematics and Scientific Computing
|
|
|
|
\ProvidesFile{kfu-math.lco}[2022-03-05 letter class option 'KFU Mathematik']
|
|
|
|
\RequirePackage{calc}
|
|
\RequirePackage{kvoptions}
|
|
\SetupKeyvalOptions{
|
|
family = kfu,
|
|
prefix = kfu@
|
|
}
|
|
\DeclareBoolOption{print}
|
|
\ProcessKeyvalOptions*
|
|
|
|
\RequirePackage[ngerman,english]{babel}
|
|
\RequirePackage{csquotes}
|
|
\RequirePackage{fontspec}
|
|
\setsansfont[Ligatures=TeX, ExternalLocation, Path=fonts/,
|
|
UprightFont=*Light,
|
|
ItalicFont=*LightItalic,
|
|
BoldFont=*ExtraBold,
|
|
BoldItalicFont=*ExtraBoldItalic]{NunitoSans-}
|
|
|
|
\usepackage{unicode-math}
|
|
\setmathfont[Scale=0.9, ExternalLocation, Path=fonts/]{FiraMath-SemiLight}
|
|
\renewcommand{\familydefault}{\sfdefault}
|
|
\frenchspacing
|
|
\RequirePackage{microtype}
|
|
|
|
\KOMAoptions{paper=a4, parskip=half-, enlargefirstpage=on, subject=left}
|
|
\usepackage[left=20mm,right=20mm,bottom=51.2mm]{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,linkcolor=black,urlcolor=black]{hyperref}
|
|
\urlstyle{sf}
|
|
|
|
\newkomavar{myinstitute}
|
|
\newkomavar{myuniversity}
|
|
\newkomavar{fromtitle}
|
|
\newkomavar{emaildomain}
|
|
\providecaptionname{english}\myinstitute{Department 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~(0)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~(0)316\,/\,380-9815}
|
|
\setkomavar{place}{Graz}
|
|
|
|
\setkomavar{signature}{\usekomavar{fromtitle}~\usekomavar{fromname}}
|
|
|
|
\renewcommand{\ps}{\footnotesize\itshape \bigskip}
|
|
\renewcaptionname{ngerman}{\enclname}{Beilage}
|
|
|
|
\setkomavar{firsthead}{%
|
|
\raggedleft
|
|
\parbox[c]{8.5cm}{\raggedleft%
|
|
\includegraphics[height=2.5cm,keepaspectratio=true]{kfulogo_claim.pdf}
|
|
}
|
|
}
|
|
|
|
\setkomavar{firstfoot}{\scriptsize\raggedleft%
|
|
\textbf{\myuniversity}\\
|
|
\textbf{\myinstitute}\\[1ex]
|
|
\usekomavar{fromtitle}~\usekomavar{fromname}\\
|
|
\usekomavar{fromaddress}\\
|
|
\usekomavar{phoneseparator}\usekomavar{fromphone}~|~%
|
|
\usekomavar{fromemail}\usekomavar{emaildomain}\\
|
|
\pageofpages\hfill
|
|
\usekomavar[\url]{fromurl}
|
|
}
|
|
|
|
\RequirePackage{scrlayer-scrpage}
|
|
\RequirePackage{lastpage}
|
|
\newcommand{\pageofpages}{%
|
|
\@ifundefined{pageof@\languagename}
|
|
{page~\thepage~of~\pageref{LastPage}} % a default
|
|
{\@nameuse{pageof@\languagename}}%
|
|
}
|
|
\newcommand{\pageof@ngerman}{Seite~\thepage~von~\pageref{LastPage}}
|
|
|
|
\DeclareNewLayer[foreground,foot,
|
|
contents={
|
|
|
|
\scriptsize\raggedleft
|
|
\textbf{\myuniversity}\\
|
|
\textbf{\myinstitute}\\[1ex]
|
|
\usekomavar{fromtitle}~\usekomavar{fromname}\\
|
|
\usekomavar{fromaddress}\\
|
|
\usekomavar{phoneseparator}\usekomavar{fromphone}~|~%
|
|
\usekomavar{fromemail}\usekomavar{emaildomain}\\
|
|
\pageofpages\hfill
|
|
\usekomavar[\url]{fromurl}
|
|
|
|
}
|
|
]{KFUletter.left}
|
|
\DeclarePageStyleByLayers{kfuletter}{KFUletter.left}
|
|
\pagestyle{kfuletter}
|