diff --git a/njuthesis-sample.tex b/njuthesis-sample.tex index 96560fc9970e8dc23a77c44dfef455d9b1849d5a..ff177e86a6186df2b5159c82b82044ef6efb0dc4 100644 --- a/njuthesis-sample.tex +++ b/njuthesis-sample.tex @@ -19,7 +19,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[ degree=phd,% 榛樿鏈(ug), mg: 瀛︾, mf: 涓撶, phd: 鍗氬+ - type=thesis,% thesis: 姣曚笟璁烘枃锛宒esign: 姣曚笟璁捐 + type=thesis,% 榛樿姣曚笟璁烘枃(thesis)锛宒esign: 姣曚笟璁捐 nlcover=true,% 闇€瑕佸浗瀹跺浘涔﹂灏侀潰锛屽鏈鏃犳晥 % 鑻ヤ互涓嬩袱椤逛笉璁剧疆鍒欒嚜鍔ㄨ皟鐢ㄧ郴缁熼瑁呭瓧浣� % customlatinfont=windows,% 璁剧疆鑻辨枃瀛楃闆� diff --git a/njuthesis.dtx b/njuthesis.dtx index 3de579a11594e0a183125c9ce166fe449134d48a..7ded25073d202d6e9eed03ebf9e8f2c7aa6cf901 100644 --- a/njuthesis.dtx +++ b/njuthesis.dtx @@ -228,10 +228,11 @@ through XeTeX. %</driver> % \fi % -% \title{\color{njuviolet} The \textsc{NJuThesis} class\\ 鍗椾含澶у瀛︿綅璁烘枃妯℃澘} +% \title{\color{njuviolet}{The \textsc{NJuThesis} class\\ 鍗椾含澶у瀛︿綅璁烘枃妯℃澘}} % % \author{^^A -% Nanjing University Linux User Group\thanks{E-mail: \href{mailto:nju.lug@yaoge123.cn}{nju.lug@yaoge123.cn}}} +% Nanjing University Linux User Group +% \thanks{E-mail: \href{mailto:nju.lug@yaoge123.cn}{nju.lug@yaoge123.cn}}} % % \date{v0.9.1 \\ Released 2021-09-16} % @@ -250,6 +251,7 @@ through XeTeX. % % \clearpage % +% \setcounter{tocdepth}{4} % \tableofcontents % \clearpage % @@ -260,7 +262,7 @@ through XeTeX. % % % \section{妯℃澘浠嬬粛} -% NJUTHESIS锛屽嵆鍗椾含澶у瀛︿綅璁烘枃妯℃澘锛屾槸涓€涓敱鍗椾含澶уLUG缁勭粐缁存姢鐨勶紝鐢ㄤ簬澶勭悊鏈牎瀛︾敓姣曚笟璁烘枃鎺掔増闇€姹傜殑\hologo{LaTeX}妯℃澘銆� +% \textsc{NJuThesis}锛屽嵆鍗椾含澶у瀛︿綅璁烘枃妯℃澘锛屾槸涓€涓敱鍗椾含澶уLUG缁勭粐缁存姢鐨勶紝鐢ㄤ簬澶勭悊鏈牎瀛︾敓姣曚笟璁烘枃鎺掔増闇€姹傜殑\hologo{LaTeX}妯℃澘銆� % % \subsection{鍘嗗彶娌块潻} % @@ -272,7 +274,7 @@ through XeTeX. % \item 鑳℃捣鏄燂紙\href{http://haixing-hu.github.io/}{@Haixing-Hu}锛夌殑\href{https://github.com/Haixing-Hu/nju-thesis}{NJU-Thesis}锛�2013 - 2018锛� % \item 寮犳鐝╋紙\href{https://github.com/zhangchuheng123}{@zhangchuheng123}锛夊熀浜庤儭娴锋槦妯℃澘鐨刓href{https://github.com/zhangchuheng123/NJUThesis}{NJUThesis}锛�2016锛� % \item 钂嬬値宀╋紙\href{http://ics.nju.edu.cn/~jyy/}{@jiangyy}锛夌殑\href{https://github.com/jiangyy/njuthesis}{鍗椾含澶у灞卞\hologo{LyX}鐮旂┒鐢熸瘯涓氳鏂囨ā鏉縸锛�2017锛� -% \item \href{https://anyirao.com/}{@AnyiRao}鍩轰簬鑳℃捣鏄熸ā鏉跨殑\href{https://github.com/jiangyy/njuthesis}{NJU-Thesis}锛�2018锛� +% \item 楗跺畨閫革紙\href{https://anyirao.com/}{@AnyiRao}锛夊熀浜庤儭娴锋槦妯℃澘鐨刓href{https://github.com/jiangyy/njuthesis}{NJU-Thesis}锛�2018锛� % \item \href{https://github.com/njuHan}{@njuHan}鍩轰簬鑳℃捣鏄熸ā鏉跨殑\href{https://github.com/njuHan/njuthesis-nju-thesis-template/}{NJU-Thesis}锛�2018 - 2021锛� % \item 璧垫嚳鏅紙\href{https://fengchendian.github.io/about.html}{@FengChendian}锛夊熀浜嶢nyiRao妯℃澘鐨刓href{https://github.com/FengChendian/NJUThesis2021}{NJU Thesis 2021}锛�2021锛� % \end{enumerate} @@ -288,13 +290,16 @@ through XeTeX. % \end{itemize} % % \subsection{鍚沑hologo{LaTeX}鏈綋涓婃墜} -% \hologo{LaTeX}骞朵笉鏄竴绉嶉浂闂ㄦ鐨勮瑷€锛屼害涓嶆槸鍗椾含澶у瀛︾敓鐨勫繀澶囨妧鑳姐€傛湁鍚屽鍚埌鈥淺emph{缁欐瘯涓氳鏂囦氦宸篃寰楀啓浠g爜}鈥濊繖绉嶄簨鎯呭氨澶寸柤锛屽疄鍦ㄦ槸鎴戜滑涓嶆効鎰忚鍒拌€屽繀椤昏闈㈠鐨勬儏鍐点€傜洰鍓嶏紝涓枃浜掕仈缃戜笂鐨刓hologo{LaTeX}鍐欎綔鏁欑▼涓嶈兘璇村眻鎸囧彲鏁帮紝璧风爜涔熸槸姹楃墰鍏呮爧锛屾瘮杈冭憲鍚嶇殑鍖呮嫭鍒樻捣娲嬬殑銆奬hologo{LaTeX}鍏ラ棬銆嬬瓑绛夐兘鏄笉閿欑殑鍙傝€冭祫鏂欍€傜劧鑰屽浣曞揩閫熷噯纭壘鍒版墍闇€瑕佺殑鐢ㄦ硶锛屽挨鍏舵槸\hologo{LaTeX3}鐨勬柊鎺ュ彛锛岄渶瑕佷竴瀹氱殑鏃堕棿鎴栬€呰壇濂界殑鑻辨枃闃呰鑳藉姏銆傚湪鏈枃妗g殑鍐欎綔涓紝鎴戜滑鏃犲姏浠庣洏鍙ゅ紑澶╄緹鍦板紑濮嬩粠澶存瀯寤烘偍鐨勭浉鍏崇煡璇嗕綋绯伙紝鍙兘灏藉姏鍋氬埌鏈夋眰蹇呭簲锛屽湪闇€瑕佺殑鍦版柟椤哄甫鎻愪竴鍢达紝淇濊瘉鎮ㄥ皯璧扮偣寮矾銆� +% \hologo{LaTeX}骞朵笉鏄竴绉嶉浂闂ㄦ鐨勮瑷€锛屼害涓嶆槸鍗椾含澶у瀛︾敓鐨勫繀澶囨妧鑳姐€傛湁鍚屽鍚埌鈥淺emph{缁欐瘯涓氳鏂囦氦宸篃寰楀啓浠g爜}鈥濊繖绉嶄簨鎯呭氨澶寸柤锛屽疄鍦ㄦ槸鎴戜滑涓嶆効鎰忚鍒拌€屽繀椤昏闈㈠鐨勬儏鍐点€傜洰鍓嶏紝涓枃浜掕仈缃戜笂鐨刓hologo{LaTeX}鍐欎綔鏁欑▼涓嶈兘璇村眻鎸囧彲鏁帮紝璧风爜涔熸槸姹楃墰鍏呮爧锛屾瘮杈冭憲鍚嶇殑鍖呮嫭鍒樻捣娲嬬殑銆奬hologo{LaTeX}鍏ラ棬銆嬬瓑绛夐兘鏄笉閿欑殑鍙傝€冭祫鏂欍€傜劧鑰屽浣曞揩閫熷噯纭壘鍒版墍闇€瑕佺殑鐢ㄦ硶锛屽挨鍏舵槸\hologo{LaTeX3}鐨勬柊鎺ュ彛锛岄渶瑕佷竴瀹氱殑鏃堕棿鎴栬€呰壇濂界殑鑻辨枃闃呰鑳藉姏銆傚湪鏈枃妗g殑鍐欎綔涓紝鎴戜滑鏃犲姏浠庣洏鍙ゅ紑澶╄緹鍦板紑濮嬩粠澶存瀯寤烘偍鐨勭浉鍏崇煡璇嗕綋绯伙紝鍙兘\textbf{灏藉姏鍋氬埌鏈夋眰蹇呭簲}锛屽湪闇€瑕佺殑鍦版柟椤哄甫鎻愪竴鍢达紝淇濊瘉鎮ㄥ皯璧扮偣寮矾銆� % % \subsection{鍏充簬鏈鏄庢墜鍐寎 % -% 鏈墜鍐屽寘鍚玭juthesi妯℃澘鐨勬墍鏈夊熀鏈俊鎭紝涓昏鍖呮嫭妯℃澘璇存槑鍜屼唬鐮佸疄鐜颁袱閮ㄥ垎銆傚悗鑰呴厤鍚堥檮褰曪紝涓烘湁鎰忓弬涓庢ā鏉垮紑鍙戠殑鍚屽鎻愪緵鎸囧銆� +% 鏈ā鏉块€氳繃\textsc{DocStrip}杩涜缁存姢锛屽疄闄呬笂鏄竴绉峔emph{鏂囧缂栫▼}銆傛枃瀛︾紪绋嬬殑鏈綋鏄偅浜涚敤鏉ヨ鏄庣殑鏂囧瓧锛屾寜鍐欎功鍐欐枃绔犵殑鏂瑰紡缁勭粐銆� +% \file{njuthesis.dtx}鍖呭惈njuthesis妯℃澘鐨勬墍鏈変俊鎭€傚墠鍗婇儴鍒嗕负妯℃澘璇存槑锛屽嵆鍚勭甯哥敤鍛戒护涓庡繀瑕佺殑浣跨敤鏂规硶锛涘悗鍗婇儴鍒嗕负浠g爜瀹炵幇锛屼负甯︽湁璇︾粏娉ㄩ噴鐨刓hologo{TeX}婧愪唬鐮併€傚悗鑰呴厤鍚堥檮褰曪紝涓烘湁鎰忎簡瑙f湰妯℃澘缁嗚妭鐨勫悓瀛︽彁渚涚畝鏄庣殑鎸囧紩銆� % -% 濡傛灉鎮ㄥ湪浣跨敤鏈€鏂扮増妯℃澘鏃跺彂鐜颁簡浠讳綍闂锛岃鑱旂郴LUG鎴栬€呭湪GitHub鎻愪氦issue銆� +% 涓嬫枃涓皢鍑虹幇鑻ュ共鐗规畩鏍煎紡锛屽寘鎷琝file{file-example.xxx}绛夈€� +% +% 濡傛灉鎮ㄥ湪浣跨敤鏈€鏂扮増妯℃澘鏃跺彂鐜颁簡浠讳綍闂锛屾姂鎴栨湁鎰忓悜鍙備笌鏈ā鏉跨殑缁存姢锛岃閫氳繃GitHub issue鎴栬€匭Q缇よ亰鑱旂郴LUG銆� % % \section{瀹夎} % \label{sec:setup} @@ -407,7 +412,7 @@ through XeTeX. % % \subsection{鑷畾涔夐€夐」} % -% 灏栨嫭鍙峰唴鍒楀嚭浜嗚嫢骞蹭釜鍏佽鐨勯€夐」锛屽叾涓姞绮楃殑涓洪粯璁ら€夐」 +% 灏栨嫭鍙峰唴鍒楀嚭浜嗚嫢骞蹭釜鍏佽鐨勯€夐」锛屽叾涓姞绮楃殑涓洪粯璁ら€夐」銆� % % 灏侀潰鏍囬鐣欑┖鍗冲彲鑷姩鍖栨崲琛� % @@ -449,7 +454,7 @@ through XeTeX. % % 瀛︽牎璁烘枃鏍煎紡瑕佹眰浣跨敤鐨勫瓧浣撲竴鑸凡缁忛瑁呭湪鍚勪釜鎿嶄綔绯荤粺锛屾湰妯℃澘閽堝涓嶅悓骞冲彴杩涜浜嗚嚜鍔ㄦ娴嬮€傞厤锛屽彲浠ュ紑绠卞嵆鐢ㄣ€� % -% 濡傛灉甯屾湜鏇存敼鏈ā鏉夸娇鐢ㄧ殑瀛椾綋锛岃濉啓浠ヤ笅涓や釜閫夐」 +% 濡傛灉甯屾湜鏇存敼鏈ā鏉夸娇鐢ㄧ殑瀛椾綋锛岃濉啓浠ヤ笅涓や釜閫夐」瑕嗙洊妫€娴嬫搷浣滅郴缁熷緱鍒扮殑璁剧疆 % % % \begin{function}[added=2021-09-07]{customlatinfont} @@ -513,70 +518,73 @@ through XeTeX. % % \end{function} % +% 鏈鐢熷彲浠ュ弬鑰冨涓嬪垪琛ㄨ緭鍏ヤ釜浜轰俊鎭€傛敞鎰忎笉鑳芥湁绌鸿锛屾湁绌烘牸鐨勫唴瀹归渶瑕佸皢绌烘牸鏇挎崲涓烘尝娴嚎鎴栬€呬袱绔姞涓婂ぇ鎷彿 +% +% \begin{ctexexam} +% \njusetup { +% info = { +% TitleA = 涓€绉嶄娇鐢ㄥ崡浜ぇ瀛hologo{LaTeX}妯$増, +% TitleB = 缂栧啓姣曚笟璁烘枃鐨勭粡楠屾€ф柟娉�, +% Title* = {An Empirical Way of Composing Thesis with NJU \hologo{LaTeX} Template}, +% Grade = 2018, +% StudentID = 189114514, +% StudentName = 鍛ㄧ厹鍗�, +% StudentName* = Zhou~Yuhua, +% Department = 鎷夊お璧瀛︿笌鎶€鏈闄�, +% Department* = School~of~\hologo{LaTeX}, +% Major = 鎷夊お璧瑷€瀛�, +% Major* = \hologo{LaTeX}~Linguistics, +% SupervisorA = 鏉庢垚娈�, +% SupervisorA*= Li~Chengdian, +% SupervisorATitle = 鏁欐巿, +% SupervisorATitle* = Professor, +% SupervisorB = 瀛欒但寮�, +% SupervisorB* = Sun~Hemi, +% SupervisorBTitle = 鍓暀鎺�, +% SupervisorBTitle* = Associate professor, +% SubmitDate = 2021骞�8鏈�10鏃�, +% } +% } +% \end{ctexexam} +% +% 鐮旂┒鐢熷彲浠ュ弬鑰冨涓嬪垪琛ㄨ緭鍏ヤ釜浜轰俊鎭� % -% \subsubsection{璁烘枃鏍囬} -% \begin{description} -% \item[\texttt{TitleA}] 鍗曡鏍囬锛屾垨澶氳鏍囬鐨勭涓€琛屻€傚叧浜庢槸鍚﹀簲璇ユ姌琛岋紝鍗曡鑳藉绾崇殑鏈€闀挎爣棰樹负\emph{15涓腑鏂囧瓧绗锛岃鑷閫夋嫨鍚堥€傜殑鎴柇澶勩€� -% \item[\texttt{TitleB}] 澶氳鏍囬鐨勭浜岃 -% \item[\texttt{TitleC}] 澶氳鏍囬鐨勭涓夎 -% \item[\texttt{Title*}] 鑻辨枃鏍囬锛屾敞鎰忕┖鏍艰鐢ㄦ尝娴嚎锛圽textasciitilde锛夋浛浠� -% \end{description} -% -% \subsubsection{涓汉骞寸骇銆佸鍙枫€佸鍚峿 -% \begin{description} -% \item[\texttt{Grade}] 骞寸骇 -% \item[\texttt{StudentID}] 鏈鐢熶负9浣嶆暟瀛楀鍙凤紝鐮旂┒鐢熶负涓や綅鑻辨枃瀛楁瘝鏍囪瘑鍔�8浣嶆暟瀛楀鍙凤紝涓や綅瀛楁瘝鑷姩澶у啓 -% \item[\texttt{StudentName}] 濮撳悕 -% \item[\texttt{StudentName*}] 濮撳悕鎷奸煶 -% \end{description} -% -% \subsubsection{灏辫闄㈢郴涓撲笟} -% -% 鏈鐢熸棤闇€濉啓鐮旂┒鏂瑰悜銆� -% \begin{description} -% \item[\texttt{Department}] 瀛﹂櫌鍚嶇О -% \item[\texttt{Department*}] 瀛﹂櫌鑻辨枃鍚嶇О -% \item[\texttt{Major}] 涓撲笟鍚嶇О -% \item[\texttt{Major*}] 涓撲笟鑻辨枃鍚嶇О -% \item[\texttt{Field}] 鐮旂┒鏂瑰悜 -% \item[\texttt{Field*}] 鐮旂┒鏂瑰悜鑻辨枃鍚嶇О -% \end{description} -% -% \subsubsection{瀵煎笀淇℃伅} -% 娉ㄦ剰鏍囨敞A鐨勪负绗竴瀵煎笀 -% \begin{description} -% \item[\texttt{Supervisor<A/B>}] 瀵煎笀濮撳悕 -% \item[\texttt{Supervisor<A/B>*}] 瀵煎笀濮撳悕鐨勮嫳鏂囨嫾闊� -% \item[\texttt{Supervisor<A/B>Title}] 瀵煎笀鑱岀О -% \item[\texttt{Supervisor<A/B>Title*}] 瀵煎笀鑱岀О鑻辨枃 -% \end{description} -% -% \subsubsection{鎻愪氦鏃ユ湡} -% \begin{description} -% \item[\texttt{SubmitDate}] 璁烘枃鎻愪氦鏃ユ湡 -% \end{description} -% -% \subsubsection{绛旇京淇℃伅} -% -% 闄ょ瓟杈╂棩鏈熶互澶栵紝鏈儴鍒嗗唴瀹逛粎鐢ㄤ簬鍥藉鍥句功棣嗗皝闈€€傛湰绉戠敓蹇界暐鍗冲彲銆� -% 绛旇京濮斿憳浼氬鍚嶄笌鑱岀О涔嬮棿闇€浣跨敤娉㈡氮绾胯繛鎺ャ€� -% -% \begin{description} -% \item[\texttt{DefendDate}] 绛旇京鏃ユ湡 -% \item[\texttt{ReviewerChairman}] 绛旇京濮斿憳浼氫富甯殑濮撳悕鍙婅亴绉� -% \item[\texttt{Reviewer<A/B/C/D>}] 鍥涗綅璇勯槄浜虹殑濮撳悕鍙婅亴绉� -% \end{description} -% -% \subsubsection{鍥藉鍥句功棣嗗皝闈㈢浉鍏充俊鎭瘆 -% -% 鏈儴鍒嗗唴瀹逛粎鐢ㄤ簬鍥藉鍥句功棣嗗皝闈€€傛湰绉戠敓蹇界暐鍗冲彲銆� -% -% \begin{description} -% \item[\texttt{Classification}] 鍒嗙被鍙� -% \item[\texttt{SecurityLevel}] 闄愬埗 -% \item[\texttt{UDC}] UDC -% \item[\texttt{SupervisorContact}] 鎸囧鏁欏笀鑱屽姟銆佽亴绉般€佸浣嶃€佸崟浣嶅悕绉板強鍦板潃 -% \end{description} +% \begin{ctexexam} +% \njusetup { +% info = { +% TitleA = 涓€绉嶄娇鐢ㄥ崡浜ぇ瀛hologo{LaTeX}妯$増, +% TitleB = 缂栧啓姣曚笟璁烘枃鐨勭粡楠屾€ф柟娉�, +% TitleC = 锛堝唴瀹瑰凡缁忚繃鏃讹紝璇﹁璇存槑鎵嬪唽锛�, +% Title* = {An Empirical Way of Composing Thesis with NJU \hologo{LaTeX} Template}, +% Grade = 2018, +% StudentID = dz18114514, +% StudentName = 鍛ㄧ厹鍗�, +% StudentName* = Zhou~Yuhua, +% Department = 鎷夊お璧瀛︿笌鎶€鏈闄�, +% Department* = School~of~\hologo{LaTeX}, +% Major = 鎷夊お璧瑷€瀛�, +% Major* = \hologo{LaTeX}~Linguistics, +% Field = 鎷夊お璧瑷€鍦ㄧ幇褰撲唬鐨勪娇鐢�, +% Field* = Contemporary~Usage~of~the~\hologo{LaTeX}~Language, +% SupervisorA = 鏉庢垚娈�, +% SupervisorA*= Li~Chengdian, +% SupervisorATitle = 鏁欐巿, +% SupervisorATitle* = Professor, +% SubmitDate = 2021骞�8鏈�10鏃�, +% SubmitDate* = {Aug 10, 2021}, +% DefendDate = 2021骞�9鏈�19鏃�, +% ReviewerChairman = 寮犳檽灞眫鏁欐巿, +% ReviewerA = 鐜嬬憺甯寏鏁欐巿, +% ReviewerB = 閮痉绾瞺鍓暀鎺�, +% ReviewerC = 鍗庤妶搴搤鏁欐巿, +% ReviewerD = 鎴磋彶鑿瞺鏁欐巿, +% Classification = 0175.2, +% SecurityLevel = 闄愬埗, +% UDC = 004.72, +% SupervisorContact = {鎷夊お璧瀛︿笌鎶€鏈闄� 鏋濇睙甯傜粨涓樿矾 19 鍙� 114514}, +% } +% } +% \end{ctexexam} % % \subsection{鎽樿椤祡 % @@ -585,7 +593,7 @@ through XeTeX. % 鍦ㄤ娇鐢╘hologo{LuaLaTeX}缂栬瘧鏃讹紝鐮旂┒鐢熶腑鏂囨憳瑕侀〉鐨勬爣棰樹細鍑虹幇绌烘牸鏃犱笅鍒掔嚎鐨勯棶棰橈紝鐩墠姝e湪绉瀬瀵绘眰瑙e喅鏂规硶銆� % % {鍓嶈█椤祡 -% 浣跨敤preface鐜瀹氫箟 +% 浣跨敤\env{preface}鐜瀹氫箟 % % % \subsection{姝f枃鏍煎紡} @@ -600,7 +608,7 @@ through XeTeX. % 闇€瑕佷娇鐢╞iber鎵嬪姩缂栬瘧鎵嶄細鏄剧ず锛屽叿浣撳唴瀹瑰弬鑰� % % {鑷磋阿椤祡 -% 鍚屽墠瑷€锛屼娇鐢╝cknowledgement鐜 +% 鍚屽墠瑷€锛屼娇鐢╘env{acknowledgement}鐜 % % {闄勫綍椤祡 % @@ -611,7 +619,8 @@ through XeTeX. % \begin{implementation} % % \section{浠g爜瀹炵幇} -% @@鍦╨3docstrip涓〃绀哄悕绌洪棿锛屽湪鐢熸垚cls鏃朵細琚浉搴斿瓧娈垫浛鎹紝璀鍦╪juthesis涓瑻@=nju +% @@鍦╨3docstrip涓〃绀哄悕绌洪棿锛屽湪鐢熸垚cls鏃朵細琚浉搴斿瓧娈垫浛鎹紝璀鍦╪juthesis涓瑻@=nju銆� +% 灏栨嫭鍙峰寘瑁圭殑|<*class>||</class>|鐢ㄦ潵鎸囧畾鏌愭浠g爜灞炰簬鍝釜鏂囦欢銆� % % \begin{macrocode} %<@@=nju> @@ -632,7 +641,7 @@ through XeTeX. ]{ctexbook}[2018/04/01] % \end{macrocode} % -% 鏄惁闇€瑕佸浗瀹跺浘涔﹂灏侀潰鐨勮缃� +% 瀹忓寘\pkg{l3keys2e}鐢ㄤ簬閰嶇疆妯℃澘閫夐」銆� % \begin{macrocode} \RequirePackage{l3keys2e} % \end{macrocode} @@ -646,7 +655,7 @@ through XeTeX. % \begin{macrocode} \keys_define:nn { nju } { - nlcover .bool_set:N = \nju_nl_cover, + nlcover .bool_set:N = \g_@@_nlcover_bool, nlcover .initial:n = false, } % \end{macrocode} @@ -665,7 +674,7 @@ through XeTeX. % \end{macrocode} % % \subsection{涓汉淇℃伅} -% 杈撳叆 +% 杈撳叆涓汉淇℃伅鐨勫尯鍩熴€� % \begin{macrocode} \keys_define:nn { nju } { @@ -770,7 +779,7 @@ through XeTeX. { \keys_set:nn { nju } { #1 } } % \end{macrocode} % -% 璁剧疆椤佃竟璺� +% 浣跨敤\pkg{geometry}璁剧疆椤佃竟璺濄€� % \begin{macrocode} \RequirePackage[ top=2.5cm, @@ -780,7 +789,7 @@ through XeTeX. ]{geometry} % \end{macrocode} % -% mandatory and optional arguments are, and so forth. +% % \begin{macrocode} \RequirePackage{xparse} \RequirePackage{titletoc} % 淇敼鐩綍鍐呮爣棰樻牸寮� @@ -792,7 +801,7 @@ through XeTeX. \RequirePackage{emptypage} % 娓呴櫎绌虹櫧椤电殑椤电爜 % \end{macrocode} % -% Put text here. +% % \begin{macrocode} \RequirePackage{listings} % 浠g爜鐜 \RequirePackage{enumitem} % 鐢ㄤ簬淇敼鍒楄〃鐜 @@ -809,12 +818,12 @@ through XeTeX. \RequirePackage[version=4]{mhchem} % 鐢ㄤ簬缁樺埗鍒嗗瓙寮� % \end{macrocode} % -% 鐢ㄤ簬鐢熸垚鍙互琚彃鍏ヤ功绛剧殑LaTeX logo锛孴ODO 浣跨敤hologo鍒涘缓|latex{}|鍛戒护 +% 鐢ㄤ簬鐢熸垚鍙互琚彃鍏ヤ功绛剧殑LaTeX logo锛孴ODO: 浣跨敤hologo鍒涘缓|latex{}|鍛戒护 % \begin{macrocode} \RequirePackage{hologo} % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % Required to prevent page break right after a sectioning command % \RequirePackage{needspace} @@ -822,7 +831,7 @@ through XeTeX. % \RequirePackage{xspace} % Better print trailing whitespace % \end{macrocode} % -% Put text here. +% 閽堝缂栬瘧寮曟搸锛屼娇鐢ㄤ笉鍚岀殑瀹忓寘閲嶆瀯涓嬪垝绾垮懡浠� % \begin{macrocode} \sys_if_engine_xetex:T { @@ -871,7 +880,7 @@ through XeTeX. ]{unicode-math} % Math fonts in xetex or luatex % \end{macrocode} % -% Put text here. +% % \begin{macrocode} \RequirePackage{graphicx} \DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png} @@ -925,10 +934,10 @@ through XeTeX. % % 濡傛灉鏈繘琛岃缃垯浣跨敤绯荤粺榛樿瀛椾綋瑕嗙洊杈撳叆鍙傛暟 % -% \begin{variable}{\g_@@_load_system_fontset_tl} +% \begin{variable}{\g_@@_load_system_fontset_bool} % 鐢ㄤ簬鍒ゆ柇鏄惁闇€瑕佽浇鍏ョ郴缁熼瑁呭瓧浣撶殑鍏ㄥ眬鍙橀噺 % \begin{macrocode} -\bool_new:N \g_@@_load_system_fontset_tl +\bool_new:N \g_@@_load_system_fontset_bool % \end{macrocode} % \end{variable} % @@ -936,12 +945,12 @@ through XeTeX. % 鍒欎娇鐢ㄧ郴缁熼瑁呭瓧浣撹鐩栧瓧浣撻€夐」 % \begin{macrocode} \tl_if_empty:NTF \g_@@_latin_fontset_tl - { \bool_gset_true:N \g_@@_load_system_fontset_tl } + { \bool_gset_true:N \g_@@_load_system_fontset_bool } { \tl_if_empty:NT \g_@@_cjk_fontset_tl - { \bool_gset_true:N \g_@@_load_system_fontset_tl } + { \bool_gset_true:N \g_@@_load_system_fontset_bool } } -\bool_if:NT \g_@@_load_system_fontset_tl +\bool_if:NT \g_@@_load_system_fontset_bool { % 妫€娴嬫槸鍚︽槸 Windows \sys_if_platform_windows:TF @@ -1045,6 +1054,7 @@ through XeTeX. % % \begin{macro}{\@@_load_cjk_font_macos:} % macOS 瀛椾綋 +% 鍙傝€僀TeX鎵嬪唽绗�9鑺� LuaLATEX 涓嬬殑涓枃鏀寔鏂瑰紡瑙e喅issue闂 % \begin{macrocode} \cs_new_protected:Npn \@@_load_cjk_font_macos: { @@ -1062,11 +1072,10 @@ through XeTeX. \setCJKfamilyfont{zhkai}{Kaiti~SC} [ BoldFont=Kaiti~SC~Bold, - % 鍙傝€僀TeX鎵嬪唽绗�9鑺� LuaLATEX 涓嬬殑涓枃鏀寔鏂瑰紡 % AlternateFont = % { - % {鉄╟haracter range1鉄﹠ {鉄╝lternate font name1鉄﹠ - % {鉄╝lternate font features2鉄﹠ , + % {character range1} {alternate font name1} + % {alternate font features2} , % ...... % } ] @@ -1208,7 +1217,7 @@ through XeTeX. % % \subsubsection{椤电湁椤佃剼} % -% Put text here. +% % \begin{macrocode} \RequirePackage{fancyhdr} % 璋冩暣椤电湁椤佃剼 % 鏈鐢熼〉鐪夐〉鑴� @@ -1218,7 +1227,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % TODO: 鐮旂┒鐢熼〉鐪夐〉鑴� \fancypagestyle{njuheadings}{% @@ -1227,7 +1236,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} \str_if_eq:NNTF {\l_@@_info_degree_tl} { ug } { @@ -1249,7 +1258,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % ctex鏍煎紡璁剧疆 % 鐩綍鏍囬 涓夊彿瀹嬩綋鍔犵矖 @@ -1291,7 +1300,7 @@ through XeTeX. {~\titlerule*[0.6pc]{$.$}~\contentspage} % \end{macrocode} % -% Put text here. +% % \begin{macrocode} \cs_set:Npn \CTEX@addtocline #1#2 { @@ -1300,7 +1309,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 鐩綍椤甸潰鏍煎紡淇敼 \cs_new:Npn \nju_tocpagestyle:nnn #1 #2 #3 @@ -1319,7 +1328,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} \tl_set:Nn \tableofcontents { @@ -1336,7 +1345,7 @@ through XeTeX. % \end{macrocode} % % \begin{environment}{preface} -% Put text here. +% % \begin{macrocode} % 瀹氬埗鍓嶈█銆佽嚧璋㈢幆澧� \NewDocumentEnvironment{preface}{} @@ -1358,7 +1367,7 @@ through XeTeX. % \end{macrocode} % \end{environment} % -% Put text here. +% % \begin{macrocode} % biblatex璁剧疆 \RequirePackage[ @@ -1388,7 +1397,7 @@ through XeTeX. ]{biblatex} % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % Remove some unwanted entries from the bibliography \AtEveryBibitem{ @@ -1404,7 +1413,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 淇敼鏍囩鍚嶇О \crefdefaultlabelformat{#2#1#3\,} % 榛樿鍦ㄥ悕绉板悗闈㈡坊鍔犵┖鏍� @@ -1456,7 +1465,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 浠g爜鏍峰紡 \lstset{ @@ -1477,7 +1486,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} \lstdefinestyle{LaTeX}{ language=TeX, @@ -1487,7 +1496,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 鍥捐〃鏍囬鏍峰紡 \DeclareCaptionFont{songticap}{\zihao{5}\bf\songti} @@ -1504,7 +1513,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % list configuration \renewcommand{\labelitemi}{\tiny$\blacktriangleright$} @@ -1515,7 +1524,7 @@ through XeTeX. \setlist[description]{noitemsep} % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 鏁板鐜 \declaretheoremstyle[ @@ -1533,13 +1542,13 @@ through XeTeX. \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=绠楁硶, @@ -1703,7 +1712,7 @@ through XeTeX. \tl_const:Nn \c_@@_cover_box_len_tl { 4.2em } % 鏈寮哄埗涓嶆墦鍗板浗瀹跺浘涔﹂灏侀潰 - \bool_set_false:N \nju_nl_cover + \bool_set_false:N \g_@@_nlcover_bool } { % 鏈浠ュ閮芥槸鐮旂┒鐢� @@ -1754,7 +1763,7 @@ through XeTeX. % \end{macrocode} % \end{macro} % -% Put text here. +% % \begin{macrocode} % 灏侀潰琛ㄦ牸杈规 \cs_new:Npn \@@_cover_box:n #1 @@ -1764,7 +1773,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 鍒ゆ柇绫诲瀷 \str_if_eq:NNTF { \l_@@_info_type_tl } { thesis } @@ -1867,9 +1876,9 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % -% Put text here. +% % \begin{macrocode} % 缁樺埗灏侀潰鍛戒护 \tl_new:N \nju_printcover_nl % 鍥藉鍥句功棣嗗皝闈� @@ -1877,10 +1886,10 @@ through XeTeX. \tl_new:N \nju_printcover_g % 鐮旂┒鐢熷皝闈� % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 鎸夐渶缁樺埗鍥藉鍥句功棣嗗皝闈紝淇敼鑷棫妯℃澘 -\bool_if:NT \nju_nl_cover +\bool_if:NT \g_@@_nlcover_bool { \tl_set:Nn \nju_printcover_nl { @@ -1956,7 +1965,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 鏈灏侀潰 \tl_set:Nn \nju_printcover_ug @@ -1991,7 +2000,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 鐮旂┒鐢熷皝闈� \tl_set:Nn \nju_printcover_g @@ -2083,7 +2092,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} % 閲嶅畾涔塵aketitle鐢熸垚灏侀潰 \tl_set:Nn \maketitle @@ -2176,7 +2185,7 @@ through XeTeX. } % \end{macrocode} % -% Put text here. +% % \begin{macrocode} { % 鐮旂┒鐢熸憳瑕佺幆澧