diff options
Diffstat (limited to 'skript.cls')
-rw-r--r-- | skript.cls | 39 |
1 files changed, 24 insertions, 15 deletions
@@ -9,8 +9,7 @@ \RequirePackage{tikz-cd} \tikzcdset{arrow style=tikz, diagrams={>=stealth}} -\RequirePackage{polyglossia} -\setdefaultlanguage{german} +\RequirePackage{ifluatex} \RequirePackage{csquotes} \RequirePackage{hyphenat} @@ -20,18 +19,28 @@ \RequirePackage{mathtools} \RequirePackage{amsmath, amssymb} + +\ifluatex + \RequirePackage{polyglossia} + \setdefaultlanguage{german} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \setromanfont[Ligatures=TeX]{TeX Gyre Pagella} + \setsansfont{Latin Modern Sans} + % \setsansfont{Roboto} + % \setmathfont{XITS 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[range={\mathcal}]{Latin Modern Math} +\else + \RequirePackage[ngerman]{babel} + \RequirePackage[utf8]{inputenc} + \RequirePackage{uniinput} + \usepackage[garamond]{mathdesign} +\fi % fonts -\RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} -\setromanfont[Ligatures=TeX]{TeX Gyre Pagella} -\setsansfont{Latin Modern Sans} -% \setsansfont{Roboto} -% \setmathfont{XITS 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[range={\mathcal}]{Latin Modern Math} \setkomafont{disposition}{\sffamily} \RequirePackage{mathtools} @@ -133,11 +142,11 @@ \newdef{problem}{Problem} \theoremstyle{nonumberplain} -\theoremheaderfont{\bfseries} +\theoremheaderfont{\itshape} \theorembodyfont{\normalfont} \theoremseparator{.} % \theoremsymbol{\scalebox{0.8}{\ensuremath{\blacksquare}}} -\theoremsymbol{\ensuremath\square} +\theoremsymbol{\nolinebreak[1]\hspace*{.5em plus 1fill}\ensuremath{\blacksquare}} \newtheorem{proof}{Beweis} \newtheorem{beweis}{Beweis} |