From ce0e6b0c08c524b087d076f5c3b742fdf008837a Mon Sep 17 00:00:00 2001
From: FengChendian <njuzhaoyichen@gmail.com>
Date: Thu, 20 May 2021 20:47:39 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=91=98=E8=A6=81=E3=80=81?=
 =?UTF-8?q?=E9=A1=B5=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md                   |  2 +-
 njuthesis.cls               |  4 +--
 njuthesis.tex               | 17 +++++++++-
 profile/format.tex          |  2 ++
 profile/format/abstract.tex | 62 +++++++++++++++++++++++++++++++++++++
 profile/format/cover.tex    |  7 +++--
 profile/format/font.tex     |  2 +-
 profile/format/page.tex     |  6 ++++
 profile/packages.tex        |  1 +
 9 files changed, 95 insertions(+), 8 deletions(-)
 create mode 100644 profile/format/abstract.tex
 create mode 100644 profile/format/page.tex

diff --git a/README.md b/README.md
index 9658bf3..770b8e6 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
 # NJU Thesis
 
-> 姝ら」鐩槸鍩轰簬[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)鐨勯噸鏋勭増鏈€�
+> 姝ら」鐩槸鍩轰簬[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)鐨勯噸鏋勭増鏈紝鐩墠**姝e湪閲嶆瀯涓�**銆�
 
 鍘熸潵鐨刐NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)妯℃澘澶繃鍙よ€佸苟涓斾笉鏀寔纭曞+銆佸崥澹鏂囷紝鐩墠闅句互缁存姢锛屽洜姝や负浜嗘ā鏉跨殑鍙寔缁彂灞曪紝鐜板湪灏嗗璇ラ」鐩繘琛岄噸鏋勶紝椤圭洰灏嗚鎸傝浇浜嶽NJU-LUG](https://github.com/nju-lug)缁勭粐浠撳簱涓�
\ No newline at end of file
diff --git a/njuthesis.cls b/njuthesis.cls
index 77140d0..0c84a71 100644
--- a/njuthesis.cls
+++ b/njuthesis.cls
@@ -25,8 +25,8 @@
 \DeclareStringOption{Grade}
 \DeclareStringOption{StudentID}
 \DeclareStringOption{StudentName}
-\DeclareStringOption{Supervisor}
-\DeclareStringOption{SupervisorTitle}
+\DeclareStringOption{Mentor}
+\DeclareStringOption{MentorTitle}
 \DeclareStringOption{SubmitDate}
 
 \ProcessKeyvalOptions*
diff --git a/njuthesis.tex b/njuthesis.tex
index 7e094da..077ddc8 100644
--- a/njuthesis.tex
+++ b/njuthesis.tex
@@ -1,7 +1,22 @@
 \documentclass{njuthesis}
-
+\pagestyle{empty}
 \begin{document}
 \maketitle
+
+
+\begin{abstract}
+    妯℃澘銆�
+    \keywords{}
+\end{abstract}
+
+\begin{englishabstract}
+    The diversity of handwritten Chinese text make it a promising but challenging computer vision problem.
+    % 鑻辨枃鍏抽敭璇嶃€傚叧閿瘝涔嬮棿鐢ㄨ嫳鏂囧崐瑙掗€楀彿闅斿紑锛屾湯灏炬棤绗﹀彿銆�
+    \englishkeywords{Handwritten Chinese, Text recognition, Deep learning}
+  \end{englishabstract}
+
+\mainmatter
+
 \chapter{缁}
     \section{楂樿揪鍘嗗彶绠€浠媫
 \chapter{鍘熺悊}
diff --git a/profile/format.tex b/profile/format.tex
index 5a8a659..6fc4402 100644
--- a/profile/format.tex
+++ b/profile/format.tex
@@ -1,6 +1,8 @@
 \ExplSyntaxOn
 \input{profile/format/font.tex}
 \input{profile/format/cover.tex}
+\input{profile/format/abstract.tex}
+\input{profile/format/page.tex}
 
 \ctexset{
     chapter/format = \zihao{4}\bfseries\centering,
diff --git a/profile/format/abstract.tex b/profile/format/abstract.tex
new file mode 100644
index 0000000..e97abe6
--- /dev/null
+++ b/profile/format/abstract.tex
@@ -0,0 +1,62 @@
+\newenvironment{abstract}{%
+  \pagestyle{plain}
+  \pagenumbering{Roman}
+%   \pdfbookmark[0]{\njut@cap@abstract}{abstract}
+  \begin{center}
+    \kaishu\zihao{-2}{\textbf{\uuline{鍗椾含澶у鏈鐢熸瘯涓氳鏂�(璁捐銆佷綔鍝�)涓枃鎽樿}}}
+  \end{center}
+  {\bgroup
+    \kaishu\zihao{-4}
+    \def\tabcolsep{0pt}
+    \def\arraystretch{0.8}
+    \noindent
+    棰樼洰锛� \Title \\
+    闄㈢郴锛� \Department \\
+    涓撲笟锛� \Major \\
+    鏈鐢熷鍚嶏細 \StudentName \\
+    鎸囧鏁欏笀锛堝鍚嶃€佽亴绉帮級锛� \Mentor\ \MentorTitle \\
+    鎽樿锛�
+    \egroup
+  }
+  \kaishu\zihao{-4}\par%
+}{%
+\newpage
+}
+\newcommand{\keywords}[1]{%
+  \renewcommand*{\njut@value@abstract@keywords}{#1}%
+  \par\vspace{2ex}\noindent%
+  {\kaishu\zihao{-4}\makebox[4em][s]{鍏抽敭璇峽锛殅}}~{#1}%
+}
+% \newcommand*{\englishabstracttitlea}[1]{%
+%   \renewcommand{\njut@value@abstract@en@titlea}{#1}%
+% }
+% \newcommand*{\englishabstracttitleb}[1]{%
+%   \renewcommand{\njut@value@abstract@en@titleb}{#1}%
+% }
+% 鑻辨枃鎽樿
+\newenvironment{englishabstract}{%
+  \pagestyle{plain}
+%   \pdfbookmark[0]{\njut@cap@abstract@en}{englishabstract}
+  \begin{center}
+      \kaishu\zihao{-2}{\textbf{\uuline{鍗椾含澶у鏈鐢熸瘯涓氳鏂�(璁捐銆佷綔鍝�)鑻辨枃鎽樿}}}
+  \end{center}
+  {
+    \bgroup
+    THESIS: \Title \\
+    DEPARTMENT: \Department \\
+    SPECIALIZATION: \Major \\
+    UNDERGRADUATE: \StudentName \\
+    MENTOR: \Mentor \\
+    ABSTRACT:
+    \egroup
+  }
+  \zihao{-4}\par%
+}{%
+\cleardoublepage
+\newpage
+}
+\newcommand{\englishkeywords}[1]{%
+  \renewcommand*{\njut@value@abstract@en@keywords}{#1}%
+  \par\vspace{2ex}\noindent%
+  {KEYWORDS{:}}~~{#1}%
+}
\ No newline at end of file
diff --git a/profile/format/cover.tex b/profile/format/cover.tex
index 8148928..2f13f8e 100644
--- a/profile/format/cover.tex
+++ b/profile/format/cover.tex
@@ -19,9 +19,9 @@
   \end{tabular}\\
   \begin{tabular}{p{4.2em}cp{4.2em}c}
     \makebox[4.2em][s]{瀵煎笀}
-    & \coverunderline[90pt]{\Supervisor}
+    & \coverunderline[90pt]{\Mentor}
     & \makebox[4.2em][s]{鑱岀О}
-    & \coverunderline[90pt]{\SupervisorTitle}\\
+    & \coverunderline[90pt]{\MentorTitle}\\
   \end{tabular}\\
 %   % 绗簩瀵煎笀
 %   \ifnjut@title@twosupervisors
@@ -79,5 +79,6 @@
     \vskip 8mm
   \end{center}
   \end{spacing}
-%   \cleardoublepage
+  \cleardoublepage
+  % \newpage
 }
\ No newline at end of file
diff --git a/profile/format/font.tex b/profile/format/font.tex
index a6f2e8b..89840ad 100644
--- a/profile/format/font.tex
+++ b/profile/format/font.tex
@@ -3,7 +3,7 @@
 {
     % \setCJKfamilyfont{zhfs}   {FangSong} [AutoFakeBold={\FakeBoldSize}]
     % \setCJKfamilyfont{zhhei}  {SimHei}   [AutoFakeBold={\FakeBoldSize}]
-    % \setCJKfamilyfont{zhkai}  {KaiTi}    [AutoFakeBold={\FakeBoldSize}]
+    \setCJKfamilyfont{zhkai}  {KaiTi}    [AutoFakeBold=2.17]
     \setCJKfamilyfont{zhsong} {SimSun}   [AutoFakeBold=2.17]
 
     % \setCJKmainfont[AutoFakeBold={2.17}]{SimSun}
diff --git a/profile/format/page.tex b/profile/format/page.tex
new file mode 100644
index 0000000..ba1447e
--- /dev/null
+++ b/profile/format/page.tex
@@ -0,0 +1,6 @@
+\fancypagestyle{plain}{%
+   \fancyhead{}               
+   \fancyfoot[C]{\zihao{5}\thepage}        
+}
+\renewcommand{\headrulewidth}{0pt} % and the header line
+\renewcommand{\footrulewidth}{0pt} % and the footer line
diff --git a/profile/packages.tex b/profile/packages.tex
index 2abfdc3..d35453d 100644
--- a/profile/packages.tex
+++ b/profile/packages.tex
@@ -1,5 +1,6 @@
 \RequirePackage{ifxetex}
 \RequirePackage{lastpage}
+\RequirePackage{fancyhdr}
 \RequirePackage{geometry}
 \RequirePackage{ifthen}
 \RequirePackage{expl3}
-- 
GitLab