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