From bb0e75032f3b69f6510fc40f10983e85e8b206cf Mon Sep 17 00:00:00 2001
From: atxy <181850195@smail.nju.edu.cn>
Date: Sat, 4 Sep 2021 23:56:11 +0800
Subject: [PATCH] =?UTF-8?q?add:=20=E5=B0=86=E5=B0=81=E9=9D=A2=E9=A1=B5?=
 =?UTF-8?q?=E7=9A=84=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=E7=94=A8latex3?=
 =?UTF-8?q?=E8=AF=AD=E6=B3=95=E6=94=B9=E5=86=99=EF=BC=8C=E4=BD=BF=E7=94=A8?=
 =?UTF-8?q?latex3=E5=BC=95=E7=94=A8=E5=AE=8F=E5=8C=85=E5=91=BD=E4=BB=A4?=
 =?UTF-8?q?=E5=A4=B1=E8=B4=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 coverinfo.sty          |  2 ++
 njuthesis.tex          |  2 +-
 profile/abstract.sty   |  2 ++
 profile/components.sty |  2 ++
 profile/cover.sty      | 12 +++++++-----
 profile/font.sty       |  2 ++
 profile/packages.sty   |  2 ++
 profile/page.sty       |  2 ++
 profile/profile.cls    |  2 +-
 9 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/coverinfo.sty b/coverinfo.sty
index 055d6bf..91cfd90 100644
--- a/coverinfo.sty
+++ b/coverinfo.sty
@@ -1,3 +1,5 @@
+% \ProvidesExplPackage{coverinfo}{2021-9-4}{0.1}{Some things I wrote}
+
 \tl_const:Nn \TitleOne {鏇茬巼寮曟搸鐨勭爺绌秨% 绗竴琛屾爣棰�
 \tl_const:Nn \TitleTwo {}% 绗簩琛屾爣棰�
 \tl_const:Nn \TitleThree {}% 绗笁琛屾爣棰�
diff --git a/njuthesis.tex b/njuthesis.tex
index 902a062..f83e625 100644
--- a/njuthesis.tex
+++ b/njuthesis.tex
@@ -1,5 +1,5 @@
 \documentclass[
-    TitleLength = 1,% 閫夋嫨鏍囬琛屾暟锛岃寖鍥存槸1~3
+    TitleLength = 2,% 閫夋嫨鏍囬琛屾暟锛岃寖鍥存槸1~3
 ]{njuthesis}
 
 \addbibresource{njuthesis.bib}
diff --git a/profile/abstract.sty b/profile/abstract.sty
index c04b381..523cc88 100644
--- a/profile/abstract.sty
+++ b/profile/abstract.sty
@@ -1,3 +1,5 @@
+% \ProvidesExplPackage{profile/abstract}{2021-9-4}{0.1}{Some things I wrote} 
+
 % 鎽樿鐜
 \NewDocumentEnvironment{abstract} {}
 {%
diff --git a/profile/components.sty b/profile/components.sty
index d4d2d2a..b5c9a44 100644
--- a/profile/components.sty
+++ b/profile/components.sty
@@ -1,3 +1,5 @@
+% \ProvidesExplPackage{profile/components}{2021-9-4}{0.1}{Some things I wrote} 
+
 % 鍥捐〃浣嶇疆璋冩暣
 \floatsetup[lstlisting]{ % Captions for lstlistings
 	capposition=above,%
diff --git a/profile/cover.sty b/profile/cover.sty
index bf9b9d7..e458d89 100644
--- a/profile/cover.sty
+++ b/profile/cover.sty
@@ -1,3 +1,5 @@
+% \ProvidesExplPackage{profile/cover}{2021-9-4}{0.1}{Some things I wrote} 
+
 % 灏侀潰涓嬪垝绾�
 \cs_new:Npn \cover_underline:nn #1 #2 {
   \uline{\makebox[#1]{#2}}
@@ -20,17 +22,17 @@
     \coverbox:n {棰樼洰}
     & \cover_underline:nn {250pt}{\textbf{\songti\TitleOne}} \\
 
-    \ifnum\TitleLength=2 % 鏍囬琛屾暟閫夋嫨
+    \int_compare:nNnTF { \TitleLength } = { 2 }  { 
       \coverbox:n {}
       & \cover_underline:nn {250pt}{\textbf{\songti\TitleTwo}} \\
-    \fi 
-
-    \ifnum\TitleLength=3
+    }{}
+    
+    \int_compare:nNnTF { \TitleLength } = { 3 }  { 
       \coverbox:n {}
       & \cover_underline:nn {250pt}{\textbf{\songti\TitleTwo}} \\
       \coverbox:n {}
       & \cover_underline:nn {250pt}{\textbf{\songti\TitleThree}} \\
-    \fi
+    }{}
   \end{tabular} \\
 
   \begin{tabular}{p{4.2em}cp{4.2em}c}
diff --git a/profile/font.sty b/profile/font.sty
index b8862df..8a08075 100644
--- a/profile/font.sty
+++ b/profile/font.sty
@@ -1,3 +1,5 @@
+% \ProvidesExplPackage{profile/font}{2021-9-4}{0.1}{Some things I wrote} 
+
 % 瑕嗙洊Ctex瀛椾綋璁剧疆
 \sys_if_platform_windows:TF
 {
diff --git a/profile/packages.sty b/profile/packages.sty
index e0a4c9d..a92c902 100644
--- a/profile/packages.sty
+++ b/profile/packages.sty
@@ -1,3 +1,5 @@
+% \ProvidesExplPackage{profile/packages}{2021-9-4}{0.1}{Some things I wrote} 
+
 \RequirePackage{ifxetex}
 \RequirePackage{lastpage}
 \RequirePackage{fancyhdr}
diff --git a/profile/page.sty b/profile/page.sty
index 45f535f..0b75212 100644
--- a/profile/page.sty
+++ b/profile/page.sty
@@ -1,3 +1,5 @@
+% \ProvidesExplPackage{profile/page}{2021-9-4}{0.1}{Some things I wrote} 
+
 \fancypagestyle{plain}{%
    \fancyhead{}               
    \fancyfoot[C]{\zihao{5}\thepage}        
diff --git a/profile/profile.cls b/profile/profile.cls
index ec01d2c..64e84c1 100644
--- a/profile/profile.cls
+++ b/profile/profile.cls
@@ -1,6 +1,6 @@
 \ExplSyntaxOn
 
-\input{coverinfo.sty}
+\input{coverinfo.sty} 
 \input{profile/packages.sty}
 \input{profile/font.sty}
 \input{profile/cover.sty}
-- 
GitLab