summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dtk/dtk-new-engines.clo
blob: be315410da855ee7e462c05cb0a322e10da5ba89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%% This is file `dtk-new-engines.clo',
%%
%% LaTeX Class for ``Die TeXnische Komoedie''.
%%
%% Copyright (C) 2015-
%% Rolf Niepraschk, Herbert Voss
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.

\ProvidesFile{dtk-new-engines.clo}%
  [2016/05/17 v0.1f dtk class options for LuaTeX and XeTeX (RN)]

\typeout{NEW-ENGINE}

\RequirePackage[no-math]{fontspec}
\RequirePackage{unicode-math}

\ifluatex
  \RequirePackage[ngerman,noftligs]{selnolig}
  \InputIfFileExists{dtk.nolig}{%
    \typeout{*************************************^^J%
             * File `dtk.nolig' used.^^J%
             *************************************}%
  }{}
\fi

\RequirePackage{newunicodechar}
\newunicodechar{^^^^202f}{\,}% 'NARROW NO-BREAK SPACE'
\newunicodechar{^^^^2009}{\,\hspace{0pt}}% 'THIN SPACE'
\newunicodechar{^^^^00ad}{\-}% 'SOFT HYPHEN'
\newunicodechar{^^^^20ac}{\DTK@euro}% 'EURO SIGN'

\InputIfFileExists{dtk-fonts.cfg}{%
  \typeout{*************************************^^J%
           * File `dtk-fonts.cfg' used.^^J%
           *************************************}%
}{%
  \typeout{*************************************^^J%
           * Using libertinus-otf              *^^J%
           *************************************}%
  \RequirePackage{libertinus-otf}%
  \def\DTKrmFontName{Libertinus Serif}%
  \def\DTKsfFontName{Libertinus Sans Serif}%
%  \setmathfont{XITSMath}[Scale=0.9,math-style=TeX,bold-style=TeX]%
  \def\DTKmathFontName{Libertinus Math}%
  \setmonofont{AnonymousPro}[
    Scale          = MatchLowercase,FakeStretch=0.87,
    RawFeature     = -tlig,
    UprightFont    =*-Regular,
    BoldFont       = *-Bold,
    BoldItalicFont = *-BoldItalic,
    ItalicFont     = *-Italic,
    Ligatures = ResetAll,
    Extension      = .ttf]%
  \def\DTKttFontName{Anonymous Pro}%
}

\endinput