commit 2ba3699b62f105b245fd5e358e5e6d46a60596d1 Author: Christian Clason Date: Tue Mar 1 19:59:42 2022 +0100 initial commit diff --git a/fonts/FiraMath-SemiLight.otf b/fonts/FiraMath-SemiLight.otf new file mode 100644 index 0000000..c0c4309 Binary files /dev/null and b/fonts/FiraMath-SemiLight.otf differ diff --git a/fonts/NunitoSans-ExtraBold.ttf b/fonts/NunitoSans-ExtraBold.ttf new file mode 100644 index 0000000..c14a315 Binary files /dev/null and b/fonts/NunitoSans-ExtraBold.ttf differ diff --git a/fonts/NunitoSans-ExtraBoldItalic.ttf b/fonts/NunitoSans-ExtraBoldItalic.ttf new file mode 100644 index 0000000..cf2af66 Binary files /dev/null and b/fonts/NunitoSans-ExtraBoldItalic.ttf differ diff --git a/fonts/NunitoSans-Light.ttf b/fonts/NunitoSans-Light.ttf new file mode 100644 index 0000000..db2aa0e Binary files /dev/null and b/fonts/NunitoSans-Light.ttf differ diff --git a/fonts/NunitoSans-LightItalic.ttf b/fonts/NunitoSans-LightItalic.ttf new file mode 100644 index 0000000..83f64d0 Binary files /dev/null and b/fonts/NunitoSans-LightItalic.ttf differ diff --git a/kfureport.tex b/kfureport.tex new file mode 100644 index 0000000..f7540ee --- /dev/null +++ b/kfureport.tex @@ -0,0 +1,34 @@ +%!TEX TS-program = xelatex +\documentclass[english]{kfureprt} +\usepackage{lipsum} + +\author{Christian Clason} +\title{A nice report} +\subtitle{On an interesting topic} + +\begin{document} +\maketitle + +\tableofcontents + +\newpage + +\section{A first section} + +\textbf{A first section.} + +This is a good section! \emph{Very} good. \textbf{Very, \emph{very}}, good! + +\lipsum[1-10] + +\newpage + +\section{A second section} + +On a new page, for good measure. With some $\alpha$-class mathematics! Like so: +\begin{equation*} + F(1) - F(0) = \int_0^1 f(x)\,dx. +\end{equation*} + + +\end{document} diff --git a/kfureprt.cls b/kfureprt.cls new file mode 100644 index 0000000..43d1261 --- /dev/null +++ b/kfureprt.cls @@ -0,0 +1,122 @@ +%% kfureprt.cls +%% author: christian clason (c.clason@uni-graz.at) +% +% scrartcl (KOMAscript) template for University of Graz +% implements layout according to corporate design of 2022 +% and provides defaults for Institute of Mathematics and Scientific Computing + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{kfureprt}[2021/03/01 v0.3 Uni Graz CD reports] + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptions + +\LoadClass[ +11pt, +usegeometry=on, +DIV=calc, +titlepage=firstiscover, +fullsizetitle, +headings=small, +oneside, +numbers=noenddot, +parskip=half, +]{scrartcl} + +\usepackage[left=20mm,right=20mm,bottom=30mm]{geometry} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% language support +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage{babel} +\RequirePackage[autostyle=true]{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} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% define colors +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage[svgnames,hyperref]{xcolor} +\definecolor{hrefcolor}{rgb}{0.0,0.4,0.7} +\definecolor{citecolor}{rgb}{0.0,0.35,0.2} +\definecolor{linkcolor}{RGB}{0,76,147} +\definecolor{kfu@gray}{RGB}{198,198,198} +\definecolor{kfu@yellow}{RGB}{255,213,0} + +\RequirePackage[ +colorlinks=true, +linkcolor=linkcolor, +citecolor=linkcolor, +filecolor=linkcolor, +urlcolor=linkcolor, +pdfencoding=auto, +hypertexnames=false, +linktocpage=true,% +]{hyperref} +\newcommand{\email}[1]{\href{mailto:#1}{\texttt{#1}}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% footers +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage{scrlayer-scrpage} +\RequirePackage{lastpage} +\newcommand{\pageofpages}{% + \begingroup + \hypersetup{linkcolor=black} + \@ifundefined{pageof@\languagename} + {page~\thepage~of~\pageref{LastPage}} + {\@nameuse{pageof@\languagename}}% + \endgroup +} +\newcommand{\pageof@ngerman}{Seite~\thepage~von~\pageref{LastPage}} +\addtokomafont{pageheadfoot}{\normalfont\sffamily\footnotesize} +\cfoot{} +\ofoot{\upshape\pageofpages} +\pagestyle{scrheadings} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% title page +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage{graphicx} +\newcommand*\myuniversity{UNIVERSITY OF GRAZ} +\providecaptionname{ngerman}\myuniversity{UNIVERSITÄT GRAZ} +\newcommand*\myinstituteA{Institute of Mathematics and} +\providecaptionname{ngerman}\myinstituteA{Institut für Mathematik und} +\newcommand*\myinstituteB{Scientific Computing} +\providecaptionname{ngerman}\myinstituteB{Wissenschaftliches Rechnen} +\renewcommand*{\maketitle}{% + \begin{titlepage} + \newgeometry{lmargin=2cm, rmargin=1cm, bmargin=3cm} + \vspace*{-3cm} + {% + \hfill + \parbox[c]{6cm}{\raggedleft + \Large \myuniversity\\[1.2ex] + \normalsize \myinstituteA\\[0.1ex] \myinstituteB + } + \parbox[c]{3cm}{\centering + \includegraphics[height=3cm,keepaspectratio=true]{kfulogo} + } + \par + } + \vspace{7cm} + {\usekomafont{title}{\Huge \@title \par}}% + \vskip 1em + {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}% + \vskip 2em + {\usekomafont{date}{\normalsize \@date \par}} + \vskip 25em + {\ifx\@subtitle\@empty\else\usekomafont{author}\@author\par\fi}% + \end{titlepage} +}