%%
%% This is file `wu-depend.code.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% westlakethesis.dtx  (with options: `depend')
%% -----------------------------------------------------------------------
%%   Copyright (C) 2026 by Mingyu Xia <myhsia@outlook.com>               *
%% -----------------------------------------------------------------------
%%   This work may be distributed and/or modified under the conditions   *
%%   of the LaTeX Project Public License (LPPL), 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 2008 or later.                                              *
%%                                                                       *
%%   This work has the LPPL maintenance status `maintained'.             *
%%                                                                       *
%%   The Current Maintainer of this work is Mingyu Xia.                  *
%% -----------------------------------------------------------------------
\GetIdInfo $Id: westlakethesis.dtx v0.0.2 2026-06-18 myhsia<myhsia@outlook.com>$
  {Loading the base class and required packages (WESTLAKE)}
\ProvidesExplFile {wu-depend.code.tex}
  {\ExplFileDate} {\ExplFileVersion} {\ExplFileDescription}
\sys_if_engine_xetex:T
  { \PassOptionsToPackage { quiet } { xeCJK } }
\str_case:en { \g__wu_clsoption_mode_str }
  {
    { thesis }
    {
      \clist_gput_right:Nn \g__wu_base_cls_opt_clist { a4paper, zihao = -4 }
      \exp_args:NNV \LoadClass [ \g__wu_base_cls_opt_clist ] { ctexrep }
      \RequirePackage [ bodytextleadingratio = 1.5 ] { zhlineskip }
      \RequirePackage { geometry, lmodern, newtxtext }
      \RequirePackage [ titles ] { tocloft }
      \bool_lazy_or:nnT { \sys_if_engine_pdftex_p:      }
                        { \sys_if_engine_opentype_p:    }
                        { \RequirePackage { microtype } }
    }
    { beamer }
    {
      \clist_gput_right:Nn \g__wu_base_cls_opt_clist
        { aspectratio = 1610 }
      \exp_args:NNV \LoadClass [ \g__wu_base_cls_opt_clist ] { beamer }
    }
    { usrdoc }
    {
      \clist_gput_right:Nn \g__wu_base_cls_opt_clist
        { 11pt, letterpaper, cs-break = true }
      \exp_args:NNV \LoadClass [ \g__wu_base_cls_opt_clist ] { l3doc  }
    }
    { poster }
    {
      \clist_gput_right:Nn \g__wu_base_cls_opt_clist
        { }
      \exp_args:NNV \LoadClass [ \g__wu_base_cls_opt_clist ] { beamer }
    }
  }
\RequirePackage { graphicx, hyperref, lipsum, zhlipsum, array }
\graphicspath
  {
    {./fig/}  {./pic/}  {./figure/}  {./picture/}  {./media/}
    {./figs/} {./pics/} {./figures/} {./pictures/}
  }
\hook_gput_code:nnn { begindocument / before } { . }
  {
    \bool_if_exist:NT \l__wu_load_bib_bool
      {
        \bool_if:NT \l__wu_load_bib_bool
          {
            \RequirePackage [ sort,                 capitalizesubtitle,
                              sentencecase = false, spacebeforetypeid ]
                            { gbt7714 }
            \bibliographystyle { gbt7714-2025-numeric }
          }
      }
  }
\file_input_stop:
%% -----------------------------------------------------------------------
%%   This work consists of the files westlakethesis.dtx,                 *
%%                                   westlakethesis.ins,                 *
%%                 the derived files westlakethesis.cls,                 *
%%                                   wu-depend.code.tex,                 *
%%                                   wu-kernel.code.tex,                 *
%%                                   wu-params.code.tex,                 *
%%                                   wu-thesis.code.tex,                 *
%%                                   wu-beamer.code.tex,                 *
%%                                   wu-poster.code.tex,                 *
%%                                   wu-usrdoc.code.tex,                 *
%%                                   westlake-logo.pdf,                  *
%%                                   westlake-badge-en.pdf,              *
%%                                   westlake-badge-cn.pdf,              *
%%                                   westlake-paint-a.png,               *
%%                                   westlake-paint-b.png,               *
%%           the documentation files westlakethesis.pdf,                 *
%%                               and README.md.                          *
%% -----------------------------------------------------------------------
%%
%% End of file `wu-depend.code.tex'.
