From 664ed1ef52e99fbea53ef2e01dfc96c3ca826f3c Mon Sep 17 00:00:00 2001
From: atxy <181850195@smail.nju.edu.cn>
Date: Mon, 13 Sep 2021 19:46:49 +0800
Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0dtx?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 njuthesis.cls |  68 +-------
 njuthesis.dtx | 418 +++++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 350 insertions(+), 136 deletions(-)

diff --git a/njuthesis.cls b/njuthesis.cls
index 7db0a98..27e42ab 100644
--- a/njuthesis.cls
+++ b/njuthesis.cls
@@ -39,28 +39,20 @@
 {
   titlelength       .int_set:N    =   \nju_titlelength,
   titlelength       .initial:n    =   1,
-
   secondmentor      .bool_set:N   =   \nju_second_mentor,
   secondmentor      .initial:n    =   false,
-
   nlcover           .bool_set:N   =   \nju_nl_cover,
   nlcover           .initial:n    =   false,
-
   degree            .tl_set:N     =   \nju_degree,
-  degree            .initial:n    =   UG,
-
+  degree            .initial:n    =   ug,
   type              .tl_set:N     =   \nju_type,
   type              .initial:n    =   thesis,
-
   systemfont        .bool_set:N   =   \nju_systemfont,
   systemfont        .initial:n    =   true,
-
   customlatinfont   .tl_set:N     =   \nju_customlatinfont,
   customlatinfont   .initial:n    =   windows,
-
   customchinesefont .tl_set:N     =   \nju_customchinesefont,
   customchinesefont .initial:n    =   windows,
-
   info              .meta:nn      =   { nju / info } { #1 }
 }
 \keys_define:nn { nju / info }
@@ -70,13 +62,11 @@
   TitleB            .tl_set:N     =   \nju_title_b,
   TitleC            .tl_set:N     =   \nju_title_c,
   TitleEN           .tl_set:N     =   \nju_title_en,
-
   % 骞寸骇瀛﹀彿濮撳悕
   Grade             .tl_set:N     =   \nju_grade,
   StudentID         .tl_set:N     =   \nju_student_id,
   StudentName       .tl_set:N     =   \nju_student_name,
   StudentNameEN     .tl_set:N     =   \nju_student_name_en,
-
   % 闄㈢郴涓撲笟鏂瑰悜
   Department        .tl_set:N     =   \nju_department,
   DepartmentEN      .tl_set:N     =   \nju_department_en,
@@ -84,22 +74,18 @@
   MajorEN           .tl_set:N     =   \nju_major_en,
   Field             .tl_set:N     =   \nju_field,
   FieldEN           .tl_set:N     =   \nju_field_en,
-
   % 瀵煎笀
   MentorA           .tl_set:N     =   \nju_mentor_a,
   MentorAEN         .tl_set:N     =   \nju_mentor_a_en,
   MentorATitle      .tl_set:N     =   \nju_mentor_a_title,
   MentorATitleEN    .tl_set:N     =   \nju_mentor_a_title_en,
-
   % 绗簩瀵煎笀
   MentorB           .tl_set:N     =   \nju_mentor_b,
   MentorBEN         .tl_set:N     =   \nju_mentor_b_en,
   MentorBTitle      .tl_set:N     =   \nju_mentor_b_title,
   MentorBTitleEN    .tl_set:N     =   \nju_mentor_b_title_en,
-
   % 鎻愪氦鏃ユ湡
   SubmitDate        .tl_set:N     =   \nju_submit_date,
-
   % 绛旇京
   DefendDate        .tl_set:N     =   \nju_defend_date,
   ReviewerChairman  .tl_set:N     =   \nju_reviewer_chairman,
@@ -107,7 +93,6 @@
   ReviewerB         .tl_set:N     =   \nju_reviewer_b,
   ReviewerC         .tl_set:N     =   \nju_reviewer_c,
   ReviewerD         .tl_set:N     =   \nju_reviewer_d,
-
   % 鍥藉鍥句功棣嗗皝闈㈢浉鍏�
   Classification    .tl_set:N     =   \nju_classification,
   SecurityLevel     .tl_set:N     =   \nju_securitylevel,
@@ -133,7 +118,6 @@
 \RequirePackage{setspace}
 \RequirePackage{lastpage}
 \RequirePackage{emptypage} % 娓呴櫎绌虹櫧椤电殑椤电爜
-
 \RequirePackage{listings} % 浠g爜鐜
 \RequirePackage{enumitem} % 鐢ㄤ簬淇敼鍒楄〃鐜
 \RequirePackage{caption}
@@ -165,10 +149,8 @@
     % For windows.
     % Shipped with the best `grinning-face-with-sweat' support.
 }
-
 \RequirePackage{blindtext} % 鐢熸垚鐢ㄤ簬娴嬭瘯鐨勫ぇ娈垫棤鎰忎箟鑻辨枃鏂囧瓧
 \RequirePackage{zhlipsum} % 鐢熸垚鐢ㄤ簬娴嬭瘯鐨勫ぇ娈垫棤鎰忎箟涓枃鏂囧瓧
-
 \RequirePackage{amsmath} % Must be loaded before unicode-math
 \RequirePackage{amsthm} % Mathematical environments
 \RequirePackage{mathtools} % Mathematical tools to use with amsmath
@@ -178,12 +160,10 @@
         mathtools-colon,
         mathtools-overbracket}
         ]{unicode-math} % Math fonts in xetex or luatex
-
 \RequirePackage{graphicx}
 \DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
 \graphicspath{{figure/}} % 鍥剧墖璺緞
 \RequirePackage{wrapfig} % Wrap text around figures
-
 \RequirePackage[hidelinks,bookmarksnumbered=true]{hyperref}
 \RequirePackage[capitalise,nameinlink,noabbrev]{cleveref}
 \NewDocumentCommand\set_latin_fontset_windows{}{
@@ -191,13 +171,11 @@
   \setsansfont{Arial}
   \setmonofont{Courier~New}[Scale=MatchLowercase]
 }
-
 \NewDocumentCommand\set_latin_fontset_macos{}{
   \setmainfont{Times~New~Roman}
   \setsansfont{Arial}
   \setmonofont{Menlo}[Scale=MatchLowercase]
 }
-
 \NewDocumentCommand\set_latin_fontset_gyre{}{
   \setmainfont{texgyretermes}[
     Extension=.otf,
@@ -220,7 +198,6 @@
     Scale=MatchLowercase,
     Ligatures=CommonOff]
 }
-
 \NewDocumentCommand\set_chinese_fontset_windows{}{
   \setCJKmainfont{SimSun}[
     AutoFakeBold=2.17,
@@ -233,7 +210,6 @@
   \setCJKfamilyfont{zhkai}{KaiTi}[AutoFakeBold=2.17]
   \setCJKfamilyfont{zhnewhei}{Microsoft~YaHei}[BoldFont=Microsoft~YaHei~Bold]
 }
-
 \NewDocumentCommand\set_chinese_fontset_macos{}{
   \msg_redirect_name:nnn {fontspec} {no-script} {info} % 绉婚櫎 does not contain script "CJK" 璀﹀憡
   \setCJKmainfont{Songti~SC~Light}[
@@ -258,7 +234,6 @@
     ]
   \setCJKfamilyfont{zhnewhei}{PingFang~SC}
 }
-
 \NewDocumentCommand\set_chinese_fontset_fandol{}{
   \msg_redirect_name:nnn {fontspec} {no-script} {info} % 绉婚櫎 does not contain script "CJK" 璀﹀憡
   \setCJKmainfont{FandolSong-Regular}[
@@ -280,7 +255,6 @@
     Extension=.otf,
     AutoFakeBold=2.17]
 }
-
 \NewDocumentCommand\set_chinese_fontset_founder{}{
   % FZSSK 鏂规涔﹀畫锛堢畝绻佹墿灞曪級 http://www.foundertype.com/index.php/FontInfo/index/id/151 鍏嶈垂鍟嗙敤
   % FZXBSK 鏂规灏忔爣瀹嬶紙绠€绻佹墿灞曪級 http://www.foundertype.com/index.php/FontInfo/index/id/164 璁捐甯堥潪鍟嗗厤璐�
@@ -311,7 +285,6 @@
     Extension=.ttf,
     BoldFont=FZYouHK_511M]
 }
-
 \NewDocumentCommand\set_chinese_fontset_noto{}{
   % 鎬濇簮瀹嬩綋 https://www.google.com/get/noto/#serif-hans
   \setCJKmainfont[
@@ -349,7 +322,6 @@
   \setCJKfamilyfont{zhfs}{鏂规浠垮畫绠€浣搣[AutoFakeBold=2.17]
   \setCJKfamilyfont{zhkai}{鏂规妤蜂綋绠€浣搣[AutoFakeBold=2.17]
 }
-
 \bool_if:NTF \nju_systemfont
 {
   % 妫€娴嬫槸鍚︽槸 Windows
@@ -392,26 +364,21 @@
     { null } {}
   }
 }
-
 \setmathfont{XITSMath-Regular}[
   BoldFont = XITSMath-Bold,
   Extension = .otf]
-
 \NewDocumentCommand\songti{}{\CJKfamily{zhsong}}
 \NewDocumentCommand\heiti{}{\CJKfamily{zhhei}}
 \NewDocumentCommand\fangsong{}{\CJKfamily{zhfs}}
 \NewDocumentCommand\kaishu{}{\CJKfamily{zhkai}}
-
 \fancypagestyle{njuplain}{%
    \fancyhead{}
    \fancyfoot[C]{\zihao{5}\thepage} % 椤佃剼灞呬腑 浜斿彿鏂扮綏椹綋鏁板瓧
 }
-
 \fancypagestyle{njuheadings}{%
    \fancyhead{}
    \fancyfoot[C]{\zihao{5}\thepage}
 }
-
 \str_if_eq:NNTF {\nju_degree} { ug }
 {
   % the header line
@@ -430,7 +397,6 @@
   % \AtBeginDocument{\pagestyle{njuplain}} % 鏃犻〉鐪夐〉鑴�
   \AtBeginDocument{\pagestyle{headings}} % 鐮旂┒鐢熸湁椤电湁椤佃剼
 }
-
 \ctexset{
     contentsname = 鐩綍,
     listfigurename = 鎻掑浘娓呭崟,
@@ -463,13 +429,11 @@
                 {\contentslabel{3em}}
                 {\hspace*{-4em}}
                 {~\titlerule*[0.6pc]{$.$}~\contentspage}
-
 \cs_set:Npn \CTEX@addtocline #1#2
 {
   \addcontentsline { toc } {#1}
   { \use:c { CTEX@#1@tocline } {#1} {#2} }
 }
-
 \cs_new:Npn \nju_tocpagestyle:nnn #1 #2 #3
 {
   \newpage
@@ -484,7 +448,6 @@
   \@starttoc{#3}%
   \cleardoublepage
 }
-
 \tl_set:Nn \tableofcontents
 {
   \nju_tocpagestyle:nnn {鐩甛hspace{2em}褰晑{\contentsname}{toc}
@@ -497,7 +460,6 @@
 {
   \nju_tocpagestyle:nnn {\listtablename}{\listtablename}{lot}
 }
-
 \newenvironment{preface}
 {%
   \chapter*{鍓嶈█}
@@ -508,9 +470,6 @@
   \chapter*{鑷磋阿}
   \addcontentsline{toc}{chapter}{鑷磋阿}
 }{}
-
-\ProvidesExplPackage{profile/reference}{2021-09-11}{0.6.0}{NJU Thesis bibliography and reference}
-
 \RequirePackage[
     style=gb7714-2015,
     %style=numeric-comp,
@@ -534,7 +493,6 @@
     % gbpub=false,         % Uncomment if you do NOT want '[S.l. : s.n.]' in reference entries, GitHub Issue (#47)
     % gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author names in reference entries, GitHub Issue (#23)
 ]{biblatex}
-
 \AtEveryBibitem{
 \clearfield{abstract}
 \clearfield{issn}
@@ -545,7 +503,6 @@
 \clearfield{eprint}
 \ifentrytype{online}{}{\ifentrytype{misc}{}{\clearfield{url}}}
 }
-
 \crefdefaultlabelformat{#2#1#3\,} % 榛樿鍦ㄥ悕绉板悗闈㈡坊鍔犵┖鏍�
 
 \crefname{figure}{鍥緘{鍥緘
@@ -558,9 +515,6 @@
 \crefformat{subsubsection}{绗瑍#2#1#3~灏忚妭}
 \crefname{appendix}{闄勫綍}{闄勫綍}
 
-
-\ProvidesExplPackage{profile/components}{2021-09-11}{0.6.0}{NJU Thesis components configuration}
-
 \floatsetup[lstlisting]{ % Captions for lstlistings
 capposition=above,%
 margins=centering,%
@@ -576,7 +530,6 @@ capposition=above,%
 margins=centering,%
 floatwidth=\textwidth%
 }
-
 \lstset{
 basicstyle=\ttfamily\linespread{1}\small\selectfont,
     keywordstyle=\bfseries,% use bold style for keywords
@@ -590,12 +543,10 @@ basicstyle=\ttfamily\linespread{1}\small\selectfont,
 breaklines=true,
 xleftmargin=2em,xrightmargin=2em,% set the width of the code environment
 }
-
 \lstdefinestyle{LaTeX}{
   language=TeX,
   morekeywords={begin, caption, label, mathrm, frac, toprule, midrule, bottomrule, includegraphics}
 }
-
 \DeclareCaptionFont{songticap}{\zihao{5}\bf\songti}
 \captionsetup{
     font=small,%
@@ -606,14 +557,12 @@ hypcap=true, % Links point to the top of the figure
 aboveskip=6pt, % Increase the space between the figure and the caption
 belowskip=6pt, % Increase the space between the caption and the table
 }
-
 \renewcommand{\labelitemi}{\tiny$\blacktriangleright$}
 \renewcommand{\labelitemii}{\textbullet}
 
 \setlist[itemize]{noitemsep}
 \setlist[enumerate]{noitemsep}
 \setlist[description]{noitemsep}
-
 \declaretheoremstyle[
      %spaceabove=.5\thm@preskip,
      %spacebelow=.5\thm@postskip,
@@ -627,10 +576,8 @@ belowskip=6pt, % Increase the space between the caption and the table
     ]{njuthm}
 
 \theoremstyle{njuthm}
-
 \let\oldproofname=\proofname
 \renewcommand*{\proofname}{\rm\bf\songti{\oldproofname}} % 淇敼璇佹槑鐜鏍囬
-
 \declaretheorem[
 name=绠楁硶,
 style=njuthm,
@@ -711,11 +658,7 @@ refname={瀹氱悊,瀹氱悊},
 Refname={瀹氱悊,瀹氱悊},
 numberwithin=section,
 ]{theorem}
-
-\ProvidesExplPackage{profile/cover}{2021-09-11}{0.7.0}{NJU Thesis cover design}
-
 \tl_const:Nn \nju_title {\nju_title_a \nju_title_b \nju_title_c}
-
 \bool_if:NTF \nju_second_mentor
 {
   \tl_const:Nn \nju_mentor_full
@@ -739,7 +682,6 @@ numberwithin=section,
     \nju_mentor_a_en\ \nju_mentor_a_title_en
   }
 }
-
 \str_if_eq:NNTF {\nju_degree} { ug }
 {
   % 鏈
@@ -790,7 +732,6 @@ numberwithin=section,
     { phd } { \tl_const:Nn \nju_degree_title {鍗氬+} }
   }
 }
-
 \str_if_eq:NNTF {\nju_type} {thesis}
 {
   \tl_const:Nn \nju_type_name
@@ -800,7 +741,6 @@ numberwithin=section,
   \tl_const:Nn \nju_type_name
     { \nju_degree_name 姣昞hfill 涓歕hfill 璁綷hfill 璁� }
 }
-
 \tl_new:N \nju_printcoverinfo_ug
 \tl_set:Nn \nju_printcoverinfo_ug
 {
@@ -860,7 +800,6 @@ numberwithin=section,
     & \nju_cover_underline_ug:nn {250pt}{\nju_submit_date}\\
   \end{tabular}
 }
-
 \tl_new:N \nju_printcoverinfo_g
 \tl_set:Nn \nju_printcoverinfo_g
 {
@@ -892,11 +831,9 @@ numberwithin=section,
     & \nju_cover_underline_g:n {\nju_mentor_full}\\
   \end{tabular}
 }
-
 \tl_new:N \nju_printcover_nl % 鍥藉鍥句功棣嗗皝闈�
 \tl_new:N \nju_printcover_ug % 鏈灏侀潰
 \tl_new:N \nju_printcover_g % 鐮旂┒鐢熷皝闈�
-
 \bool_if:NT \nju_nl_cover
 {
   \tl_set:Nn \nju_printcover_nl
@@ -1065,9 +1002,6 @@ numberwithin=section,
     \nju_printcover_g % 鐮旂┒鐢熷皝闈�
   }
 }
-
-\ProvidesExplPackage{profile/abstract}{2021-09-11}{0.7.0}{NJU Thesis abstract design}
-
 \str_if_eq:NNTF {\nju_degree} { ug }
 {
   % 鏈鎽樿鐜
diff --git a/njuthesis.dtx b/njuthesis.dtx
index ecef1b0..3677cc7 100644
--- a/njuthesis.dtx
+++ b/njuthesis.dtx
@@ -17,7 +17,7 @@
 %
 % \iffalse
 %<*driver>
-\ProvidesFile{njuthesis.dtx}
+\ProvidesFile{njuthesis.dtx}[2021/09/12 0.8.3 Nanjing University Thesis Template]
 %</driver>
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\ProvidesExplClass{njuthesis}{2021-09-12}{0.8.3}{NJU Thesis LaTeX Template}
@@ -25,6 +25,7 @@
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage{dtx-style}
+\usepackage{hologo}
 
 \EnableCrossrefs
 \CodelineIndex
@@ -88,10 +89,102 @@
 % \date{v\fileversion\ (\filedate)}
 % \maketitle\thispagestyle{empty}
 %
-% \section{Introduction}
+%
+% \begin{abstract}\noindent
+%  鍗椾含澶у瀛︿綅璁烘枃\hologo{LaTeX}妯℃澘鍩轰簬鏈鐢熼櫌鐨勮鏂囨挵鍐欒鑼冨埗浣滐紝鍚屾椂鍙傝€冪爺绌剁敓闄㈡彁渚涚殑纭曞+銆佸崥澹浣嶆潗鏂欏寘锛岀敤浜庣敓鎴愮鍚堝崡浜ぇ瀛﹀浣嶈鏂囨帓鐗堣姹傚拰鐩稿簲鐨勫浗瀹惰鑼冦€佽涓氭爣鍑嗙殑瀛︿綅璁烘枃锛屾棬鍦ㄤ负鍚屽鎻愪緵姣曚笟璁烘枃涔﹀啓鐨勬柟渚裤€�
+% \end{abstract}
+%
+% \section{妯℃澘浠嬬粛}
+%
+% \section{璐$尞鑰厎
+% \label{sec:contributors}
 %
 % Put text here.
 %
+% \section{閰嶇疆鐜}
+% \label{sec:setup}
+%
+% 涓嬭〃鏄洰鍓嶇粡杩囨祴璇曠殑鐜銆傚鏋滄湁鍏朵粬鍙敤涓嶅彲鐢ㄧ殑鐜锛屾杩庤ˉ鍏呫€�
+%
+% \begin{table}[ht]
+%     \caption{缁忚繃娴嬭瘯鐨勭幆澧儅
+%     % \label{tab:1}
+%     \begin{tabular}{ccc}
+%         \toprule
+%         OS & TeX & 娴嬭瘯鎯呭喌 \\
+%         \midrule
+%         Windows 10 & \hologo{TeX}\,Live 2021 & 閫氳繃 \\
+%         Windows 10 & \hologo{MiKTeX} & 閫氳繃 \\
+%         Windows 10 & \hologo{TeX}\,Live 2020 & cref瀛樺湪鏍煎紡闂  \\
+%         macOS 10.15 & \hologo{TeX}\,Live 2021 & 閫氳繃 \\
+%         Ubuntu 20.04 & \hologo{TeX}\,Live 2021 & 閫氳繃 \\
+%         鍗楀ぇ\hologo{TeX} & \hologo{TeX}\,Live 2021 & 閫氳繃 \\
+%         Overleaf & \hologo{TeX}\,Live 2020 & cref瀛樺湪鏍煎紡闂  \\
+%         \bottomrule
+%     \end{tabular}
+% \end{table}
+%
+% \section{鏈湴缂栬瘧}
+%
+% \subsubsection{瀹夎\hologo{TeX}鍙戣鐗坿
+%
+% 棣栧厛闇€瑕佷笅杞絓hologo{TeX}杞欢鍙戣鐗堬紝鏍″洯缃戠幆澧冧腑浣跨敤\href{https://mirror.nju.edu.cn/download/app/TeX%20%E6%8E%92%E7%89%88%E7%B3%BB%E7%BB%9F}{鍗楀ぇ闀滃儚绔檥鍙互鑾峰緱鏈€濂界殑浣撻獙銆俓textbf{鎺ㄨ崘浣跨敤鏈€鏂扮殑\hologo{TeX}\,Live 2021鎴栬€匼hologo{MiKTeX} 21浠ラ伩鍏嶆綔鍦ㄧ殑鍏煎鎬ч棶棰樸€倉
+%
+% \begin{itemize}
+%     \item 涓轰簡閬垮厤涓嶅繀瑕佺殑楹荤儲锛岃灏藉彲鑳戒笅杞� full 鐗堟湰锛屽 texlive-full銆傜畝鑰岃█涔嬶紝涓嬭浇澶х殑閭d釜銆�
+%     \item 骞朵笖锛屽敖鍙兘浣跨敤鏈€鏂扮増锛堟埅鑷崇洰鍓嶆槸 2021锛夈€�2020 鍙婁箣鍓嶇増鏈娇鐢� PDF 鏍煎紡鐨勫浘鐗囧彲鑳戒細鍑虹幇鍔犵矖闂銆�
+% \end{itemize}
+%
+% \subsubsection{閫夋嫨缂栬緫鍣▆
+%
+% 閰嶇疆瀹岀紪璇戝櫒鍚庯紝杩橀渶瑕佷竴涓猏textbf{鏂囨湰缂栬緫鍣▆浣滀负鍓嶇鏉ュ畬鎴怽texttt{.tex}鏂囦欢鍐呭鐨勫啓浣溿€�
+%
+% 鑷充粖浠嶆湁鐩稿綋涓€閮ㄥ垎浜鸿涓篧indows鑷甫鐨刓textit{璁颁簨鏈瑌鏄渶濂界殑鏂囨湰缂栬緫鍣紝浣嗗浜庢湰椤圭洰鑰岃█锛屽湪姝よ瘹蹇冭瘹鎰忓湴鎺ㄨ崘浣犱娇鐢╘textbf{鏇寸幇浠f洿缇庤鏇村鍔熻兘}鐨勭紪杈戝櫒锛岃濡俓emph{瀹夎浜� LaTeX Workshop 鎻掍欢 鐨� \href{https://code.visualstudio.com/}{Visual Studio Code}}锛屾潵瀹屾垚璁烘枃缂栧啓銆備綘涔熷彲浠ユ牴鎹釜浜虹殑鍠滃ソ闅忎究浣跨敤鍏朵粬缂栬緫鍣紝濡� TeXworks銆乀eX Studio 绛夛紝椤烘墜灏辫銆�
+%
+% 鑻ヤ娇鐢� LaTeX Workshop 鎻掍欢锛屾湰椤圭洰鍦╘lstinline|.vscode/|涓彁渚涗竴浠界畝鏄撻厤缃紝鍙互鐪佺暐鍒濆閰嶇疆姝ラ鐩存帴浣跨敤銆�
+%
+% \subsubsection{缂栬瘧椤哄簭}
+% 搴旈噰鐢ㄤ互涓嬪懡浠ら『搴忚繘琛岀紪璇戯紝浠ョ敓鎴愭纭殑鐩綍銆佺紪鍙峰拰鍙傝€冩枃鐚潯鐩€�
+% \begin{enumerate}
+%     \item \lstinline|xelatex| / \lstinline|lualatex|
+%     \item \lstinline|biber|
+%     \item \lstinline|xelatex| / \lstinline|lualatex|
+%     \item \lstinline|xelatex| / \lstinline|lualatex|
+% \end{enumerate}
+%
+% 缂栬瘧浜х墿\footnote{浣滀负鍖栧瀛︾敓锛屼亢璁や负鐢ㄢ€滀骇鐗┾€濅唬鏇库€滅紪璇戠敓鎴愮殑鏂囦欢鈥濇槸涓€涓€氫織鏄撴噦鐨勮娉晑涓篭lstinline|njuthesis.pdf|锛屼綅浜庝富鐩綍涓嬨€傛澶栬繕浼氱敓鎴愪竴绯诲垪涓棿鏂囦欢锛屽彲浠ラ€夋嫨浣跨敤\lstinline|latexmk -c|杩涜娓呯悊銆�
+%
+% \subsection{鍦ㄧ嚎缂栬瘧}
+%
+% 鐩镐俊浣犲湪鎺ヨЕ浜嗘湰鍦扮紪璇戜互鍚庯紝寰堝揩灏变細鎰忚瘑鍒颁竴浜涘崄鍒嗘樉鐒剁殑浜嬪疄锛岃濡俓hologo{TeX}缂栬瘧鍣ㄥ畨瑁呰繃绋嬭緝涓烘极闀匡紝鍗犵敤绌洪棿杩囧ぇ锛岃€屼笖鍦ㄤ竴閮ㄥ垎澶勭悊鍣ㄦ€ц兘涓嶄匠鐨勭數鑴戜笂闇€瑕佽緝闀跨紪璇戞椂闂碶footnote{鍏跺疄杩欎笁鐐归兘鏄骞垮ぇ鐨刉indows鐢ㄦ埛璇寸殑锛屽悓涓€涓ā鏉垮湪Linux缂栬瘧鍙互鑺傜渷涓€鍗婅€楁椂}銆傛嫆缁濇帴鍙楄繖浜涢夯鐑︾殑鍚屽涓嶅Θ灏濊瘯鏈妭浠嬬粛鐨勫湪绾跨紪璇戞柟娉曘€�
+%
+% \subsubsection{鍗楀ぇ\hologo{TeX}骞冲彴绠€浠媫
+%
+% \href{https://tex.nju.edu.cn}{鍗楀ぇ\hologo{TeX}}鍩轰簬寮€婧愮殑ShareLaTeX骞冲彴\footnote{鐞嗚涓婂湪\href{https://doc.nju.edu.cn/books/latex}{杩欎釜缃戠珯}鑳芥壘鍒颁竴娈靛钩鍙扮畝浠嬶紝瀹為檯涓婂ぇ瀹堕兘鏈夋剰鏃犳剰鍦伴附浜嗭紝涓嬫涓€瀹氳ˉ涓娿€倉锛屼簬2021骞�3鏈�4鏃ユ寮忎笂绾匡紝闈㈠悜鍗椾含澶у鍏ㄤ綋甯堢敓寮€鏀撅紝棣栨浣跨敤闇€鍑鏍¢偖绠辫嚜鍔╂敞鍐岃处鍙枫€�
+%
+% \subsubsection{鎿嶄綔姝ラ}
+%
+% \begin{enumerate}
+%     \item 涓嬭浇\href{https://github.com/nju-lug/NJUThesisUndergraduate/archive/refs/heads/master.zip}{妯℃澘鍏ㄩ儴鏂囦欢}
+%     \item 璁块棶\href{https://tex.nju.edu.cn}{鍗楀ぇ\hologo{TeX}}锛岀偣鍑荤晫闈㈠彸涓婃柟Register锛屼娇鐢╘emph{鍗椾含澶у閭}娉ㄥ唽璐﹀彿骞剁櫥褰�
+%     \item 鐐瑰嚮New Project -> Upload Project涓婁紶鍒氬垰寰楀埌鐨剒ip鏂囦欢锛屼笂浼犲悗njuthesis.tex銆乶juthesis.cls绛夋枃浠跺簲鍦ㄦ牴鐩綍锛岀洰褰曠粨鏋勫{{sec:directory}}鎵€绀�
+%     \item 鍦ㄩ」鐩〉闈㈠乏涓婅鐨凪enu涓紝灏嗙紪璇戝櫒鏀逛负\hologo{XeLaTeX}鎴栬€匼hologo{LuaLaTeX}
+%     \item 缂栧啓璁烘枃
+%     \item 鐐瑰嚮Compile鎸夐挳杩涜缂栬瘧鍜岄瑙�
+%     \item 鐐瑰嚮缂栬瘧鎸夐挳鍙充晶绗笁涓寜閽笅杞戒骇鐗�
+% \end{enumerate}
+%
+% \subsubsection{鍏充簬Overleaf骞冲彴}
+%
+% 鐢变簬\href{https://www.overleaf.com/}{Overleaf骞冲彴}鐨刓hologo{TeX}\,Live鐗堟湰鍋滅暀鍦�2020锛孿texttt{cleveref}鍖呭湪寮曠敤绔犺妭鏃朵細鐢熸垚閿欒鐨勬爣绛撅紝寮曞彂鏍煎紡閿欒锛涜€屽崡澶hologo{TeX}閫氳繃鍙婃椂鏇存柊瑙勯伩浜嗚繖涓€闂銆傚洜姝emph{璇峰姟蹇呬笉瑕佷娇鐢∣verleaf瀹樼綉杩涜缂栬瘧}銆�
+%
+% \subsection{瀛椾綋}
+%
+% 瀛︽牎璁烘枃鏍煎紡瑕佹眰浣跨敤鐨勫瓧浣撲竴鑸凡缁忛瑁呭湪鍚勪釜鎿嶄綔绯荤粺锛屾湰妯℃澘閽堝涓嶅悓骞冲彴杩涜浜嗚嚜鍔ㄦ娴嬮€傞厤锛屽彲浠ュ紑绠卞嵆鐢ㄣ€�
+%
+% 鍚勪釜绯荤粺鐨勯粯璁ゅ瓧浣撹鍙傝€儃tab:defaultfontset}銆傚彲浠ョ湅鍒帮紝涓嶅悓绯荤粺涓婁娇鐢ㄧ殑瀛椾綋鏈夋墍宸埆锛屽疄闄呰緭鍑虹粨鏋滃彲鑳藉瓨鍦ㄧ粏寰笉鍚�, 浣跨敤鏃惰娉ㄦ剰銆備緥濡傦紝鍦↙inux骞冲彴鎴栬€呬娇鐢ㄤ簡Ubuntu鍚庣鐨勫崡澶hologo{TeX}涓婏紝瀹嬩綋鍔犵矖鏁堟灉鏇存槑鏄撅紱鍙︿竴鏂归潰锛屽湪Windows骞冲彴杩涜缂栬瘧鐨勬晥鏋滄洿鎺ヨ繎Word鍔犵矖\footnote{鍥犱负SimSun娌℃湁鍘熺敓绮椾綋锛岄€氳繃AutoFakeBold=2.17杩涜妯′豢}銆�
+%
+%
 % \section{Usage}
 %
 % Put text here.
@@ -122,28 +215,60 @@
 {
   titlelength       .int_set:N    =   \nju_titlelength,
   titlelength       .initial:n    =   1,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   secondmentor      .bool_set:N   =   \nju_second_mentor,
   secondmentor      .initial:n    =   false,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   nlcover           .bool_set:N   =   \nju_nl_cover,
   nlcover           .initial:n    =   false,
-
+%    \end{macrocode}
+%
+% \subsection{瀛︿綅}
+% \DescribeOption{degree}
+% 閫夋嫨瀛︿綅锛屽彲閫夛細
+% \option{ug}锛堥粯璁わ級锛孿option{mg}锛孿option{mf}锛孿option{phd}銆�
+%    \begin{macrocode}
   degree            .tl_set:N     =   \nju_degree,
-  degree            .initial:n    =   UG,
-
+  degree            .initial:n    =   ug,
+%    \end{macrocode}
+%
+% \subsection{绫诲瀷}
+% \DescribeOption{type}
+% 閫夋嫨瀛︿綅锛屽彲閫夛細
+% \option{thesis}锛堥粯璁わ級锛孿option{design}銆�
+%    \begin{macrocode}
   type              .tl_set:N     =   \nju_type,
   type              .initial:n    =   thesis,
-
+%    \end{macrocode}
+%
+% \DescribeOption{systemfont}
+% 鏄惁浣跨敤绯荤粺棰勮鐨勫瓧浣擄紝鍙€夛細
+% \option{true}锛堥粯璁わ級锛孿option{false}銆�
+%    \begin{macrocode}
   systemfont        .bool_set:N   =   \nju_systemfont,
   systemfont        .initial:n    =   true,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   customlatinfont   .tl_set:N     =   \nju_customlatinfont,
   customlatinfont   .initial:n    =   windows,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   customchinesefont .tl_set:N     =   \nju_customchinesefont,
   customchinesefont .initial:n    =   windows,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   info              .meta:nn      =   { nju / info } { #1 }
 }
 %    \end{macrocode}
@@ -153,18 +278,28 @@
 %    \begin{macrocode}
 \keys_define:nn { nju / info }
 {
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 棰樼洰
   TitleA            .tl_set:N     =   \nju_title_a,
   TitleB            .tl_set:N     =   \nju_title_b,
   TitleC            .tl_set:N     =   \nju_title_c,
   TitleEN           .tl_set:N     =   \nju_title_en,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 骞寸骇瀛﹀彿濮撳悕
   Grade             .tl_set:N     =   \nju_grade,
   StudentID         .tl_set:N     =   \nju_student_id,
   StudentName       .tl_set:N     =   \nju_student_name,
   StudentNameEN     .tl_set:N     =   \nju_student_name_en,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 闄㈢郴涓撲笟鏂瑰悜
   Department        .tl_set:N     =   \nju_department,
   DepartmentEN      .tl_set:N     =   \nju_department_en,
@@ -172,22 +307,34 @@
   MajorEN           .tl_set:N     =   \nju_major_en,
   Field             .tl_set:N     =   \nju_field,
   FieldEN           .tl_set:N     =   \nju_field_en,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 瀵煎笀
   MentorA           .tl_set:N     =   \nju_mentor_a,
   MentorAEN         .tl_set:N     =   \nju_mentor_a_en,
   MentorATitle      .tl_set:N     =   \nju_mentor_a_title,
   MentorATitleEN    .tl_set:N     =   \nju_mentor_a_title_en,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 绗簩瀵煎笀
   MentorB           .tl_set:N     =   \nju_mentor_b,
   MentorBEN         .tl_set:N     =   \nju_mentor_b_en,
   MentorBTitle      .tl_set:N     =   \nju_mentor_b_title,
   MentorBTitleEN    .tl_set:N     =   \nju_mentor_b_title_en,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 鎻愪氦鏃ユ湡
   SubmitDate        .tl_set:N     =   \nju_submit_date,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 绛旇京
   DefendDate        .tl_set:N     =   \nju_defend_date,
   ReviewerChairman  .tl_set:N     =   \nju_reviewer_chairman,
@@ -195,7 +342,10 @@
   ReviewerB         .tl_set:N     =   \nju_reviewer_b,
   ReviewerC         .tl_set:N     =   \nju_reviewer_c,
   ReviewerD         .tl_set:N     =   \nju_reviewer_d,
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
   % 鍥藉鍥句功棣嗗皝闈㈢浉鍏�
   Classification    .tl_set:N     =   \nju_classification,
   SecurityLevel     .tl_set:N     =   \nju_securitylevel,
@@ -243,7 +393,10 @@
 \RequirePackage{setspace}
 \RequirePackage{lastpage}
 \RequirePackage{emptypage} % 娓呴櫎绌虹櫧椤电殑椤电爜
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \RequirePackage{listings} % 浠g爜鐜
 \RequirePackage{enumitem} % 鐢ㄤ簬淇敼鍒楄〃鐜
 \RequirePackage{caption}
@@ -256,6 +409,10 @@
 \RequirePackage{hologo} % 鐢ㄤ簬鐢熸垚鍙互琚彃鍏ヤ功绛剧殑LaTeX logo
 % \RequirePackage{needspace} % Required to prevent page break right after a sectioning command
 % \RequirePackage{xspace} % Better print trailing whitespace
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \sys_if_engine_xetex:T
 {
     \RequirePackage{microtype}
@@ -277,11 +434,17 @@
     % For windows. 
     % Shipped with the best `grinning-face-with-sweat' support.
 }
