From 40dc7ab9c4c62fd8968098c0b76cd8188536abfa Mon Sep 17 00:00:00 2001
From: atxy <181850195@smail.nju.edu.cn>
Date: Wed, 15 Sep 2021 10:20:05 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6?=
 =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E7=9A=84=E8=87=AA=E5=8A=A8?=
 =?UTF-8?q?=E6=8F=90=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md     |  2 +-
 njuthesis.cls |  9 +++------
 njuthesis.dtx | 17 ++++-------------
 3 files changed, 8 insertions(+), 20 deletions(-)

diff --git a/README.md b/README.md
index ffb03c4..0981204 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
 
 ## 蹇€熷紑濮�
 
-浠�0.9.0鐗堜互鍚庯紝鏈ā鏉夸互DocStrip(`.dtx`)鏍煎紡鍙戝竷锛屽悓鏃跺湪release鍖烘彁渚沜ls鏂囦欢銆�
+浠�0.9.0鐗堜互鍚庯紝鏈ā鏉夸互DocStrip(`.dtx`)鏍煎紡杩涜缁存姢锛屽悓鏃跺湪浠撳簱鎻愪緵`.cls`鏂囦欢浠ラ檷浣庝娇鐢ㄩ棬妲涖€�
 
 ### 浣跨敤DocStrip鏂囦欢
 
diff --git a/njuthesis.cls b/njuthesis.cls
index 182e29c..844d006 100644
--- a/njuthesis.cls
+++ b/njuthesis.cls
@@ -23,10 +23,8 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{expl3}
-\def\ExplFileName{njuthesis}
-\def\ExplFileDescription{Nanjing University thesis template class}
-\def\ExplFileDate{2021-09-14}
-\def\ExplFileVersion{0.9.0}
+\GetIdInfo  $Id: njuthesis.dtx 0.9.0 2020-09-14 12:00:00 +0800  NJU LUG <my@yaoge123.com> $
+  {Thesis template for Nanjing University}
 \ProvidesExplClass{\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
 \LoadClass[
   a4paper,
@@ -105,7 +103,6 @@
 \NewDocumentCommand \njusetup { m }
 { \keys_set:nn { nju } { #1 } }
 \ProcessKeysOptions { nju }
-\RequirePackage{expl3}
 \RequirePackage{fontspec}
 \RequirePackage[
     top=2.5cm,
@@ -728,7 +725,7 @@ numberwithin=section,
   }
 
   % 鐮旂┒鐢熷浣嶅垎绫�
-  \str_case:Nn { \nju_degree }
+  \str_case_e:nn { \nju_degree }
   {
     { mg } { \tl_const:Nn \nju_degree_title {纭曞+} }
     { mf } { \tl_const:Nn \nju_degree_title {纭曞+涓撲笟} }
diff --git a/njuthesis.dtx b/njuthesis.dtx
index 79a3e72..4e909cf 100644
--- a/njuthesis.dtx
+++ b/njuthesis.dtx
@@ -38,7 +38,7 @@
 
 ## 蹇€熷紑濮�
 
-浠�0.9.0鐗堜互鍚庯紝鏈ā鏉夸互DocStrip(`.dtx`)鏍煎紡鍙戝竷锛屽悓鏃跺湪release鍖烘彁渚沜ls鏂囦欢銆�
+浠�0.9.0鐗堜互鍚庯紝鏈ā鏉夸互DocStrip(`.dtx`)鏍煎紡杩涜缁存姢锛屽悓鏃跺湪浠撳簱鎻愪緵`.cls`鏂囦欢浠ラ檷浣庝娇鐢ㄩ棬妲涖€�
 
 ### 浣跨敤DocStrip鏂囦欢
 
@@ -207,12 +207,8 @@ through XeTeX.
 %
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\RequirePackage{expl3}
-%<*driver|class>
-\def\ExplFileName{njuthesis}
-\def\ExplFileDescription{Nanjing University thesis template class}
-\def\ExplFileDate{2021-09-14}
-\def\ExplFileVersion{0.9.0}
-%</driver|class>
+%<class>\GetIdInfo  $Id: njuthesis.dtx 0.9.0 2020-09-14 12:00:00 +0800  NJU LUG <my@yaoge123.com> $
+%<class>  {Thesis template for Nanjing University}
 %<class>\ProvidesExplClass{\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
 %
 %<*driver>
@@ -381,11 +377,6 @@ through XeTeX.
 \RequirePackage{l3keys2e}
 %    \end{macrocode}
 %
-% \DescribeMacro{\dummyMacro}
-% This macro does nothing.\index{doing nothing|usage} It is merely an
-% example.  If this were a real macro, you would put a paragraph here
-% describing what the macro is supposed to do, what its mandatory and
-% optional arguments are, and so forth.
 %    \begin{macrocode}
 \keys_define:nn { nju }
 {
@@ -1391,7 +1382,7 @@ through XeTeX.
   }
   
   % 鐮旂┒鐢熷浣嶅垎绫�
-  \str_case:Nn { \nju_degree }
+  \str_case_e:nn { \nju_degree }
   {
     { mg } { \tl_const:Nn \nju_degree_title {纭曞+} }
     { mf } { \tl_const:Nn \nju_degree_title {纭曞+涓撲笟} }
-- 
GitLab