diff --git a/njuthesis.dtx b/njuthesis.dtx index 15e4992321882d248915b1fd2cc68c9e956f9ff9..bdd272a9f73a2e6f5ef5ed2fff40a1b04d25096e 100644 --- a/njuthesis.dtx +++ b/njuthesis.dtx @@ -247,10 +247,10 @@ through XeTeX. % The \textsc{NJuThesis} class is intended for typesetting Nanjing University thesis with \hologo{LaTeX}, providing support for bachelor, master, and doctoral thesis. % \end{abstract} % +% \vspace{1cm} % \def\abstractname{鐗瑰埆澹版槑} % \begin{abstract} % 璇锋敞鎰忥紝鏈ā鏉夸粛鏈畬鎴愬紑鍙戯紝鍑虹幇bug鎴栬€呮枃妗d笉瀹屽杽灞炰簬姝e父鎯呭喌锛屾彁issue鎴朠ull Request鍗冲彲銆� -% % \href{https://git.nju.edu.cn/nju-lug/lug-introduction}{NJU LUG}濮嬬粓娆㈣繋鎮ㄧ殑鍔犲叆涓庤础鐚紒 % \end{abstract} % @@ -308,15 +308,21 @@ through XeTeX. % % \section{瀹夎} % \label{sec:setup} -% % 鏈妭涓昏浠嬬粛鏈畯鍖呯殑鑾峰彇銆佸畨瑁呬互鍙婄紪璇戞柟寮� +% % \subsection{涓嬭浇妯℃澘} % -% 鏈畯鍖呭凡缁忓彂甯冨湪CTAN锛屽皢鍦ㄦ槑骞磋繘鍏hologo{TeX}\,Live 2022 鍙戣鐗堛€傜劧鑰孋TAN鐗堟洿鏂颁笉鍙婃椂锛屾洿鎺ㄨ崘浣跨敤浠ヤ笅鏂瑰紡涓嬭浇銆� +% 鏈畯鍖呭凡缁廫href{https://ctan.org/pkg/njuthesis}{鍙戝竷鍦–TAN}锛屽皢鍦ㄦ槑骞磋繘鍏hologo{TeX}\,Live 2022 鍜孿hologo{MiKTeX}鍙戣鐗堛€傜劧鑰孋TAN鐗堟洿鏂颁笉鍙婃椂锛屾洿鎺ㄨ崘浣跨敤浠ヤ笅鏂瑰紡涓嬭浇銆� +% +% +% \subsubsection{鍙戝竷鐗坿 +% +% 浠庢湰妯℃澘鐨刓href{https://github.com/nju-lug/NJUThesis/releases/latest}{Github Releases椤甸潰}涓嬭浇鏈€鏂扮殑鍙戝竷鐗堛€� +% 濡傛灉Github璁块棶閫熷害杈冩參锛屼篃鍙互浣跨敤\href{https://mirror.nju.edu.cn/github-release/nju-lug/NJUThesis/LatestRelease/}{鍗楀ぇ闀滃儚} % -% 浠庢湰妯℃澘鐨凣ithub Releases椤甸潰涓嬭浇鏈€鏂扮殑鍙戝竷鐗� +% \subsubsection{婧愪唬鐮亇 % -% 浠庢湰妯℃澘鐨凣ithub浠撳簱鎴栬€匩JU Git鍚屾闀滃儚涓嬭浇鏈€鏂扮殑dtx鏂囦欢鑷瀹夎 +% 浠庢湰妯℃澘鐨刓href{https://github.com/nju-lug/NJUThesis/}{ Github 浠撳簱}鎴栬€匼href{https://git.nju.edu.cn/nju-lug/nju-latex-templates/njuthesis}{NJU Git 鍚屾闀滃儚}涓嬭浇鏈€鏂扮殑dtx鏂囦欢鑷瀹夎 % % \subsection{鏈湴缂栬瘧} % @@ -398,7 +404,7 @@ through XeTeX. % \subsubsection{鎿嶄綔姝ラ} % % \begin{enumerate} -% \item 涓嬭浇\href{https://github.com/nju-lug/NJUThesisUndergraduate/archive/refs/heads/master.zip}{妯℃澘鍏ㄩ儴鏂囦欢} +% \item 涓嬭浇妯℃澘鍏ㄩ儴鏂囦欢 % \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} @@ -1019,12 +1025,12 @@ through XeTeX. % 鍔犱腑鏂囦笅鍒掔嚎锛屼笉鑳界敤浜巐ualatex \RequirePackage{xeCJKfntef} - \cs_new:Npn \nju_underline:n #1 {\CJKunderline{#1}} + \cs_new:Npn \@@_uline:n #1 {\CJKunderline{#1}} } \sys_if_engine_luatex:T{ % 鍔犱腑鏂囦笅鍒掔嚎 \RequirePackage{lua-ul} - \cs_new:Npn \nju_underline:n #1 {\underLine{#1}} + \cs_new:Npn \@@_uline:n #1 {\underLine{#1}} % emoji鏀寔 % \RequirePackage{emoji} @@ -1480,18 +1486,11 @@ through XeTeX. % \end{macrocode} % % -% \begin{macrocode} -\cs_set:Npn \CTEX@addtocline #1#2 -{ - \addcontentsline { toc } {#1} - { \use:c { CTEX@#1@tocline } {#1} {#2} } -} -% \end{macrocode} -% +% \begin{macro}{\@@_toc_pagestyle:nnn} +% 鐩綍椤甸潰鏍煎紡淇敼 % % \begin{macrocode} -% 鐩綍椤甸潰鏍煎紡淇敼 -\cs_new:Npn \nju_tocpagestyle:nnn #1 #2 #3 +\cs_new_protected:Npn \@@_toc_pagestyle:nnn #1 #2 #3 { \newpage \hspace{0pt} @@ -1506,20 +1505,20 @@ through XeTeX. \cleardoublepage } % \end{macrocode} -% +% \end{macro} % % \begin{macrocode} \tl_set:Nn \tableofcontents { - \nju_tocpagestyle:nnn {鐩甛hspace{2em}褰晑{\contentsname}{toc} + \@@_toc_pagestyle:nnn {鐩甛hspace{2em}褰晑{\contentsname}{toc} } \tl_set:Nn \listoffigures { - \nju_tocpagestyle:nnn {\listfigurename}{\listfigurename}{lof} + \@@_toc_pagestyle:nnn {\listfigurename}{\listfigurename}{lof} } \tl_set:Nn \listoftables { - \nju_tocpagestyle:nnn {\listtablename}{\listtablename}{lot} + \@@_toc_pagestyle:nnn {\listtablename}{\listtablename}{lot} } % \end{macrocode} % @@ -2389,7 +2388,7 @@ through XeTeX. \tl_set:Nn \tabcolsep {0pt} \tl_set:Nn \arraystretch {0.8} \noindent - 姣曚笟璁烘枃棰樼洰锛歕hspace{0.5em}\nju_underline:n {\l_@@_info_title_tl\hfill}\\ + 姣曚笟璁烘枃棰樼洰锛歕hspace{0.5em}\@@_uline:n {\l_@@_info_title_tl\hfill}\\ \uline{\makebox[9em]{\l_@@_major_tl}}涓撲笟 \uline{\makebox[4em]{\l_@@_info_grade_tl}}绾� \str_if_eq:NNTF {\l_@@_info_degree_tl} { phd } {鍗殅{纭晑