-
+%    \end{macrocode}
+%
+% 鍑犱釜鐢ㄦ潵杩涜寮€鍙戞祴璇曠殑鍖�
+%    \begin{macrocode}
 \RequirePackage{blindtext} % 鐢熸垚鐢ㄤ簬娴嬭瘯鐨勫ぇ娈垫棤鎰忎箟鑻辨枃鏂囧瓧
 \RequirePackage{zhlipsum} % 鐢熸垚鐢ㄤ簬娴嬭瘯鐨勫ぇ娈垫棤鎰忎箟涓枃鏂囧瓧
 % \RequirePackage{showframe} % 鍔犺浇浠ュ悗灞曠ず鍐呭杈圭晫
-
+%    \end{macrocode}
+%
+% 鏁板
+%    \begin{macrocode}
 \RequirePackage{amsmath} % Must be loaded before unicode-math
 \RequirePackage{amsthm} % Mathematical environments
 \RequirePackage{mathtools} % Mathematical tools to use with amsmath
@@ -291,12 +454,18 @@
         mathtools-colon,
         mathtools-overbracket}
         ]{unicode-math} % Math fonts in xetex or luatex
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \RequirePackage{graphicx}
 \DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
 \graphicspath{{figure/}} % 鍥剧墖璺緞
 \RequirePackage{wrapfig} % Wrap text around figures
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 蹇呴』浠ヨ椤哄簭鍔犺浇浠ヤ笅涓変釜鍖�
 % \RequirePackage{varioref}
 \RequirePackage[hidelinks,bookmarksnumbered=true]{hyperref}
