diff options
Diffstat (limited to 'skript.cls')
-rw-r--r-- | skript.cls | 67 |
1 files changed, 38 insertions, 29 deletions
@@ -9,27 +9,35 @@ \RequirePackage{tikz-cd} \tikzcdset{arrow style=tikz, diagrams={>=stealth}} -\RequirePackage{ifluatex} +\RequirePackage{ifxetex,ifluatex} +\newif\ifxetexorluatex +\ifxetex + \xetexorluatextrue +\else + \ifluatex + \xetexorluatextrue + \else + \xetexorluatexfalse + \fi +\fi -\RequirePackage{csquotes} -\RequirePackage{hyphenat} -\RequirePackage{titlesec} +\RequirePackage{scrlayer-scrpage} \RequirePackage{gitinfo} -\RequirePackage{mathtools} -\RequirePackage{amsmath, amssymb} +\RequirePackage{mathtools} +\RequirePackage{amsmath, amssymb} -\ifluatex - \RequirePackage{polyglossia} +\ifxetexorluatex + \RequirePackage[babelshorthands]{polyglossia} \setdefaultlanguage{german} - \RequirePackage{libertine} + \setmainfont{Libertinus Serif} \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} - \setmathfont{TeX Gyre Pagella Math} - \setmathfont[range=\setminus]{XITS Math} - \setmathfont[range={\sum}]{TeX Gyre Termes Math} - \setmathfont[range={\int}]{XITS Math} - \setmathfont{Latin Modern Math}[range={cal,bfcal},StylisticSet=1] + \setmathfont[AutoFakeBold]{Libertinus Math} + \setmathfont[AutoFakeBold,range={\rightarrow,\leftarrow,\rightharpoonup,\rightharpoondown,\leftharpoondown,\leftharpoonup}]{texgyretermes-math.otf} + \setmathfont[AutoFakeBold,range={\Vert,\lbrace,\rbrace,\vert}]{xits-math.otf} + \setmathfont[AutoFakeBold,range={\BbbN,\BbbR,\BbbC,\BbbZ,\mathbb,\int}]{XITS Math} + % \setmathfont{latinmodern-math.otf}[range={cal,bfcal}] \else \RequirePackage[ngerman]{babel} \RequirePackage[utf8]{inputenc} @@ -38,37 +46,39 @@ \RequirePackage[libertine]{newtxmath} \RequirePackage[cal=zapfc,bb=boondox]{mathalfa} \RequirePackage[T1]{fontenc} + \def\lAngle{\langle\langle} + \def\rAngle{\rangle\rangle} \fi % fonts \setkomafont{disposition}{\rmfamily} -\RequirePackage{mathtools} -\RequirePackage{amsmath, amsfonts, amssymb} - % fonts -\RequirePackage{textcomp} % für erweiterten Text-Symbolvorrat \RequirePackage{setspace} -\setstretch{1.05} +\setstretch{1.1} \setlength\parskip{4pt} \setlength\parindent{0pt} \RequirePackage[amsmath, thmmarks, framed]{ntheorem} \RequirePackage[framemethod=tikz]{mdframed} -\RequirePackage{versions} -\RequirePackage{hyperref} +\RequirePackage[unicode,colorlinks]{hyperref} \RequirePackage[capitalise, nameinlink]{cleveref} -\RequirePackage{scrpage2} -\RequirePackage{authoraftertitle} - \pagestyle{scrheadings} \clearscrheadfoot \ohead{\headmark} -\cfoot{-- \pagemark~--} +\cfoot{\pagemark} +\ifoot{\tiny Revision\gitVtags: \gitAbbrevHash{} (\gitAuthorDate)} \automark{section} +\RequirePackage[ + backend=biber, + style=alphabetic, + giveninits, + url=true, + ]{biblatex} + \usepackage{enumitem} \setenumerate{label=(\alph*)} @@ -118,8 +128,8 @@ \def\newdef#1#2{\newtheorem{#1}[defsatzusw]{#2}\newtheorem*{#1-nn}{#2}} \theoremseparator{.} \numberwithin{defsatzusw}{section} -% \theoremsymbol{\ensuremath{\diamond}} % kursive schrift +\theorembodyfont{\normalfont} \theoremstyle{mychange} \newthm{satz}{Satz} \newthm{lemma}{Lemma} @@ -148,12 +158,11 @@ \theorembodyfont{\normalfont} \theoremseparator{.} % \theoremsymbol{\scalebox{0.8}{\ensuremath{\blacksquare}}} -\theoremsymbol{\nolinebreak[1]\hspace*{.5em plus 1fill}\ensuremath{\blacksquare}} +\theoremsymbol{\nolinebreak[1]\hspace*{.5em plus 1fill}\scalebox{0.8}{\ensuremath{\blacksquare}}} \newtheorem{proof}{Beweis} \newtheorem{beweis}{Beweis} -\titleformat{\section}{\titlefont\Large}% - {\S\,\thesection}{.66em}{} \renewcommand{\thesection}{\arabic{section}} +\renewcommand\sectionformat{\S \thesection\autodot \hspace{1ex}} \endinput
\ No newline at end of file |