summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/hduthesis/tex/hduthesis-font-module.code.tex
blob: 300e2ca0ad81542c8571ffc7bd337cd275962f3d (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
\hduthesis_provide_module:n {font}

\linespread{1.39}
\dim_set:Nn \parindent {2\ccwd}
\newcommand\semilarge{\@setfontsize\semilarge{14}{16.5}}
\newcommand\semiLarge{\@setfontsize\semiLarge{16.5}{18}}

\setmainfont{texgyretermes}
  [
    Extension  = .otf,     UprightFont = *-regular, BoldFont = *-bold, ItalicFont = *-italic, BoldItalicFont = *-bolditalic
  ]
\setsansfont{texgyreheros}
  [
    Extension   = .otf,      BoldItalicFont = *-bolditalic,
    UprightFont = *-regular, BoldFont       = *-bold,
    ItalicFont  = *-italic,  scale          = .9,
  ]

\RequirePackage { amsmath, amssymb, mathtools, extarrows,
                  bm, cancel, physics2, fixdif, derivative }
\usephysicsmodule{ab, braket, ab.legacy, op.legacy}
\RequirePackage
  [ warnings-off = { mathtools-colon, mathtools-overbracket } ]
  {unicode-math}
\AtBeginDocument{
  \dim_set:Nn \abovedisplayskip {3pt}
  \dim_set:Nn \belowdisplayskip {3pt}
}

\tl_if_empty:NF \g__hduthesis_math_font
  { \setmathfont { \g__hduthesis_math_font } }
\tl_if_empty:NF \g__hduthesis_main_CJK_font
  { \exp_last_unbraced:No \setCJKmainfont \g__hduthesis_main_CJK_font }
\tl_if_empty:NF \g__hduthesis_sans_CJK_font
  { \exp_last_unbraced:No \setCJKsansfont \g__hduthesis_sans_CJK_font }
\tl_if_empty:NF \g__hduthesis_mono_CJK_font
  { \exp_last_unbraced:No \setCJKmonofont \g__hduthesis_mono_CJK_font }

\endinput