diff --git a/docs/njuthesis-sample.tex b/docs/njuthesis-sample.tex index 1e6fc3cbe28ef869e7885016bf296799ccbb59d3..e1b7ecb4407cd0b43078ff28a1b46de7215ba09f 100644 --- a/docs/njuthesis-sample.tex +++ b/docs/njuthesis-sample.tex @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % NJU Thesis % 鍗椾含澶у姣曚笟璁烘枃LaTeX妯℃澘 -% Version 0.14.x (2021-12-21) +% Version 0.14.x (2022-01-14) % % 璇峰叧娉ㄩ」鐩湴鍧€浠ヨ幏鍙栨渶鏂板彉鍖� % https://github.com/nju-lug/NJUThesis @@ -89,8 +89,8 @@ % student-id = {189114514}, % 瀛﹀彿 - % 鐮旂┒鐢熻浣跨敤澶у啓瀛楁瘝濉啓瀛﹀彿 - % 鏈ā鏉垮苟涓嶈兘鑷姩鏇存澶у皬鍐� + % 鐮旂┒鐢熻鏂熼厡澶у皬鍐欏瓧姣嶆牸寮� + % 鏈ā鏉垮苟涓嶄細鑷姩鏇存澶у皬鍐� % department = {鍖栧鍖栧伐瀛﹂櫌}, department* = {School of Chemistry and Chemical Engineering}, @@ -112,19 +112,17 @@ % 鏂扮増瀵归€夐」杩涜浜嗘敼鍔� % 濡傛灉纭疄娌℃湁绗簩瀵煎笀锛屼笉濉啓鍗冲彲 % - submit-date = {2021骞�8鏈�10鏃, + submit-date = {2021/08/10}, % 鎻愪氦鏃ユ湡 - % + % 鏍煎紡涓� yyyy|mm|dd + % 涓嶅~灏辨槸缂栬瘧褰撳ぉ鏃ユ湡 % % 浠ヤ笅鍧囦负鐮旂┒鐢熼」 field = {鐗╃悊鍖栧}, field* = {Physical Chemistry}, % 鐮旂┒棰嗗煙 % - submit-date* = {Aug 10, 2021}, - % 鎻愪氦鏃ユ湡锛堣嫳鏂囷級 - % - defend-date = {2021骞�9鏈�19鏃, + defend-date = {2021/09/19}, % 绛旇京鏃ユ湡 % chairman = {鏌愭煇鏌悀鏁欐巿}, diff --git a/source/njuthesis.dtx b/source/njuthesis.dtx index d7f24a90d7872341776fd073dbf25e91a654028f..545b2772bd87876eae4d4a04f81f7f570fdd0e55 100644 --- a/source/njuthesis.dtx +++ b/source/njuthesis.dtx @@ -3,7 +3,7 @@ % !TeX encoding = UTF-8 % % Copyright (C) 2021 - 2022 -% by Nanjing University Linux User Group +% by Nanjing University Linux User Group % <git+nju-lug-email-3104-issue-@yaoge123.cn> % % It may be distributed and/or modified under the conditions of the @@ -105,8 +105,8 @@ To produce the documentation run the original source files ending with % %<class>\NeedsTeXFormat{LaTeX2e} %<class>\RequirePackage{expl3} -%<class>\GetIdInfo $Id: njuthesis.dtx 0.14.0 2022-01-06 20:00:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn> $ -%<class> { Thesis template for Nanjing University } +%<class>\GetIdInfo $Id: njuthesis.dtx 0.14.0 2022-01-14 00:00:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$ +%<class> { Thesis template for Nanjing University } %<class>\ProvidesExplClass{njuthesis} %<class>{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} % @@ -182,7 +182,7 @@ To produce the documentation run the original source files ending with % 鍗椾含澶у Linux 鐢ㄦ埛缁� % \thanks{E-mail: \href{mailto:git+nju-lug-email-3104-issue-@yaoge123.cn}{git+nju-lug-email-3104-issue-@yaoge123.cn}}} % -% \date{v0.14.0 \quad 2022-01-11} +% \date{v0.14.0 \quad 2022-01-14} % % \changes{v0.1}{2021/09/04}{寮€濮嬪紑鍙戙€倉 % \changes{v0.2}{2021/09/07}{鍒濇鎼缓浜嗗彲鐢ㄧ殑妯℃澘銆倉 @@ -204,7 +204,7 @@ To produce the documentation run the original source files ending with % \changes{v0.12}{2021/12/06}{淇敼浜嗚鏄庢枃妗g殑浠g爜鍛堢幇鏍峰紡銆倉 % \changes{v0.13}{2021/12/12}{浼樺寲浜嗙紪璇戦€熷害銆倉 % \changes{v0.13}{2021/12/15}{閫傞厤2022灞婃湰绉戠敓姣曚笟姣曚笟璁烘枃锛堣璁★級瑙勮寖銆倉 -% \changes{v0.14}{2021/01/13}{灏嗘湰妯℃澘鍐呭祵鍏ュ崡澶� \hologo{TeX} 缃戠珯銆倉 +% \changes{v0.14}{2022/01/13}{灏嗘湰妯℃澘鍐呭祵鍏ュ崡澶� \hologo{TeX} 缃戠珯銆倉 % % % \maketitle @@ -261,14 +261,16 @@ To produce the documentation run the original source files ending with % 鍦ㄦ湰鏂囨寮忎粙缁� \cls{njuthesis} 璁烘枃妯℃澘鍓嶏紝鎮ㄤ篃璁稿苟涓嶇啛鎮� \hologo{TeX} 鎺掔増绯荤粺銆傝瘽涓嶅璇达紝璇峰厛瀹屾暣浣撻獙涓€閬嶄笅杩扮殑宸ヤ綔娴佺▼锛� % % \bigskip -% \fcolorbox{njublue}{gray!5}{\parbox{\textwidth-5em}{% +% \fcolorbox{olgreen}{gray!5}{\parbox{\textwidth-5em}{% +% \hspace{2em}\begin{minipage}[c]{10cm} % \begin{enumerate} % \item 璁块棶 \url{https://tex.nju.edu.cn} % \item 鐐瑰嚮鍙充笂瑙拁\olbutton{娉ㄥ唽}~鎸夐挳锛岀敤鍗楀ぇ閭娉ㄥ唽璐﹀彿 % \item 鐧诲綍鎮ㄧ殑璐﹀彿 % \item 鐐瑰嚮宸︿笂瑙拁\olbutton{鍒涘缓鏂伴」鐩畗~鎸夐挳锛岄€夋嫨~\olbutton{璁烘枃妯℃澘} % \item 闅忔剰鍙栧悕锛岀偣鍑粇\olbutton{鍒涘缓}~鎸夐挳 -% \end{enumerate}}} +% \end{enumerate} +% \end{minipage}}} % % \bigskip % 绋嶇瓑鐗囧埢锛屾偍浼氬湪娴忚鍣ㄥ彸渚у彂鐜颁竴浠芥柊鐢熸垚鐨勭┖鐧借鏂囥€傚鏋滃畠鐨勬晥鏋滀护鎮ㄦ弧鎰忥紝涓嶅Θ浠ユ涓哄熀纭€寮€濮嬪啓浣溿€� @@ -369,7 +371,7 @@ To produce the documentation run the original source files ending with % 鏈ā鏉跨殑鍙戝竷鍜岋紙鎴栵級淇敼閬靛畧 LaTeX Project Public License锛堢増鏈� 1.3c 鎴栨洿楂橈級鐨勬潯娆俱€傝璁稿彲璇佺殑鏈€鏂扮増鏈綅浜� \url{http://www.latex-project.org/lppl.txt}锛�1.3c 鍙婃洿鏂扮殑鐗堟湰闅忛檮浜� 2003/12/01 鐗堟湰浠ュ悗鐨勬墍鏈� \hologo{LaTeX} 鍙戣鐗堛€� % % \subparagraph{鑱旂郴浣滆€厎 -% 濡傛灉鎮ㄥ湪浣跨敤鏈€鏂扮増妯℃澘鏃跺彂鐜颁簡浠讳綍闂锛屾姂鎴栨湁鎰忓悜鍙備笌鏈ā鏉跨殑缁存姢锛岃閫氳繃 GitHub Issue 鎴栬€� QQ 缇よ亰鑱旂郴 NJU LUG銆� +% 濡傛灉鎮ㄥ湪浣跨敤鏈€鏂扮増妯℃澘鏃跺彂鐜颁簡浠讳綍闂锛屾姂鎴栨湁鎰忓悜鍙備笌鏈ā鏉跨殑缁存姢锛岃閫氳繃 \href{https://github.com/nju-lug/NJUThesis/issues}{GitHub Issue} 鎴栬€� QQ 缇よ亰\footnote{缇ゅ彿鏄� 991559926銆倉鑱旂郴 NJU LUG銆� % % % \section{瀹夎} @@ -378,9 +380,9 @@ To produce the documentation run the original source files ending with % % \subsection{鑾峰彇妯℃澘} % -% \cls{njuthesis} 鐩墠澶勪簬绉瀬鐨勭淮鎶や腑锛屽叾鏂囦欢涓昏鍙€氳繃浠ヤ笅閫斿緞鑾峰彇锛� +% \cls{njuthesis} 鐩墠澶勪簬绉瀬鐨勭淮鎶や腑锛屼富瑕佸彲閫氳繃浠ヤ笅涓夌閫斿緞鑾峰彇妯℃澘鏂囦欢锛� % -% \subparagraph{CTAN} \href{https://ctan.org/}{CTAN}\footnote{The Comprehensive \hologo{TeX} Archive Network} 鏄墍鏈� \hologo{TeX} 鐩稿叧鏉愭枡鐨勪腑鏋€€俓href{https://ctan.org/pkg/njuthesis}{鏈ā鏉跨殑 CTAN 椤甸潰}\footnote{\cls{njuthesis} 宸茬粡浜�2021骞�9鏈�12鏃ュ彂甯冨湪 CTAN锛岀敤浜庣粯鍒跺崡澶у浘鏍囩殑 \href{https://ctan.org/pkg/njuvisual}{\pkg{njuvisual}} 涔熷凡浜庡悓骞�11鏈�28鏃ュ彂甯冿紝涓よ€呭皢杩涘叆\hologo{TeX}\,Live 2022銆倉涓婃彁渚涘熀鏈殑浠嬬粛淇℃伅锛屽彲浠ヤ笅杞借鏄庢枃妗o紙鏈枃妗o級鍜屽畯鍖呮簮浠g爜銆傚綋鐒讹紝浣跨敤杩欎竴鏉ユ簮鏃跺苟涓嶉渶瑕佹帴瑙﹀悗鑰咃紝璇峰弬鑰� \ref{subsubsec:standard-installation} 鐨勬爣鍑嗗畨瑁呮柟娉曘€� +% \subparagraph{CTAN} \href{https://ctan.org/}{CTAN}\footnote{The Comprehensive \hologo{TeX} Archive Network} 鏄墍鏈� \hologo{TeX} 鐩稿叧鏉愭枡鐨勪腑鏋€€俓href{https://ctan.org/pkg/njuthesis}{鏈ā鏉跨殑 CTAN 椤甸潰}\footnote{\cls{njuthesis} 宸茬粡浜�2021骞�9鏈�12鏃ュ彂甯冨湪 CTAN锛岀敤浜庣粯鍒跺崡澶у浘鏍囩殑 \href{https://ctan.org/pkg/njuvisual}{\pkg{njuvisual}} 涔熷凡浜庡悓骞�11鏈�28鏃ュ彂甯冿紝涓よ€呭凡琚� \hologo{TeX}\,Live 鍜� \hologo{MiKTeX} 鏀跺綍锛屽皢杩涘叆 \hologo{TeX}\,Live 2022 鍙戣鐗堛€倉涓婃彁渚涘熀鏈殑浠嬬粛淇℃伅锛屽彲浠ヤ笅杞借鏄庢枃妗o紙鏈枃妗o級鍜屽畯鍖呮簮浠g爜銆傚綋鐒讹紝浣跨敤杩欎竴鏉ユ簮鏃跺苟涓嶉渶瑕佹帴瑙﹀悗鑰咃紝璇峰弬鑰� \ref{subsubsec:standard-installation} 鐨勬爣鍑嗗畨瑁呮柟娉曘€� % % \subparagraph{GitHub 浠撳簱} 鏈€鏂板紑鍙戣繘搴︿細鎻愪氦鍦ㄦ湰椤圭洰鐨� \href{https://github.com/nju-lug/NJUThesis}{Github浠撳簱}銆備粨搴撳唴浠呭寘鍚簮浠g爜銆佺┖鐧芥ā鏉垮強娴嬭瘯鏂囦欢锛屼笉鍙洿鎺ョ敤浜庡啓浣溿€傝繖浜涙枃浠跺搴旂殑浣跨敤鏂规硶璇峰弬鑰� \ref{subsubsec:on-the-fly-installation}銆傚鏋滅敱浜庣綉缁滃師鍥犱笉渚胯闂富浠撳簱锛屼篃鍙互浠嶾href{https://git.nju.edu.cn/nju-lug/nju-latex-templates/njuthesis}{NJU Git 鍚屾闀滃儚} 鑾峰彇椤圭洰宸ョ▼鏂囦欢銆� % @@ -462,7 +464,7 @@ To produce the documentation run the original source files ending with % 閮藉彲浠ュ敖鎯呭垹闄ゃ€� % % {\color{red}|[!]|} 璇锋敞鎰忥紝濡傛灉浠呬粎鏄笇鏈涗娇鐢ㄨ繖涓ā鏉挎挵鍐欒鏂囷紝璇锋棤璁哄浣曢兘涓� -% 瑕佷粠鎵嬪姩缂栬瘧 \file{source/} 鏂囦欢澶逛笅鐨勬簮浠g爜寮€濮嬶紝杩欐牱鍋氬彧浼氭氮璐圭敓鍛戒腑瀹濊吹鐨勬暟 +% 瑕佷粠鎵嬪姩缂栬瘧 \file{source} 鏂囦欢澶逛笅鐨勬簮浠g爜寮€濮嬶紝杩欐牱鍋氬彧浼氭氮璐圭敓鍛戒腑瀹濊吹鐨勬暟 % 鍒嗛挓鏃堕棿銆傚鏋滈亣鍒颁簡闂锛岃鍓嶅線 GitHub 浠撳簱鎻愬嚭 issue銆傛垜浠彧鎺ㄨ崘甯屾湜鍙備笌寮€鍙� % 鐨勫悓瀛︽帴瑙� \file{.dtx} 鏂囦欢銆� % @@ -634,7 +636,7 @@ To produce the documentation run the original source files ending with % % 鍏稿瀷鐨� \cls{njuthesis} 涓绘枃浠剁粨鏋勫簲璇ュ涓嬫墍绀猴細 % -% \begin{latexexample}[moretexcs={\njusetup,\graphicspath,\addbibresource,\maketitle,\tableofcontents,\listoffigures,\listoftables,\mainmatter,\chapter,\printbibliography,\appendix},emph={[1]document}] +% \begin{latexexample}[moretexcs={\njusetup,\graphicspath,\tableofcontents,\maketitle,\mainmatter,\chapter,\printbibliography},emph={[1]document}] % \documentclass{njuthesis} % \njusetup{} % \begin{document} @@ -704,7 +706,7 @@ To produce the documentation run the original source files ending with % \begin{itemize} % \item 绂佺敤灏侀潰鐨勭粯鍒讹紙鍖呮嫭鎵胯鍜屽0鏄庯級 % \item 鏄剧ず椤甸潰鏂囧瓧鑼冨洿杈规浠ュ強椤电湁椤佃剼绾� -% \item 灏嗚秴鍑哄搴︾殑鍐呭鏄剧ず涓洪粦鑹叉柟鍧� +% \item 鍦ㄨ秴鍑哄搴︾殑鍐呭鍙充晶娣诲姞榛戣壊鏂瑰潡鏍囪 % \item 涓嶅啀娓叉煋鍥剧墖锛屼娇鐢ㄥ惈鏈夊浘鐗囪矾寰勭殑绌虹櫧鐩掑瓙鍗犱綅 % \item 涓嶅啀娓叉煋瓒呴摼鎺ュ強鐢熸垚 PDF 涔︾ % \end{itemize} @@ -827,7 +829,7 @@ To produce the documentation run the original source files ending with % title = \Arg{鏍囬} % title* = \Arg{鑻辨枃鏍囬} % \end{syntax} -% 棰樼洰銆傜敱浜庡皝闈笂鎻愪緵缁欎腑鏂囬鐩殑妯嚎闀垮害鏈夐檺\footnote{鍗曡鏈€闀夸负15涓眽瀛楋紝寤鸿鎬婚暱搴︿笉瓒呰繃45瀛梷锛屾湰妯℃澘榛樿浼氳嚜鍔ㄥ鏍囬杩涜鎹㈣銆傚鏋滈渶瑕佹墜鍔ㄥ埗瀹氭崲琛屼綅鐐癸紝璇蜂娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿 |,|锛屾渶澶氫袱澶勩€� +% 棰樼洰銆傜敱浜庡皝闈笂鎻愪緵缁欎腑鏂囬鐩殑妯嚎闀垮害鏈夐檺\footnote{鍗曡鏈€闀夸负15涓眽瀛楋紝寤鸿鎬婚暱搴︿笉瓒呰繃45瀛梷锛屾湰妯℃澘榛樿浼氳嚜鍔ㄥ鏍囬杩涜鎹㈣銆傚鏋滈渶瑕佹墜鍔ㄥ埗瀹氭崲琛屼綅鐐癸紝璇蜂娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿锛坾,|锛夛紝鏈€澶氫袱澶勩€傛爣棰樹腑闇€瑕佷繚鐣欑殑鑻辨枃鍗婅瑕佺敤鑺辨嫭鍙峰寘瑁广€� % \end{function} % % \begin{function}[updated=2021-10-01]{info/keywords,info/keywords*} @@ -835,7 +837,7 @@ To produce the documentation run the original source files ending with % keywords = \Arg{鍏抽敭璇峿 % keywords* = \Arg{鑻辨枃鍏抽敭璇峿 % \end{syntax} -% 鍏抽敭璇嶅垪琛ㄣ€傚叧閿瘝涔嬮棿闇€瑕佷娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿闅斿紑锛屽惈鏈夌┖鏍肩殑鍏抽敭瀛楅渶瑕佷娇鐢ㄨ姳鎷彿鍖呰9浠ラ伩鍏嶆涔夈€傚彲浠ュ弬鐓хず渚嬫ā鏉夸腑鐨勫~鍐欐柟寮忋€� +% 鍏抽敭璇嶅垪琛ㄣ€傚叧閿瘝涔嬮棿闇€瑕佷娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿闅斿紑锛屽惈鏈夌┖鏍肩殑鍏抽敭瀛楅渶瑕佷娇鐢ㄨ姳鎷彿鍖呰9浠ラ伩鍏嶆涔夈€傚彲浠ュ弬鐓т笅鏂圭殑濉啓绀轰緥銆� % \end{function} % % \begin{function}[updated=2021-10-01]{info/grade} @@ -881,40 +883,45 @@ To produce the documentation run the original source files ending with % field = \Arg{鏂瑰悜} % field* = \Arg{鏂瑰悜} % \end{syntax} -% 鐮旂┒棰嗗煙銆傚彧鏈夌爺绌剁敓鏈夌爺绌堕鍩熺殑璇存硶銆� +% 鐮旂┒棰嗗煙銆傚彧鏈夌爺绌剁敓瀛樺湪鐮旂┒棰嗗煙鐨勮娉曪紝鏈鐢熸棤闇€濉啓銆� % \end{function} % % \begin{function}[updated=2022-01-12]{info/supervisor,info/supervisor*} % \begin{syntax} -% supervisor = \Arg{瀵煎笀,鑱岀О} -% supervisor* = \Arg{瀵煎笀} +% supervisor = \Arg{瀵煎笀濮撳悕,鑱岀О} +% supervisor* = \Arg{瀵煎笀鑻辨枃鍏ㄧО} % \end{syntax} % 瀵煎笀鍏ㄧО銆傝浣跨敤閫楀彿鍒嗛殧瀵煎笀鐨勪腑鏂囧鍚嶄笌鑱岀О锛岃嫳鏂囧悕鍒欎笉闇€娣诲姞閫楀彿銆� % \end{function} % % \begin{function}[updated=2021-01-12]{info/supervisor-ii,info/supervisor-ii*} % \begin{syntax} -% supervisor-ii = \Arg{绗簩瀵煎笀,鑱岀О} -% supervisor-ii* = \Arg{绗簩瀵煎笀} +% supervisor-ii = \Arg{绗簩瀵煎笀濮撳悕,鑱岀О} +% supervisor-ii* = \Arg{绗簩瀵煎笀鑻辨枃鍏ㄧО} % \end{syntax} % 绗簩瀵煎笀鍏ㄧО銆傛棤绗簩瀵煎笀鏃朵笉濉嵆鍙€� % \end{function} % -% \begin{function}[updated=2021-10-01]{info/submit-date,info/submit-date*} +% \begin{function}[updated=2022-01-13]{info/submit-date} % \begin{syntax} -% submit-date = \Arg{鎻愪氦鏃ユ湡} -% submit-date* = \Arg{鎻愪氦鏃ユ湡} +% submit-date = \Arg{yyyy/mm/dd} % \end{syntax} -% 鎻愪氦鏃ユ湡銆傚鏋滅暀绌猴紝鍒欒嚜鍔ㄤ娇鐢ㄧ紪璇戝綋澶╂棩鏈熴€� +% 鎻愪氦鏃ユ湡銆備腑鑻辨枃鏃ユ湡鏍煎紡鐜板湪鍙互鐢变笂杩版牸寮忕殑瀛楃涓茬粺涓€鐢熸垚銆傚鏋滅暀绌猴紝鍒欒嚜鍔ㄤ娇鐢ㄧ紪璇戝綋澶╂棩鏈熴€� % \end{function} % -% \begin{function}[updated=2021-10-01]{info/defend-date,info/chairman,info/reviewer} +% \begin{function}[updated=2021-01-13]{info/defend-date} +% \begin{syntax} +% defend-date = \Arg{yyyy/mm/dd} +% \end{syntax} +% 绛旇京鏃ユ湡锛屽彧瀵圭爺绌剁敓鏈夋晥锛岃姹傚悓鎻愪氦鏃ユ湡銆� +% \end{function} +% +% \begin{function}[updated=2021-10-01]{info/chairman,info/reviewer} % \begin{syntax} -% defend-date = \Arg{绛旇京鏃ユ湡} % chairman = \Arg{绛旇京涓诲腑} % reviewer = \Arg{璇勫濮撳悕鑱岀О} % \end{syntax} -% 绛旇京鐩稿叧鐨勫唴瀹癸紝鍙鐮旂┒鐢熸湁鏁堬紝鍖呮嫭绛旇京鏃ユ湡锛岃瘎瀹″鍛樹細涓诲腑鍙婂洓浣嶆垚鍛樼殑濮撳悕鍔犺亴绉般€傚叾涓紝鍥涗綅璇勫鎴愬憳鏄互鍒楄〃鐨勫舰寮忓瓨鍌ㄧ殑锛屽~鍐欐柟娉曞悓鍏抽敭璇嶃€傚鏋滄槸鐩插锛屽~鍏モ€滅洸瀹♀€濅簩瀛楀嵆鍙€� +% 绛旇京鐩稿叧鐨勫唴瀹癸紝鍙鐮旂┒鐢熸湁鏁堬紝鍖呮嫭绛旇京鏃ユ湡锛岃瘎瀹″鍛樹細涓诲腑鍙婂洓浣嶆垚鍛樼殑濮撳悕鍔犺亴绉般€傜瓟杈╂棩鏈熷~鍐欐牸寮忎负 |yyyy/mm/dd|銆傚洓浣嶈瘎瀹℃垚鍛樻槸浠ュ垪琛ㄧ殑褰㈠紡瀛樺偍鐨勶紝濉啓鏂规硶鍚屽叧閿瘝銆傚鏋滄槸鐩插锛屽~鍏モ€滅洸瀹♀€濅簩瀛楀嵆鍙€� % \end{function} % % \begin{function}[updated=2021-10-01]{info/clc,info/secret-level,info/udc,info/supervisor-contact} @@ -931,7 +938,7 @@ To produce the documentation run the original source files ending with % 杩欎簺閫夐」宸插湪 v0.13 寮冪疆锛岃涓嶈浣跨敤銆� % \end{function} % -% \begin{function}{info/supervisor-title,info/supervisor-title*,info/supervisor-ii-title,info/supervisor-ii-title*} +% \begin{function}{info/supervisor-title,info/supervisor-title*,info/supervisor-ii-title,info/supervisor-ii-title*,submit-date*} % 杩欎簺閫夐」宸插湪 v0.14 寮冪疆锛岃涓嶈浣跨敤銆� % \end{function} % @@ -957,7 +964,7 @@ To produce the documentation run the original source files ending with % major* = {\hologo{LaTeX} Linguistics}, % supervisor = {鏉庢垚娈�,鏁欐巿}, % supervisor*= {Professor Li Chengdian}, -% submit-date = {2021骞�8鏈�10鏃 +% submit-date = {2021/08/10} % } % } % \end{latexexample} @@ -983,9 +990,8 @@ To produce the documentation run the original source files ending with % field* = {Contemporary Usage of the \hologo{LaTeX}~Language}, % supervisor = {鏉庢垚娈�,鏁欐巿}, % supervisor*= {Professor Li Chengdian}, -% submit-date = {2021骞�8鏈�10鏃, -% submit-date* = {Aug 10, 2021}, -% defend-date = {2021骞�9鏈�19鏃, +% submit-date = {2021/08/10}, +% defend-date = {2021/09/19}, % chairman = {寮犳檽灞眫鏁欐巿}, % reviewer = {鐜嬬憺甯寏鏁欐巿,閮痉绾瞺鍓暀鎺�,鍗庤妶搴搤鏁欐巿,鎴磋彶鑿瞺鏁欐巿}, % clc = {0175.2}, @@ -1792,7 +1798,7 @@ To produce the documentation run the original source files ending with % % \subsection{瀹氫箟鍙橀噺} % -% 鍦ㄥ彉閲忓悕绉颁腑锛寍l| 浠h〃灞€閮ㄥ彉閲忥紝|g| 浠h〃鍏ㄥ眬鍙橀噺锛屾渶鍚庝竴涓笅鍒掔嚎鍚庣殑鍐呭鎸囩ず鍏剁被鍨嬨€� +% 鍦ㄥ彉閲忓悕绉颁腑锛寍l| 浠h〃灞€閮ㄥ彉閲忥紝|g| 浠h〃鍏ㄥ眬鍙橀噺锛寍c| 浠h〃甯搁噺锛屾渶鍚庝竴涓笅鍒掔嚎鍚庣殑鍐呭鎸囩ず鍏剁被鍨嬨€� % % \begin{variable}{\l_@@_tmp_box,\l_@@_tmp_clist,\l_@@_tmp_dim, % \l_@@_tmp_int,\l_@@_tmpa_tl,\l_@@_tmpb_tl} @@ -1864,6 +1870,27 @@ To produce the documentation run the original source files ending with % \end{macrocode} % \end{variable} % +% \begin{variable}{\l_@@_info_sm_date_tl,\l_@@_info_sm_date_en_tl,\l_@@_info_df_date_tl} +% 鐢ㄤ簬瀛樺偍鏍煎紡鍖栧悗鐨勮鏂囨彁浜ゆ棩鏈熷拰绛旇京鏃ユ湡鐨勫彉閲忋€� +% \begin{macrocode} +\tl_new:N \l_@@_info_sm_date_tl +\tl_new:N \l_@@_info_sm_date_en_tl +\tl_new:N \l_@@_info_df_date_tl +% \end{macrocode} +% \end{variable} +% +% \begin{variable}{\c_@@_today_tl} +% 缂栬瘧褰撳ぉ鏃ユ湡锛屾牸寮忎负 |yyyy/mm/dd|銆� +% \begin{macrocode} +\tl_const:Nx \c_@@_today_tl + { + \int_to_arabic:n { \c_sys_year_int } / + \int_to_arabic:n { \c_sys_month_int } / + \int_to_arabic:n { \c_sys_day_int } + } +% \end{macrocode} +% \end{variable} +% % \begin{variable}{\c_@@_name_type_clist,\c_@@_name_type_en_clist, % \c_@@_name_degree_clist,\c_@@_name_degree_en_clist} % 璁烘枃绫诲瀷涓庡浣嶇被鍨嬨€� @@ -1879,6 +1906,17 @@ To produce the documentation run the original source files ending with % \end{macrocode} % \end{variable} % +% \begin{variable}{\c_@@_month_en_clist} +% 鑻辨枃鏈堜唤鍚嶇О銆� +% \begin{macrocode} +\clist_const:Nn \c_@@_month_en_clist + { + January, February, March, April, May, June, + July, August, September, October, November, December + } +% \end{macrocode} +% \end{variable} +% % % \subsection{鍐呴儴鍑芥暟} % @@ -2095,6 +2133,20 @@ To produce the documentation run the original source files ending with % \end{macrocode} % \end{macro} % +% \begin{macro}{\@@_date_en:www} +% 灏嗗舰濡� |yyyy/mm/dd| 鐨勫瓧绗︿覆杞寲涓鸿嫳鏂囪〃绀虹殑鏈堜唤锛岀敤浜庣爺绌剁敓鑻辨枃灏侀潰銆� +% \begin{arguments} +% \item 骞翠唤 +% \item 鏈堜唤 +% \item 鏃ユ湡 +% \end{arguments} +% 鍏朵腑锛屽彉閲忕被鍨� |w| 琛ㄦ槑鍙傛暟绗﹀悎鐗瑰畾璇硶鏍煎紡銆� +% \begin{macrocode} +\cs_new:Npn \@@_date_en:www #1/#2/#3 \q_stop + { \clist_item:Nn \c_@@_month_en_clist { #2 } ~#3 , ~#1 } +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\njuchapter} % 鍚湁鐩綍鍜� PDF 鏍囩鐨勬棤缂栧彿绔犮€� % \begin{macrocode} @@ -2466,20 +2518,27 @@ To produce the documentation run the original source files ending with % \end{macrocode} % \end{macro} % -% \begin{macro}{info/submit-date,info/submit-date*} +% \begin{macro}{info/submit-date} +% \changes{v0.14}{2022/01/13}{绮剧畝鎻愪氦鏃ユ湡閫夐」銆倉 % 鎻愪氦鏃ユ湡锛屽垵濮嬪€间负缂栬瘧褰撳ぉ鏃ユ湡銆� % \begin{macrocode} - submit-date .tl_set:N = \l_@@_info_sm_date_tl, - submit-date .initial:n = \today, - submit-date* .tl_set:N = \l_@@_info_sm_date_en_tl, - submit-date* .initial:n = \today, + submit-date .tl_set:N = \l_@@_info_sm_date_raw_tl, + submit-date .initial:n = \c_@@_today_tl, +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{info/defend-date} +% \changes{v0.14}{2022/01/12}{绮剧畝绛旇京鏃ユ湡閫夐」銆倉 +% 绛旇京鏃ユ湡銆� +% \begin{macrocode} + defend-date .tl_set:N = \l_@@_info_df_date_raw_tl, + defend-date .initial:n = \c_@@_today_tl, % \end{macrocode} % \end{macro} % % \begin{macro}{info/defend-date,info/chairman,info/reviewer} -% 绛旇京淇℃伅銆� +% 绛旇京濮斿憳浼氫俊鎭€� % \begin{macrocode} - defend-date .tl_set:N = \l_@@_info_df_date_tl, chairman .tl_set:N = \l_@@_info_chairman_tl, reviewer .clist_set:N = \l_@@_info_reviewer_clist, % \end{macrocode} @@ -2504,8 +2563,8 @@ To produce the documentation run the original source files ending with { \clist_use:Nn \l_@@_info_supv_clist { \@@_hskip: } \bool_if:NT \l_@@_second_supv_bool - { - \@@_quad: + { + \@@_quad: \clist_use:Nn \l_@@_info_supv_ii_clist { \@@_hskip: } } } @@ -3249,7 +3308,7 @@ To produce the documentation run the original source files ending with \ctex_at_end_preamble:n { % \end{macrocode} -% 娓呴櫎鏍囬涓敤浜庢墜鍔ㄦ崲琛岀殑 |!| 鎺у埗绗︺€� +% 鎷煎悎瀹屾暣鏍囬锛岀敤浜� PDF 鏍囬鍜屾憳瑕侀〉銆� % \begin{macrocode} \tl_set:Nn \l_@@_info_title_tl { \clist_use:Nn \l_@@_info_title_clist { } } @@ -3381,8 +3440,8 @@ To produce the documentation run the original source files ending with { \tl_set:Nx \l_@@_tmpa_tl { \clist_item:Nn \l_@@_info_title_clist { 1 } } - \bool_if:nT - { + \bool_if:nT + { \int_compare_p:n { \clist_count:N \l_@@_info_title_clist = 1 } && \int_compare_p:n { \tl_count:N \l_@@_tmpa_tl > 15 } } @@ -3503,11 +3562,14 @@ To produce the documentation run the original source files ending with % \end{macrocode} % \end{macro} % -% \begin{macro}{\njuemblem,\njuname} -% 濡傛灉鐢ㄦ埛鍦ㄥ瑷€鍖鸿嚜瀹氫箟浜嗗浘鐗囩殑璺緞锛屽垯瑕嗙洊 \pkg{njuvisual} 鎻愪緵鐨勭粯鍒跺懡浠ゃ€� +% 鏍规嵁瀵艰█鍖鸿浇鍏ョ殑鐢ㄦ埛璁剧疆杩涜涓€浜涘鐞嗐€� % \begin{macrocode} \ctex_at_end_preamble:n { +% \end{macrocode} +% \begin{macro}{\njuemblem,\njuname} +% 濡傛灉鐢ㄦ埛鍦ㄥ畾涔変簡鍥剧墖鐨勮矾寰勶紝鍒欒鐩� \pkg{njuvisual} 鎻愪緵鐨勭粯鍒跺懡浠ゃ€� +% \begin{macrocode} \tl_if_empty:NF \l_@@_emblem_img_tl { \RenewDocumentCommand \njuemblem { o m m } @@ -3520,9 +3582,33 @@ To produce the documentation run the original source files ending with { \includegraphics [ width = #2, height = #3 ] { \l_@@_name_img_tl } } } - } % \end{macrocode} % \end{macro} +% 浣跨敤 \pkg{zhnumber} 鎻愪緵鐨勫嚱鏁板皢鏃ユ湡瀛楃涓叉牸寮忓寲涓轰腑鏂囨棩鏈燂紝璇ュ瓧绗︿覆闇€瑕佸畬鍏ㄥ睍寮€銆� +% \begin{macrocode} + \tl_set:Nx \l_@@_info_sm_date_tl + { + \exp_last_unbraced:Ne + \__zhnum_date:www \l_@@_info_sm_date_raw_tl \q_stop + } +% \end{macrocode} +% 鑻辨枃鎻愪氦鏃ユ湡浠ュ強绛旇京鏃ユ湡浠呯敤浜庣爺绌剁敓灏侀潰銆� +% \begin{macrocode} + \int_compare:nF { \l_@@_info_degree_int == 1 } + { + \tl_set:Nx \l_@@_info_sm_date_en_tl + { + \exp_last_unbraced:Ne + \@@_date_en:www \l_@@_info_sm_date_raw_tl \q_stop + } + \tl_set:Nx \l_@@_info_df_date_tl + { + \exp_last_unbraced:Ne + \__zhnum_date:www \l_@@_info_df_date_raw_tl \q_stop + } + } + } +% \end{macrocode} % % \begin{macro}{\@@_cover_title_ug:} % 鏈鐢熷皝闈㈡爣棰樸€� @@ -3690,7 +3776,7 @@ To produce the documentation run the original source files ending with % 鍥藉鍥句功棣嗗皝闈俊鎭爮銆� % \begin{macrocode} \cs_new_protected:Npn \@@_cover_info_nl: - { + { \tl_set:Nn \l_@@_info_supv_tl { \clist_item:Nn \l_@@_info_supv_clist { 1 } } \tl_set:Nn \l_@@_info_supv_ttl_tl diff --git a/test/name.png b/test/name.png index 756ca705a8b19267f5c266788a8c3e5cba395706..5272fe9b0b344b7dca07633fb622a3e5fb2767ea 100644 Binary files a/test/name.png and b/test/name.png differ diff --git a/test/test.tex b/test/test.tex index 47aeec4253105e22cd127dc28629d35ffddf1ad8..6e6747fefec73600eb57d78841bf974fb3cb6411 100644 --- a/test/test.tex +++ b/test/test.tex @@ -35,9 +35,8 @@ supervisor* = {Professor Li Chengdian}, % supervisor-ii = {瀛欒但寮�,鍓暀鎺坿, % supervisor-ii* = {Associate~professor~Sun~Hemi}, - submit-date = {2021骞�8鏈�10鏃, - submit-date* = {Aug 10, 2021}, - defend-date = {2021骞�9鏈�19鏃, + % submit-date = {2021/08/10}, + % defend-date = {2021/09/19}, chairman = {寮犳檽灞眫鏁欐巿}, reviewer = {鐜嬬憺甯寏鏁欐巿,閮痉绾瞺鍓暀鎺�,鍗庤妶搴搤鏁欐巿,鎴磋彶鑿瞺鏁欐巿}, clc = {0175.2},