54 lines
1.3 KiB
TeX
54 lines
1.3 KiB
TeX
% vim: set filetype:tex
|
|
|
|
% Identification %
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesClass{ngsummary}[2021/12/21 NG summary class]
|
|
|
|
% Handle options %
|
|
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
|
|
\ProcessOptions\relax
|
|
|
|
% More declarations %
|
|
\LoadClass[sfdefaults=false, parskip=half]{scrartcl}
|
|
|
|
%\KOMAoptions{mpinclude=true}
|
|
%\recalctypearea
|
|
|
|
\RequirePackage{ngutils}
|
|
|
|
% define fonts
|
|
\RequirePackage{fontspec}
|
|
\RequirePackage[math-style=upright]{unicode-math}
|
|
\setmainfont{TeX Gyre Pagella}
|
|
\setsansfont{TeX Gyre Heros}
|
|
\setmonofont{TeX Gyre Cursor}
|
|
\setmathfont{Euler Math}
|
|
|
|
\setlength{\marginparwidth}{1.5\marginparwidth}
|
|
\setlength{\fboxrule}{\heavyrulewidth}
|
|
|
|
% Use sansfont for all title elements
|
|
\addtokomafont{titlehead}{\sffamily}
|
|
\addtokomafont{subject}{\normalfont \sffamily \itshape}
|
|
\addtokomafont{title}{\sffamily}
|
|
\addtokomafont{subtitle}{\sffamily}
|
|
\addtokomafont{author}{\sffamily}
|
|
\addtokomafont{date}{\sffamily}
|
|
\addtokomafont{publishers}{\sffamily}
|
|
|
|
% Use serif font for headings
|
|
% \addtokomafont{disposition}{\rmfamily}
|
|
|
|
% Use serif italic for description labels
|
|
\addtokomafont{descriptionlabel}{\normalfont \itshape}
|
|
|
|
\DeclareNewTOC
|
|
[
|
|
type=algorithm,
|
|
types=algorithms,
|
|
float,
|
|
floattype=4,
|
|
name=Algorithmus,
|
|
listname={Algorithmenverzeichnis}
|
|
]
|
|
{loa}
|