\hduthesis_provide_module:n {typeset}

\RequirePackage { circuitikz, pgfplots, listings, hologo,
                  lipsum, zhlipsum, booktabs, multicol }
\pgfplotsset { compat = newest }
\hologoFontSetup { general = \sffamily }
\graphicspath
  {
    {./figure/}{./figures/}{./image/}{./images/}
    {./graphics/}{./graphic/}{./pictures/}{./picture/}
  }

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

\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 { amssymb, mathtools, cancel, fixdif, derivative, siunitx }
\file_if_exist:nTF { physics2.sty }
  {
    \RequirePackage{physics2}
    \usephysicsmodule{ ab, braket, op.legacy, bm-um.legacy }
  } { \RequirePackage{bm} }
\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
