diff --git a/README.md b/README.md index 9658bf3445b9259e0daf6056ba46fe1f0001d337..770b8e6ea60a784dcbb4e283528028234c28d6a3 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 77140d0e69ccf101f240a7db32dde0b586905768..0c84a71f78ea8714241e20f474f4a13fa0ddac5d 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 7e094da83db2ba3ce5d171185b64197a1cadb7da..077ddc862e937c6e37c8f2656f2b0c9059a2052d 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 5a8a659df319336ea8c0922d4d8ea74ce1304b37..6fc440254793356d7f22c6b70726f49ae9b79bdb 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 0000000000000000000000000000000000000000..e97abe6904a4778f7d8c0e3f848f6d9694fd53ec --- /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 8148928bf9c66f56da2566f6c63dfc8558e46153..2f13f8e773cb6c93e23ad7fc63dcc7a2a6a33353 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 a6f2e8b37a4b0204a3c8c6895d3579a9dfdb1bdc..89840ad222eada9f872d6ba9c4379705620b71d3 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 0000000000000000000000000000000000000000..ba1447ee44406b9db3e5b77b841a353e6c09a587 --- /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 2abfdc3bb734012656a48f4c47c55732c346df2b..d35453da267be6c22c66b40e585517a27a68dacb 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}