summaryrefslogtreecommitdiffstats
path: root/skript.cls
diff options
context:
space:
mode:
Diffstat (limited to 'skript.cls')
-rw-r--r--skript.cls45
1 files changed, 28 insertions, 17 deletions
diff --git a/skript.cls b/skript.cls
index 3fe51c9..d64285d 100644
--- a/skript.cls
+++ b/skript.cls
@@ -36,20 +36,21 @@
\RequirePackage[babelshorthands]{polyglossia}
\setdefaultlanguage{german}
\PolyglossiaSetup{german}{indentfirst=true}
+ \RequirePackage{csquotes}
\RequirePackage{fontspec}
- \defaultfontfeatures{Mapping=tex-text}
\RequirePackage{empheq}
\setmainfont{Libertinus Serif}
\RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
- \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={\BbbQ,\BbbN,\BbbR,\BbbC,\BbbZ,\mathbb,\int}]{XITS Math}
+ \setmathfont{Libertinus Math}
+ \setmathfont[range={\rightarrow,\leftarrow,\rightharpoonup,\rightharpoondown,\leftharpoondown,\leftharpoonup}]{texgyretermes-math.otf}
+ \setmathfont[range={\Vert,\lbrace,\rbrace,\vert}]{xits-math.otf}
+ \setmathfont[range={\BbbQ,\BbbN,\BbbR,\BbbC,\BbbZ,\mathbb,\int}]{XITS Math}
% \setmathfont[range={\mathcal, \mathbfcal}]{tgpagella-math.otf}
% \setmathfont[range={}]{Libertinus Math}
% \setmathfont{latinmodern-math.otf}[range={cal,bfcal}]
\else
\RequirePackage[ngerman]{babel}
+ \RequirePackage{csquotes}
\RequirePackage[utf8]{inputenc}
\RequirePackage{uniinput}
\RequirePackage[sb,tt=false]{libertine}
@@ -74,8 +75,8 @@
\let\raggedchapter\raggedleft
\preto{\chapterheadendvskip}{\noindent\hrulefill\par}
\RedeclareSectionCommand[
- beforeskip=15ex,
- afterskip=25ex]{chapter}
+ beforeskip=18ex,
+ afterskip=28ex]{chapter}
% fonts
\RequirePackage{setspace}
@@ -94,7 +95,7 @@
\makeatletter
\pdfstringdefDisableCommands{\let\(\fake@math}
\newcommand\fake@math{}% just for safety
-\def\fake@math#1\){\detokenize{#1}}
+\def\fake@math#1\){[math]}
\makeatother
\RequirePackage[capitalise, nameinlink]{cleveref}
@@ -103,8 +104,14 @@
\pagestyle{scrheadings}
% \clearscrheadfoot
% \ohead{\headmark}
-\cfoot{\pagemark}
-\ifoptionfinal{}{\ofoot{\tiny Revision\gitVtags: \gitAbbrevHash{} (\gitAuthorDate)}}
+\makeatletter
+\if@twoside
+ \ofoot{\pagemark}
+\else
+ \cfoot{\pagemark}
+\fi
+\makeatother
+\ifoptionfinal{}{\ifoot{\tiny Revision\gitVtags: \gitAbbrevHash{} (\gitAuthorDate)}}
% \automark[chapter]{section}
\RequirePackage[
@@ -139,14 +146,14 @@
\newlist{wenumerate}{enumerate}{1}
\setlist[wenumerate]{leftmargin=3em}
-\makeatletter
\makeatletter
+\def\theorem@checkbold{}
\newtheoremstyle{mychange}%
{\item[\hskip\labelsep \theorem@headerfont ##2\hskip 0.3em\ ##1\theorem@separator]}%
- {\item[\hskip\labelsep \theorem@headerfont ##2\hskip 0.3em\ ##1\ {\normalfont(##3)}\theorem@separator]}
+ {\item[\hskip\labelsep \theorem@headerfont ##2\hskip 0.3em\ ##1\ {\mdseries(##3)}\theorem@separator]}
\newtheoremstyle{nonumbermychange}%
{\item[\hskip\labelsep \theorem@headerfont ##1\theorem@separator]}%
- {\item[\hskip\labelsep \theorem@headerfont ##1\ {\normalfont(##3)}\theorem@separator]}
+ {\item[\hskip\labelsep \theorem@headerfont ##1\ {\mdseries(##3)}\theorem@separator]}
\makeatother
\DeclareDocumentCommand\newmdtheoremenv{s O{} m o m o }{%
\IfBooleanTF{#1}{%
@@ -189,6 +196,7 @@
\numberwithin{defsatzusw}{section}
% kursive schrift
\theorembodyfont{\normalfont}
+\theoremheaderfont{\bfseries}
\theoremstyle{mychange}
\newthm{satz}{Satz}
\newthm{lemma}{Lemma}
@@ -231,11 +239,14 @@
\renewcommand{\thesection}{\arabic{section}}
\renewcommand\sectionformat{\S \thesection\autodot \hspace{1ex}}
\renewcommand\subsectionformat{\S \thesubsection\autodot \hspace{1ex}}
-%\usepackage{textcase}
-\ifxetex
- \DeclareRobustCommand{\spacedlowsmallcaps}[1]{{\scshape\MakeLowercase{#1}}}%
+\RequirePackage{textcase}
+\ifxetexorluatex
+ \DeclareRobustCommand{\spacedlowsmallcaps}[1]{
+ \fontspec{Linux Libertine O}[SmallCapsFeatures={Ligatures={NoCommon, NoDiscretionary},Letters=SmallCaps,LetterSpace=10,WordSpace=1.6}]
+ \scshape\MakeLowercase{#1}}%
+ % \scshape{#1}}}%
\else
- \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeLowercase{#1}}}%
+ \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeTextLowercase{#1}}}%
\fi
\setkomafont{section}{\Large\normalfont\spacedlowsmallcaps}
\setkomafont{subsection}{\large\normalfont\spacedlowsmallcaps}