@@ -311,13 +480,19 @@
   \setsansfont{Arial}
   \setmonofont{Courier~New}[Scale=MatchLowercase]
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \NewDocumentCommand\set_latin_fontset_macos{}{
   \setmainfont{Times~New~Roman}
   \setsansfont{Arial}
   \setmonofont{Menlo}[Scale=MatchLowercase]
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \NewDocumentCommand\set_latin_fontset_gyre{}{
   \setmainfont{texgyretermes}[
     Extension=.otf,
@@ -340,7 +515,10 @@
     Scale=MatchLowercase,
     Ligatures=CommonOff]
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 璁剧疆涓枃瀛椾綋
 \NewDocumentCommand\set_chinese_fontset_windows{}{
   \setCJKmainfont{SimSun}[
@@ -354,7 +532,10 @@
   \setCJKfamilyfont{zhkai}{KaiTi}[AutoFakeBold=2.17]
   \setCJKfamilyfont{zhnewhei}{Microsoft~YaHei}[BoldFont=Microsoft~YaHei~Bold]
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \NewDocumentCommand\set_chinese_fontset_macos{}{
   \msg_redirect_name:nnn {fontspec} {no-script} {info} % 绉婚櫎 does not contain script "CJK" 璀﹀憡
   \setCJKmainfont{Songti~SC~Light}[
@@ -379,7 +560,10 @@
     ]
   \setCJKfamilyfont{zhnewhei}{PingFang~SC}
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \NewDocumentCommand\set_chinese_fontset_fandol{}{
   \msg_redirect_name:nnn {fontspec} {no-script} {info} % 绉婚櫎 does not contain script "CJK" 璀﹀憡
   \setCJKmainfont{FandolSong-Regular}[
@@ -401,7 +585,10 @@
     Extension=.otf,
     AutoFakeBold=2.17]
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鏂规瀛楃闆�
 \NewDocumentCommand\set_chinese_fontset_founder{}{
   % FZSSK 鏂规涔﹀畫锛堢畝绻佹墿灞曪級 http://www.foundertype.com/index.php/FontInfo/index/id/151 鍏嶈垂鍟嗙敤
@@ -433,7 +620,10 @@
     Extension=.ttf,
     BoldFont=FZYouHK_511M]
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \NewDocumentCommand\set_chinese_fontset_noto{}{
   % 鎬濇簮瀹嬩綋 https://www.google.com/get/noto/#serif-hans
   \setCJKmainfont[
@@ -471,7 +661,10 @@
   \setCJKfamilyfont{zhfs}{鏂规浠垮畫绠€浣搣[AutoFakeBold=2.17]
   \setCJKfamilyfont{zhkai}{鏂规妤蜂綋绠€浣搣[AutoFakeBold=2.17]
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 瀛椾綋鍒ゆ柇
 \bool_if:NTF \nju_systemfont
 % 鏍规嵁鎿嶄綔绯荤粺鑷姩閫夋嫨鐩稿簲瀛椾綋
@@ -517,31 +710,46 @@
   }
 }
 % 閫夋嫨鍏朵粬瀛椾綋锛岃纭繚鐩稿簲瀛椾綋宸插畨瑁�
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 璁剧疆鏁板瀛椾綋 (XITS, 鎴栬€� STIX, 涓� Times New Roman 鏈€涓虹浉杩�)
 % \setmathfont{STIXTwoMath-Regular}[Extension = .otf]
 \setmathfont{XITSMath-Regular}[
   BoldFont = XITSMath-Bold,
   Extension = .otf]
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \NewDocumentCommand\songti{}{\CJKfamily{zhsong}}
 \NewDocumentCommand\heiti{}{\CJKfamily{zhhei}}
 \NewDocumentCommand\fangsong{}{\CJKfamily{zhfs}}
 \NewDocumentCommand\kaishu{}{\CJKfamily{zhkai}}
 % \NewDocumentCommand\lishu{}{\CJKfamily{zhli}}
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鏈鐢熼〉鐪夐〉鑴� 
 \fancypagestyle{njuplain}{%
    \fancyhead{}               
    \fancyfoot[C]{\zihao{5}\thepage} % 椤佃剼灞呬腑 浜斿彿鏂扮綏椹綋鏁板瓧
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % TODO: 鐮旂┒鐢熼〉鐪夐〉鑴� 
 \fancypagestyle{njuheadings}{%
    \fancyhead{}               
    \fancyfoot[C]{\zihao{5}\thepage}        
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \str_if_eq:NNTF {\nju_degree} { ug } 
 {
   % the header line
@@ -560,7 +768,10 @@
   % \AtBeginDocument{\pagestyle{njuplain}} % 鏃犻〉鐪夐〉鑴�
   \AtBeginDocument{\pagestyle{headings}} % 鐮旂┒鐢熸湁椤电湁椤佃剼
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % ctex鏍煎紡璁剧疆
 % 鐩綍鏍囬 涓夊彿瀹嬩綋鍔犵矖
 % 鍚勯儴鍒嗘爣棰� 鍥涘彿榛戜綋
@@ -599,13 +810,19 @@
                 {\contentslabel{3em}}
                 {\hspace*{-4em}}
                 {~\titlerule*[0.6pc]{$.$}~\contentspage}
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \cs_set:Npn \CTEX@addtocline #1#2
 { 
   \addcontentsline { toc } {#1} 
   { \use:c { CTEX@#1@tocline } {#1} {#2} } 
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鐩綍椤甸潰鏍煎紡淇敼
 \cs_new:Npn \nju_tocpagestyle:nnn #1 #2 #3
 {
@@ -621,7 +838,10 @@
   \@starttoc{#3}%
   \cleardoublepage
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \tl_set:Nn \tableofcontents 
 {
   \nju_tocpagestyle:nnn {鐩甛hspace{2em}褰晑{\contentsname}{toc}
@@ -634,21 +854,30 @@
 {
   \nju_tocpagestyle:nnn {\listtablename}{\listtablename}{lot}
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 瀹氬埗鍓嶈█銆佽嚧璋㈢幆澧�
 \newenvironment{preface}
 {%
   \chapter*{鍓嶈█}
   \addcontentsline{toc}{chapter}{鍓嶈█}
 }{}
+%    \end{macrocode}
+%
+% \DescribeEnv{acknowledgements}
+% 鍗曠嫭鍒朵綔鐨勮嚧璋㈤〉銆�
+%    \begin{macrocode}
 \newenvironment{acknowledgement}
 {%
   \chapter*{鑷磋阿}
   \addcontentsline{toc}{chapter}{鑷磋阿}
 }{}
-
-\ProvidesExplPackage{profile/reference}{2021-09-11}{0.6.0}{NJU Thesis bibliography and reference} 
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % biblatex璁剧疆
 \RequirePackage[
     style=gb7714-2015,
@@ -673,7 +902,10 @@
     % gbpub=false,         % Uncomment if you do NOT want '[S.l. : s.n.]' in reference entries, GitHub Issue (#47)
     % gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author names in reference entries, GitHub Issue (#23)
 ]{biblatex}
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % Remove some unwanted entries from the bibliography
 \AtEveryBibitem{
 	\clearfield{abstract}
@@ -686,7 +918,10 @@
 	\ifentrytype{online}{}{\ifentrytype{misc}{}{\clearfield{url}}}
 	% \ifentrytype{book}{\clearfield{doi}}{}
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 淇敼鏍囩鍚嶇О
 \crefdefaultlabelformat{#2#1#3\,} % 榛樿鍦ㄥ悕绉板悗闈㈡坊鍔犵┖鏍�
 
@@ -715,9 +950,10 @@
 % \crefname{condition}{鏉′欢}{鏉′欢}
 % \crefname{conclusion}{缁撹}{缁撹}
 % \crefname{assumption}{鍋囪}{鍋囪}
-
-\ProvidesExplPackage{profile/components}{2021-09-11}{0.6.0}{NJU Thesis components configuration} 
-
+%    \end{macrocode}
+%
+% soifjsojfosjfos
+%    \begin{macrocode}
 % 鍥捐〃浣嶇疆璋冩暣
 \floatsetup[lstlisting]{ % Captions for lstlistings
 	capposition=above,%
@@ -734,7 +970,10 @@
 	margins=centering,%
 	floatwidth=\textwidth%
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 浠g爜鏍峰紡
 \lstset{
 	basicstyle=\ttfamily\linespread{1}\small\selectfont,
@@ -752,12 +991,18 @@
 	breaklines=true,
 	xleftmargin=2em,xrightmargin=2em,% set the width of the code environment
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \lstdefinestyle{LaTeX}{
   language=TeX,
   morekeywords={begin, caption, label, mathrm, frac, toprule, midrule, bottomrule, includegraphics}
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鍥捐〃鏍囬鏍峰紡
 \DeclareCaptionFont{songticap}{\zihao{5}\bf\songti}
 \captionsetup{
@@ -771,7 +1016,10 @@
 	aboveskip=6pt, % Increase the space between the figure and the caption
 	belowskip=6pt, % Increase the space between the caption and the table
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % list configuration
 \renewcommand{\labelitemi}{\tiny$\blacktriangleright$}
 \renewcommand{\labelitemii}{\textbullet}
@@ -779,7 +1027,10 @@
 \setlist[itemize]{noitemsep}
 \setlist[enumerate]{noitemsep}
 \setlist[description]{noitemsep}
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鏁板鐜
 \declaretheoremstyle[
     	%spaceabove=.5\thm@preskip,
@@ -794,10 +1045,16 @@
     ]{njuthm}
 
 \theoremstyle{njuthm}
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \let\oldproofname=\proofname
 \renewcommand*{\proofname}{\rm\bf\songti{\oldproofname}} % 淇敼璇佹槑鐜鏍囬
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 \declaretheorem[
 	name=绠楁硶,
 	style=njuthm,
@@ -889,12 +1146,16 @@
 	Refname={瀹氱悊,瀹氱悊},
 	numberwithin=section,
 ]{theorem}
-
-\ProvidesExplPackage{profile/cover}{2021-09-11}{0.7.0}{NJU Thesis cover design} 
-
+%    \end{macrocode}
+%
+% \section{灏侀潰璁捐}
+%    \begin{macrocode}
 % 鎷煎悎鏍囬
 \tl_const:Nn \nju_title {\nju_title_a \nju_title_b \nju_title_c}
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鎷煎悎瀵煎笀
 \bool_if:NTF \nju_second_mentor
 { 
@@ -919,7 +1180,10 @@
     \nju_mentor_a_en\ \nju_mentor_a_title_en
   }
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鍒ゆ柇瀛︿綅杩涜鍛戒护瀹氫箟
 \str_if_eq:NNTF {\nju_degree} { ug } 
 {
@@ -971,7 +1235,10 @@
     { phd } { \tl_const:Nn \nju_degree_title {鍗氬+} }
   }
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鍒ゆ柇绫诲瀷
 \str_if_eq:NNTF {\nju_type} {thesis} 
 {
@@ -982,7 +1249,10 @@
   \tl_const:Nn \nju_type_name 
     { \nju_degree_name 姣昞hfill 涓歕hfill 璁綷hfill 璁� }
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 灏侀潰淇℃伅鏍� 鏈
 \tl_new:N \nju_printcoverinfo_ug
 \tl_set:Nn \nju_printcoverinfo_ug 
@@ -1043,7 +1313,10 @@
     & \nju_cover_underline_ug:nn {250pt}{\nju_submit_date}\\
   \end{tabular}
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 灏侀潰淇℃伅鏍� 鐮旂┒鐢�
 \tl_new:N \nju_printcoverinfo_g
 \tl_set:Nn \nju_printcoverinfo_g 
@@ -1076,12 +1349,18 @@
     & \nju_cover_underline_g:n {\nju_mentor_full}\\
   \end{tabular}
 }
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 缁樺埗灏侀潰鍛戒护
 \tl_new:N \nju_printcover_nl % 鍥藉鍥句功棣嗗皝闈�
 \tl_new:N \nju_printcover_ug % 鏈灏侀潰
 \tl_new:N \nju_printcover_g % 鐮旂┒鐢熷皝闈�
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鎸夐渶缁樺埗鍥藉鍥句功棣嗗皝闈紝淇敼鑷棫妯℃澘
 \bool_if:NT \nju_nl_cover
 {
@@ -1254,9 +1533,10 @@
     \nju_printcover_g % 鐮旂┒鐢熷皝闈� 
   } 
 }
-
-\ProvidesExplPackage{profile/abstract}{2021-09-11}{0.7.0}{NJU Thesis abstract design}
-
+%    \end{macrocode}
+%
+% Put text here.
+%    \begin{macrocode}
 % 鍒ゆ柇瀛︿綅
 \str_if_eq:NNTF {\nju_degree} { ug } 
 {   
-- 
GitLab