diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/thucoursework')
-rw-r--r-- | Master/texmf-dist/tex/latex/thucoursework/iidef.sty | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/thucoursework/iidef.sty b/Master/texmf-dist/tex/latex/thucoursework/iidef.sty index 2c1aea9b79d..4772cca36a1 100644 --- a/Master/texmf-dist/tex/latex/thucoursework/iidef.sty +++ b/Master/texmf-dist/tex/latex/thucoursework/iidef.sty @@ -24,7 +24,7 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{iidef} -[2020/02/23 2.5.1 Tsinghua University Coursework Template] +[2020/09/09 2.6 Tsinghua University Coursework Template] %% configuration of nested enumerate env \RequirePackage{enumitem} %% set hwcount key-value option @@ -32,7 +32,8 @@ %% required by macro DeclareMathOperator \RequirePackage{amsmath} %% Set up page headers using with fancyhdr -\RequirePackage{fancyhdr} +\@ifundefined{lhead}{\RequirePackage{fancyhdr}} +{\def\@thulhead{thulhead}} \RequirePackage{amsthm} %% semester \def\@term{term} @@ -67,6 +68,7 @@ \underline{\bf \@hwname\;\thehwcnt} \\ \end{center} } +\@ifundefined{@thulhead}{ \fancypagestyle{runningpage} { \fancyhead[L]{\small\@coursename} @@ -74,6 +76,7 @@ } %% use runningpage style from second page on \pagestyle{runningpage} +}{} %% ********************************************************************************************* %%name command macro %%************************* @@ -98,6 +101,7 @@ \def\@slname{Solution} \def\slname#1{\renewcommand\@slname{#1}} +\@ifundefined{solution}{ \newenvironment{solution} { \proof[\@slname] @@ -107,6 +111,7 @@ \renewcommand{\qedsymbol}{} \endproof } +}{} %%****************************** %%common math symbols go here %%************************************************* |