%%
%% This is file `whats-theorem-module.code.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% whatsnote.dtx  (with options: `theorem')
%% -----------------------------------------------------------------------
%%   Copyright (C) 2024-2025 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.                  *
%% -----------------------------------------------------------------------
\__whats_provide_module:n { theorem }
\RequirePackage{keytheorems}
\newcounter {week}
\newcommand \newweek { \refstepcounter{week} \clearpage }
\newkeytheorem { theorem    } [ parent    = section, style = definition ]
\newkeytheorem { example    } [ parent    = section, style = definition ]
\newkeytheorem { definition } [ parent    = section, style = definition ]
\newkeytheorem { problem    } [ parent    = week,    style = definition ]
\newkeytheorem { solution   } [ numbered  = false,   style = definition ]
\newkeytheorem { remark     } [ numbered  = false,   style = remark     ]
\file_input_stop:
%% -----------------------------------------------------------------------
%%   This work consists of the files whatsnote.dtx,                      *
%%                                   whatsnote.ins,                      *
%%                 the derived files whatsnote.cls,                      *
%%                                   whats-*-module.code.tex,            *
%%           the documentation files whatsnote.pdf,                      *
%%                               and README.md.                          *
%% -----------------------------------------------------------------------
%%
%% End of file `whats-theorem-module.code.tex'.
