From f6291d5415527cf4f36b44358bb2ad77a8929cb2 Mon Sep 17 00:00:00 2001 From: Yu Xiong <181850195@smail.nju.edu.cn> Date: Tue, 21 Dec 2021 22:14:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E4=B8=80=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=86=85=E7=BD=AE=E8=BD=BD=E5=85=A5=E7=9A=84=E5=AE=8F?= =?UTF-8?q?=E5=8C=85=E7=A7=BB=E9=99=A4=20-=20=E5=A2=9E=E8=A1=A5=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/njuthesis-sample.bib | 29 +- docs/njuthesis-sample.tex | 36 ++- source/njuthesis.dtx | 613 +++++++++++++++++++++----------------- test/test.tex | 11 +- 4 files changed, 396 insertions(+), 293 deletions(-) diff --git a/docs/njuthesis-sample.bib b/docs/njuthesis-sample.bib index e9cc489..2b6c307 100644 --- a/docs/njuthesis-sample.bib +++ b/docs/njuthesis-sample.bib @@ -1,9 +1,3 @@ -@ARTICLE{njuthesis, - title = {鍗椾含澶у瀛﹀+瀛︿綅璁烘枃 LaTeX 妯℃澘}, - AUTHOR = {NJU-LUG}, - JOURNALTITLE = {Github}, - YEAR = {2021} -} @book{goossens93, author = "Frank Mittelbach and Michel Goossens and Johannes Braams and David Carlisle and Chris Rowley", title = "The {LaTeX} Companion", @@ -11,12 +5,19 @@ publisher = "Addison-Wesley", address = "Reading, Massachusetts" } -@ARTICLE{segl03, - AUTHOR = "Segletes, S. B. AND Walters, W. P.", - TITLE = {Extensions to the Exact Solution of the Long-Rod - Penetration/Erosion Equations}, - JOURNAL = "IJIE", - YEAR = "2003", - VOLUME = "28", - PAGES = "363--376" +@article{schollwock2011, + title = {The Density-Matrix Renormalization Group in the Age of Matrix Product States}, + author = {Schollw枚ck, Ulrich}, + date = {2011-01}, + journaltitle = {Annals of Physics}, + shortjournal = {Annals of Physics}, + volume = {326}, + number = {1}, + pages = {96--192}, + issn = {00034916}, + doi = {10.1016/j.aop.2010.09.012}, + url = {https://linkinghub.elsevier.com/retrieve/pii/S0003491610001752}, + urldate = {2021-10-11}, + abstract = {The density-matrix renormalization group method (DMRG) has established itself over the last decade as the leading method for the simulation of the statics and dynamics of one-dimensional strongly correlated quantum lattice systems. In the further development of the method, the realization that DMRG operates on a highly interesting class of quantum states, so-called matrix product states (MPS), has allowed a much deeper understanding of the inner structure of the DMRG method, its further potential and its limitations. In this paper, I want to give a detailed exposition of current DMRG thinking in the MPS language in order to make the advisable implementation of the family of DMRG algorithms in exclusively MPS terms transparent. I then move on to discuss some directions of potentially fruitful further algorithmic development: while DMRG is a very mature method by now, I still see potential for further improvements, as exemplified by a number of recently introduced algorithms.}, + langid = {english} } diff --git a/docs/njuthesis-sample.tex b/docs/njuthesis-sample.tex index 8663540..7d7a62d 100644 --- a/docs/njuthesis-sample.tex +++ b/docs/njuthesis-sample.tex @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % NJU Thesis % 鍗椾含澶у姣曚笟璁烘枃LaTeX妯℃澘 -% Version 0.13.x (2021-12-13) +% Version 0.14.x (2021-12-21) % % 璇峰叧娉ㄩ」鐩湴鍧€浠ヨ幏鍙栨渶鏂板彉鍖� % https://github.com/nju-lug/NJUThesis @@ -154,10 +154,27 @@ 姹熻嫃鐪佸崡浜競鏍栭湠鍖轰粰鏋楀ぇ閬�163鍙� } % 瀵煎笀鑱旂郴鏂瑰紡 + }, + % + % + % bib 绫荤敤浜庡弬鑰冩枃鐚缃� + bib = { + % style = author-year, + % 鍙傝€冩枃鐚牱寮� + % 榛樿涓洪『搴忕紪鐮佸埗锛坣umeric锛� + % 鍙€夎憲鑰�-鍑虹増骞村埗锛坅uthor-year锛� + % + resource = {njuthesis-sample.bib} + % 鍙傝€冩枃鐚暟鎹簮 + % 闇€瑕佸甫鎵╁睍鍚嶇殑瀹屾暣鏂囦欢鍚� + % 鍙娇鐢ㄩ€楀彿鍒嗛殧澶氫釜鏂囦欢 + % 姝ゆ潯绛夋晥浜� \addbibresource 鍛戒护 } } -% 鑷浣跨敤鎵€闇€瀹忓寘 +% 鑷杞藉叆鎵€闇€瀹忓寘 +% \usepackage{subcaption} % 鐢ㄤ簬宓屽灏忓箙鍥惧儚锛屾瘮 subfig 鍜� subfigure 濂界敤 +% \usepackage{wrapfig} % 鐢ㄤ簬鐢熸垚鏂囧瓧鐜粫鐨勫浘鐗� % \usepackage{siunitx} % 鐢ㄤ簬涔﹀啓鍗曚綅绗﹀彿 % \usepackage[version=4]{mhchem} % 鐢ㄤ簬缁樺埗鍒嗗瓙寮� % \usepackage{listings} % 鐢ㄤ簬灞曠ず浠g爜 @@ -166,9 +183,6 @@ % 璁剧疆鍥剧墖瀛樺偍浣嶇疆 \graphicspath{{figure/}} -% 瀵煎叆鍙傝€冩枃鐚暟鎹� -\addbibresource{njuthesis-sample.bib} - % 鍦ㄥ瑷€鍖洪殢鎰忓畾鍒舵墍闇€鍛戒护 % https://tex.stackexchange.com/questions/33264/span-as-a-math-operator \DeclareMathOperator{\spn}{span} @@ -191,6 +205,10 @@ % 濡傞渶鎶戝埗杩欎簺淇℃伅锛屽彲浠ュ弽娉ㄩ噴浠ヤ笅鍛戒护 % \raggedbottom +\begin{preface} + 鍓嶈█ +\end{preface} + \begin{abstract} 涓枃鎽樿 \end{abstract} @@ -199,10 +217,6 @@ English abstract \end{abstract*} -\begin{preface} - 鍓嶈█ -\end{preface} - % 鐢熸垚鐩綍 \tableofcontents % 鐢熸垚鍥剧墖娓呭崟 @@ -224,6 +238,10 @@ \chapter{寮曡█} +\section{tDMRG} + +鐭╅樀涔樼Н鎬佷篃琚敤浜庡惈鏃惰枦瀹氳皵鏂圭▼鐨勬眰瑙o紝褰㈡垚浜嗗惈鏃跺瘑搴︾煩闃甸噸鏁村寲缇ゆ柟娉昞cite{schollwock2011}銆� + %------------------------------------------------- % 鍙傝€冩枃鐚� %------------------------------------------------- diff --git a/source/njuthesis.dtx b/source/njuthesis.dtx index 6e4ae4e..f9f39b9 100644 --- a/source/njuthesis.dtx +++ b/source/njuthesis.dtx @@ -103,7 +103,7 @@ through XeTeX. % %<class>\NeedsTeXFormat{LaTeX2e} %<class>\RequirePackage{expl3} -%<class>\GetIdInfo $Id: njuthesis.dtx 0.13.1 2021-12-15 14:00:00 +0800 NJU LUG <nju.lug@yaoge123.cn> $ +%<class>\GetIdInfo $Id: njuthesis.dtx 0.14.0 2021-12-21 16:00:00 +0800 NJU LUG <nju.lug@yaoge123.cn> $ %<class> { Thesis template for Nanjing University } %<class>\ProvidesExplClass{njuthesis} %<class>{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} @@ -144,7 +144,7 @@ through XeTeX. rulecolor = \color{njumagenta}, language = bash, alsoletter = {-}, - emphstyle = \color{green} + emphstyle = \color{nju-cs-green} } \lstdefinestyle{style@latex} { @@ -174,7 +174,7 @@ through XeTeX. % Nanjing University Linux User Group % \thanks{E-mail: \href{mailto:nju.lug@yaoge123.cn}{nju.lug@yaoge123.cn}}} % -% \date{v0.13.1 \\ Released 2021-12-15} +% \date{v0.14.0 \\ Released 2021-12-21} % % \changes{v0.1}{2021/09/04}{寮€濮嬪紑鍙戙€倉 % \changes{v0.2}{2021/09/07}{鍒濇鎼缓浜嗗彲鐢ㄧ殑妯℃澘銆倉 @@ -322,7 +322,7 @@ through XeTeX. % % \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 鍚屾闀滃儚} 鑾峰彇椤圭洰宸ョ▼鏂囦欢銆� % -% \subparagraph{GitHub Releases} 鏈ā鏉夸笉瀹氭湡灏嗗凡鏈夌殑鏂板姛鑳藉拰闂淇鎵撳寘涓烘柊鐨勬寮忓彂琛岀増锛岃祴浠ユ洿鏀瑰悗鐨勭増鏈彿锛屽彂甯冨湪 \href{https://github.com/nju-lug/NJUThesis/releases/latest}{Github Releases 椤甸潰}銆傚鏋滅敱浜庣綉缁滃師鍥犱笉渚胯闂富浠撳簱锛屼篃鍙互浠嶾href{https://mirrors.nju.edu.cn/download/NJUThesis%20%E8%AE%BA%E6%96%87%E6%A8%A1%E6%9D%BF}{鍗椾含澶у闀滃儚绔欎笅杞介〉闈鑾峰彇銆傚彲渚涗笅杞界殑鏂囦欢鍖呮嫭涓嬪垪涓夌锛� +% \subparagraph{GitHub Releases} 鏈ā鏉夸笉瀹氭湡灏嗗凡鏈夌殑鏂板姛鑳藉拰闂淇鎵撳寘涓烘柊鐨勬寮忓彂琛岀増锛岃祴浠ユ洿鏀瑰悗鐨勭増鏈彿锛屽彂甯冨湪 \href{https://github.com/nju-lug/NJUThesis/releases/latest}{Github Releases 椤甸潰}銆傚鏋滅敱浜庣綉缁滃師鍥犱笉渚胯闂富浠撳簱锛屼篃鍙互浠嶾href{https://mirror.nju.edu.cn/github-release/nju-lug/NJUThesis/LatestRelease/}{鍗椾含澶у闀滃儚绔欎笅杞介〉闈鑾峰彇銆傚彲渚涗笅杞界殑鏂囦欢鍖呮嫭涓嬪垪涓夌锛� % \begin{description} % \item[\file{njuthesis-v*.pdf}] 妯℃澘璇存槑鏂囨。锛堟湰鏂囨。锛夈€� % \item[\file{njuthesis-v*.zip}] 瀹屾暣妯℃澘鍖咃紝鍖呮嫭鏍煎紡鏂囦欢銆佽寖鏈互鍙婄紪杈戝櫒閰嶇疆鏂囦欢銆傚彲浠ヨВ鍘嬪悗鐢ㄤ簬鏈湴缂栬瘧鎴栫洿鎺ヤ笂浼犵敤浜庡湪绾跨紪璇戙€� @@ -340,7 +340,7 @@ through XeTeX. % 鍖栧寘绠$悊鍣ㄧ洿鎺ユ悳绱㈠苟瀹夎 \cls{njuthesis} 锛堝強鍏朵緷璧栫殑 \pkg{njuvisual}锛夋渶鏂扮殑 % 绋冲畾鐗堛€傚悓鏃讹紝鎮ㄤ篃鍙互浣跨敤缁堢鍛戒护銆備緥濡傦紝鍋囪鎮ㄤ娇鐢ㄧ殑鏄� \hologo{TeX}\,Live锛� % 閿叆涓嬭堪 \pkg{tlmgr} 鐨勫懡浠わ紙寰堝彲鑳介渶瑕佺鐞嗗憳鏉冮檺锛夛細 -% \begin{shellexample}[morekeywords={tlmgr,install}] +% \begin{shellexample}[morekeywords={tlmgr},emph={install}] % tlmgr install njuthesis njuvisual % \end{shellexample} % 鍗冲彲瀹屾垚瀹夎锛屾棤闇€棰濆鍑嗗 \file{.cls} 鏂囦欢銆� @@ -348,12 +348,13 @@ through XeTeX. % 鍙︿竴鏂归潰锛孋TAN 渚濊禆寮€鍙戣€呮墜鍔ㄤ笂浼犳洿鏂帮紝鐗堟湰鏇存柊鍏锋湁婊炲悗鎬с€傚鏋滀娇鐢ㄦ椂閬囧埌浜嗛棶 % 棰橈紝涓嶅Θ浣跨敤涓嬩竴灏忚妭鐨刓emph{鍗虫椂瀹夎鏂规硶}浼樺厛杞藉叆杈冩柊鐨勬牸寮忔枃浠躲€� % -% {\color{red}|[!]|} 濡傛灉鎮ㄤ娇鐢ㄧ殑鏄� Linux 绯荤粺鑰屼笖鍏峰鐩稿叧缁忛獙锛屽彲浠ュ湪涓嬭浇浠撳簱鍐呭叏閮ㄦ枃浠跺悗锛屼簬璇ョ洰褰曚笅杩愯 -% \begin{shellexample}[morekeywords={l3build,install}] +% {\color{red}|[!]|} 濡傛灉鎮ㄥ叿澶囩浉鍏崇粡楠孿footnote{璀鐔熸倝鍛戒护琛屾搷浣溿€佷娇鐢ㄧ殑鏄� \hologo{TeX}\,Live 鍙戣鐗堢瓑}锛屽彲浠ュ湪涓嬭浇浠撳簱鍐呭叏閮ㄦ枃浠跺悗锛屼簬璇ョ洰褰曚笅杩愯 +% \begin{shellexample}[morekeywords={l3build},emph={install}] % l3build install % \end{shellexample} % 鏉ュ畨瑁呮湰妯℃澘鐨勬渶鏂扮増銆� % +% % \subsubsection{鍗虫椂瀹夎} % \label{subsubsec:on-the-fly-installation} % @@ -375,6 +376,7 @@ through XeTeX. % 鍒嗛挓鏃堕棿銆傚鏋滈亣鍒颁簡闂锛岃鍓嶅線 GitHub 浠撳簱鎻愬嚭 issue銆傛垜浠彧鎺ㄨ崘甯屾湜鍙備笌寮€鍙� % 鐨勫悓瀛︽帴瑙� \file{.dtx} 鏂囦欢銆� % +% % \subsection{鏂囦欢鏋勬垚} % % \cls{njuthesis}鐢辨暟閲忎紬澶氱殑鏂囦欢缁勬垚锛孿emph{鎵€鏈夊彲鑳介亣鍒扮殑}鏂囦欢濡傝〃 \ref{tab:njuthesisfiles} 鎵€绀恒€� @@ -402,6 +404,7 @@ through XeTeX. % \end{tabular} % \end{table} % +% % \subsection{鏈湴缂栬瘧} % \label{subsec:localcompile} % @@ -437,6 +440,7 @@ through XeTeX. % \item 瀵逛簬涓€閮ㄥ垎鐢ㄥ埌鏂扮増鏈壒鎬х殑瀹忓寘锛孿cls{njuthesis} 鍐呯疆浜嗙増鏈鏌footnote{璀閬囧埌 l3 杩囨椂闂璇疯繍琛� |tlmgr update l3packages|銆倉锛岃纭鍚勫畯鍖呭凡鍗囩骇鑷虫渶鏂扮増銆� % \end{itemize} % +% % \subsubsection{閰嶇疆缂栬緫鍣▆ % \changes{v0.11}{2021/11/23}{鎻愪緵TeXstudio閰嶇疆鏂囦欢銆倉 % @@ -452,6 +456,7 @@ through XeTeX. % \item[TeXstudio] 鏈ā鏉挎彁渚� \file{conf.txsprofile}锛屽彲浠ヤ娇鐢ㄥ揩鎹烽敭 |alt+O+P| 瀵煎叆閰嶇疆鏂囦欢銆備负浜嗙畝鍖栨祦绋媆footnote{褰撶劧锛屼篃鍙互璁剧疆涓轰娇鐢� \hologo{XeLaTeX} 缂栬瘧锛岀劧鍚庢寜鐓� \ref{subsubsec:compileseq} 鍐呭浣跨敤蹇嵎閿� |F8| 鎵嬪姩缂栬瘧鍙傝€冩枃鐚€倉锛岃閰嶇疆鏂囦欢浣跨敤 \pkg{latexmk}锛岀涓€娆$紪璇戝墠璇峰弬鑰冧笅涓€鑺傚唴瀹瑰畨瑁� Perl銆� % \end{description} % +% % \subsubsection{缂栬瘧椤哄簭} % \label{subsubsec:compileseq} % \hologo{TeX} 鏈韩鏄懡浠よ绋嬪簭锛岄€氳繃涓嶅悓鐨勫懡浠よ皟鐢ㄦ墍闇€鐨勭紪璇戝紩鎿庯紝缂栬緫鍣ㄦ彁渚涚殑 @@ -561,7 +566,7 @@ through XeTeX. % \tableofcontents % \mainmatter % \chapter{娆㈣繋} -% 浣跨敤 \hologo{LaTeX} +% 浣跨敤 \LaTeX{}锛� % \printbibliography % \end{document} % \end{latexexample} @@ -619,7 +624,7 @@ through XeTeX. % 閫夋嫨鏄惁寮€鍚崏绋挎ā寮忥紝榛樿鍏抽棴銆� % \end{function} % -% 鑽夌ǹ妯″紡涓哄叏灞€閫夐」锛屾湁鍔╀簬鎻愬崌缂栬瘧閫熷害浠ュ強妫€鏌ユ牸寮忛棶棰橈紝寤鸿鍦ㄥ畾绋垮墠濮嬬粓寮€鍚€傚惎鐢ㄨ繖涓€閫夐」灏嗕骇鐢熶互涓嬪奖鍝嶏細 +% 鑽夌ǹ妯″紡涓哄叏灞€閫夐」锛屾湁鍔╀簬鎻愬崌缂栬瘧閫熷害浠ュ強妫€鏌ユ牸寮忛棶棰橈紝寤鸿鍦ㄥ畾绋垮墠濮嬬粓寮€鍚€傚惎鐢ㄨ繖涓€閫夐」灏嗕骇鐢熶互涓嬫暣浣撳奖鍝嶏細 % \begin{itemize} % \item 绂佺敤灏侀潰鐨勭粯鍒讹紙鍖呮嫭鎵胯鍜屽0鏄庯級 % \item 鏄剧ず椤甸潰鏂囧瓧鑼冨洿杈规浠ュ強椤电湁椤佃剼绾� @@ -628,6 +633,8 @@ through XeTeX. % \item 涓嶅啀娓叉煋瓒呴摼鎺ュ強鐢熸垚 PDF 涔︾ % \end{itemize} % +% 璇ラ€夐」涔熶細鏀瑰彉鐗瑰畾瀹忓寘鐨勮涓猴紝璀鍦ㄨ崏绋挎ā寮忎笅 \pkg{listings} 瀹忓寘鐨勪唬鐮佺幆澧冧笉浼氭樉绀哄唴瀹广€傚叿浣撹鍙傜収鍚勪釜瀹忓寘鐨勮鏄庢枃妗c€� +% % % \subsubsection{鎸囧畾瀛椾綋} % @@ -957,18 +964,23 @@ through XeTeX. % \end{function} % % -% \subsubsection{鍥剧墖} +% \subsubsection{鍥剧墖} % % \begin{function}{\graphicspath} % \begin{syntax} % \tn{graphicspath}\{\marg{璺緞1}\marg{璺緞2}\} % \end{syntax} -% 浣跨敤鑷繁鐨勫浘鐗囨椂锛岄渶瑕佸湪瀵艰█鍖洪€氳繃鏈懡浠ゆ坊鍔犲浘鐗囧瓨鏀捐矾寰勶紝鍏佽鐨勬枃浠跺悕鍖呮嫭\file{*.jpg}, \file{*.png}, \file{*.pdf}, \file{*.eps}銆� +% 娣诲姞鍥惧儚璺緞銆� % \end{function} % +% \pkg{graphicx} 瀹忓寘浼氬涓€浜涘父瑙佽矾寰勮繘琛屾悳绱€€備娇鐢ㄨ嚜宸辩殑鍥剧墖鏃讹紝濡傛灉鎻愮ず涓嶈兘鎵惧埌鏂囦欢锛岄渶瑕佸湪瀵艰█鍖洪€氳繃鏈懡浠ゆ坊鍔犲浘鐗囧瓨鏀捐矾寰勩€� % -% 涓嬮潰杩欎釜渚嬪瓙灞曠ず浜嗗浣曟彃鍏ヤ竴寮犲悕绉颁负\file{myfig.jpg}锛屽搴﹀崰椤甸潰鏂囧瓧瀹藉害涓€鍗婄殑鍥剧墖銆傛敞鎰忔爣绛惧懡浠tn{label}蹇呴』鏀惧湪鍥炬敞鍛戒护\tn{caption}涔嬪悗銆� +% 鍦ㄤ娇鐢ㄧ壒瀹氱被鍨嬬殑鍥剧墖鏂囦欢鏃讹紝鍙互鐪佺暐鍏舵墿灞曞悕锛屽寘鎷� \file{*.jpg}, \file{*.png}, \file{*.pdf}, \file{*.eps}銆� % +% +% \paragraph{鍥剧墖} +% +% 涓嬮潰杩欎釜渚嬪瓙灞曠ず浜嗗浣曟彃鍏ヤ竴寮犲悕绉颁负 \file{myfig.jpg}锛屽搴﹀崰椤甸潰鏂囧瓧瀹藉害涓€鍗婄殑鍥剧墖銆傛敞鎰忔爣绛惧懡浠� \tn{label} 蹇呴』鏀惧湪鍥炬敞鍛戒护 \tn{caption} 涔嬪悗銆� % \begin{latexexample}[moretexcs={\includegraphics},emph={[1]figure}] % \begin{figure}[h] % \centering @@ -978,8 +990,12 @@ through XeTeX. % \end{figure} % \end{latexexample} % -% 瀵逛簬杈冧负鐦﹂暱锛屾垨鑰呬粎璧峰埌杈呭姪浣滅敤鐨勫浘鍍忥紝鍙互浣跨敤\env{wrapfigure}瀹炵幇鏂囧瓧鐜粫鏁堟灉銆傛敞鎰忚繖涓幆澧冨悗绱ц窡鐨勪竴琛屼笉鑳戒负绌恒€� +% 浠ヤ笅鍔熻兘鐨勫疄鐜板潎闇€瑕佹墜鍔ㄨ浇鍏ョ浉鍏冲畯鍖呫€� +% % +% \paragraph{鏂囧瓧鐜粫} +% +% 瀵逛簬杈冧负鐦﹂暱锛屾垨鑰呬粎璧峰埌杈呭姪浣滅敤鐨勫浘鍍忥紝鍙互浣跨敤 \pkg{wrapfig} 瀹忓寘鎻愪緵鐨� \env{wrapfigure} 瀹炵幇鏂囧瓧鐜粫鏁堟灉銆傛敞鎰忚繖涓幆澧冨悗绱ц窡鐨勪竴琛屼笉鑳戒负绌恒€� % \begin{latexexample}[moretexcs={\includegraphics},emph={[1]wrapfigure}] % \begin{wrapfigure}{r}{0cm} % \centering @@ -989,9 +1005,11 @@ through XeTeX. % \end{wrapfigure} % <text> % \end{latexexample} -% -% 浣跨敤 \pkg{caption} 鍐呯疆鐨� \pkg{subcaption} 鎻愪緵 \env{subfigure} 鐜锛屽疄鐜板寮犲浘鐗囧苟鎺掔殑鏁堟灉銆傝緝涓鸿€佹棫鐨� \pkg{subfigure} 骞朵笉鍦ㄦ鍙楀埌鏀寔銆� % +% +% \paragraph{澶氬紶宓屽} +% +% 浣跨敤 \pkg{subcaption} 瀹忓寘鎻愪緵鐨� \env{subfigure} 鐜鍙互瀹炵幇澶氬紶鍥剧墖宓屽鐨勬晥鏋溿€� % \begin{latexexample}[moretexcs={\includegraphics},emph={[1]figure,subfigure}] % \begin{figure} % \begin{subfigure}{.32\textwidth} @@ -1013,10 +1031,12 @@ through XeTeX. % \end{figure} % \end{latexexample} % +% 璇峰敖閲忛伩鍏嶄娇鐢ㄨ緝涓鸿€佹棫鐨� \pkg{subfig} 瀹忓寘锛屽畬鍏ㄤ笉瑕佷娇鐢ㄨ繃鏃剁殑 \pkg{subfigure} 瀹忓寘銆備袱鑰呯殑 CTAN 椤甸潰涓婂潎寤鸿杞Щ鑷虫洿鏂扮殑 \pkg{subcaption} 瀹忓寘銆� +% % % \subsubsection{琛ㄦ牸} % -% 涓嬮潰杩欎釜渚嬪瓙灞曠ず浜嗗浣曟彃鍏ヤ竴寮犺〃鏍笺€傞€氳繃 \pkg{booktabs} 鎻愪緵鐨� \tn{toprule}銆乗tn{midrule} 鍜� \tn{bottomrule}锛屾垜浠彲浠ュ緢杞绘澗鍦扮粯鍒跺嚭涓€寮犳紓浜鑼冪殑涓夌嚎琛ㄣ€� +% 涓嬮潰杩欎釜渚嬪瓙灞曠ず浜嗗浣曟彃鍏ヤ竴寮犺〃鏍笺€傞€氳繃 \pkg{booktabs} 瀹忓寘鎻愪緵鐨� \tn{toprule}銆乗tn{midrule} 鍜� \tn{bottomrule} 鍛戒护锛屾垜浠彲浠ュ緢杞绘澗鍦扮粯鍒跺嚭涓€寮犳紓浜鑼冪殑涓夌嚎琛ㄣ€� % \begin{latexexample}[moretexcs={\toprule,\midrule,\bottomrule},emph={[1]table,tabular}] % \begin{table}[htbp] % \centering @@ -1032,17 +1052,81 @@ through XeTeX. % \end{table} % \end{latexexample} % +% 浠ヤ笅鍔熻兘鐨勫疄鐜板潎闇€瑕佹墜鍔ㄨ浇鍏ョ浉鍏冲畯鍖呫€� +% +% +% \paragraph{鍚堝苟鍗曞厓鏍紏 +% % \begin{function}{\multirow,\multicolumn} % \begin{syntax} % \tn{multirow}\Arg{nrows}\oarg{bigstructs}\Arg{width}[\oarg{fixup}\Arg{text} % \tn{multicolumn}\Arg{nrows}\Arg{width}\Arg{text} % \end{syntax} +% 鍚堝苟鍗曞厓鏍� +% \end{function} % -% TODO锛歕pkg{multirow}\pkg{multicol}鍚堝苟鍗曞厓鏍� +% TODO锛歕pkg{multirow} 瀹忓寘鐨勪娇鐢ㄦ柟娉曪紝鍛戒护杈冧负澶嶆潅銆� % \url{http://www.ctex.org/documents/packages/table/multirow.htm} % -% \end{function} % +% \paragraph{鏇村鏍峰紡} +% +% TODO锛氫娇鐢� \pkg{tabularray} 鐨勬柊璇硶涓板瘜鍗曞厓鏍兼牱寮� +% +% +% +% \subsubsection{鏁板} +% +% 绗﹀彿琛ㄥ彲浠ュ弬鑰僜url{https://www.caam.rice.edu/~heinken/latex/symbols.pdf}銆� +% +% 鍗曚綅璇峰弬鑰冪浉鍏冲浗瀹舵爣鍑哱footnote{GB 3100-1993, GB/T 3101-1993, GB/T 3102-1993}锛屼娇鐢� \pkg{siunitx} 瀹忓寘銆俓pkg{siunitx}鏄竴涓洿鏂伴绻佺殑鍖咃紝鍙兘浼氬紩鍙戝吋瀹规€ч棶棰樸€� +% +% 琛屽唴鍏紡褰㈠|$\mathrm{e}^{(a+2b)x}$|銆� +% +% 甯︽湁缂栧彿鐨勮闂村叕寮� \env{equation}銆� +% \begin{latexexample}[emph={[1]equation}] +% \begin{equation}\label{eq:myeqlabel} +% \pi +% \end{equation} +% \end{latexexample} +% +% 濡備笉闇€瑕佺紪鍙凤紝鍙互鐢� \env{equation*} 鎴栬€� |\[|\meta{鍏紡}|\]|锛岃涓嶈浣跨敤鍙兘寮曞彂闂鐨� |$$|\meta{鍏紡}|$$|\footnote{\url{https://tex.stackexchange.com/questions/503/why-is-preferable-to}}銆� +% +% +% \paragraph{瀹氱悊鐜} +% +% 鏈ā鏉夸篃鎻愪緵浜嗕竴绯诲垪鐨勫畾鐞嗘暟瀛︾幆澧冦€� +% 鍏ㄩ儴棰勫畾涔夌殑鏁板鐜濡傝〃~\ref{tab:mathenv} 鎵€绀恒€傚叾涓瘉鏄庣幆澧冭緝涓虹壒娈婏紝浼氬湪缁撳熬娣诲姞璇佹瘯绗﹀彿锛圽mdwhtsquare锛夈€傜敤鎴蜂篃鍙互閫夋嫨浣跨敤 \tn{newtheorem} 瀹氫箟鏂扮殑瀹氱悊鐜銆� +% +% \begin{table}[htbp] +% \centering +% \caption{鏁板鐜} +% \label{tab:mathenv} +% \begin{tabular}{cc|cc} +% \toprule +% \bf 鏍囩 & \bf 鍚嶇О & \bf 鏍囩 & \bf 鍚嶇О \\ +% \midrule +% axiom & 鍏悊 & lemma & 寮曠悊 \\ +% corollary & 鎺ㄨ & proof & 璇佹槑 \\ +% definition & 瀹氫箟 & theorem & 瀹氱悊 \\ +% example & 渚� & & \\ +% \bottomrule +% \end{tabular} +% \end{table} +% +% 浣跨敤绀轰緥濡備笅銆� +% \begin{latexexample} +% \begin{proof} +% 璇佹槑鎴戞槸鎴� +% \end{proof} +% \end{latexexample} +% 鏅€氱幆澧冦€� +% \begin{latexexample} +% \begin{definition}[浠栦汉] +% 瀹氫箟浠栦汉鍗冲湴鐙� +% \end{definition} +% \end{latexexample} +% % % \subsubsection{浠g爜} % \changes{v0.13}{2021/12/13}{鎻愪緵绠€鍖栫殑琛屽唴浠g爜鐜銆倉 @@ -1055,7 +1139,7 @@ through XeTeX. % \usepackage{listings} % \end{latexexample} % -% \pkg{listings} 瀹忓寘\scite{listings}鎻愪緵浜� \env{lstlisting} 鐜锛屽彲浠ョ敓鎴愪唬鐮佸潡銆傚€煎緱娉ㄦ剰鐨勬槸杩欎釜鐜涓殑缂╄繘绌烘牸浼氬瀹炶緭鍑恒€� +% \pkg{listings} 瀹忓寘\scite{listings}鎻愪緵浜� \env{lstlisting} 鐜锛屽彲浠ョ敓鎴愪唬鐮佸潡锛屾彁渚涜娉曢珮浜姛鑳斤紝浼氬瀹炶緭鍑虹缉杩涚┖鏍笺€備笖鍊煎緱娉ㄦ剰鐨勬槸杩欎釜鐜涓殑浠g爜涓嶄細鍦ㄨ崏绋挎ā寮忎笅鏄剧ず銆� % 濡傞渶鎸囧畾璇█锛屽彲浠ヤ娇鐢� |language| 閫夐」銆傚闇€鑷畾涔夊叧閿瓧锛屽彲浠ヤ娇鐢� |morekeywords| 閫夐」銆傝繖涓€瀹忓寘涔熸彁渚涗簡涓烘煇绉嶆牱寮忓崟鐙竴绉嶇幆澧冪殑鏂规硶锛岃瑙佸叾鎵嬪唽锛屾澶勪粎灞曠ず涓€涓渶绠€鍖栫殑渚嬪瓙锛� % \begin{latexexample}[emph={[1]lstlisting},emph={[2]language},morekeywords={print}] % \begin{lstlisting}[language=python] @@ -1097,54 +1181,6 @@ through XeTeX. % columns = fixed]| % \end{latexexample} % -% -% \subsubsection{鏁板} -% -% 绗﹀彿琛ㄥ彲浠ュ弬鑰僜url{https://www.caam.rice.edu/~heinken/latex/symbols.pdf}銆傚崟浣嶈鍙傝€僜pkg{siunitx}銆俓pkg{siunitx}鏄竴涓洿鏂伴绻佺殑鍖咃紝鍙兘浼氬紩鍙戝吋瀹规€ч棶棰樸€� -% -% 琛屽唴鍏紡褰㈠|$\mathrm{e}^{(a+2b)x}$| -% -% 甯︽湁缂栧彿鐨勮闂村叕寮廫env{equation} -% \begin{latexexample}[emph={[1]equation}] -% \begin{equation}\label{eq:myeqlabel} -% \pi -% \end{equation} -% \end{latexexample} -% -% 濡備笉闇€瑕佺紪鍙凤紝鍙互鐢� \env{equation*} 鎴栬€� |\[|\meta{鍏紡}|\]|锛岃涓嶈浣跨敤鍙兘寮曞彂闂鐨� |$$|\meta{鍏紡}|$$|\footnote{\url{https://tex.stackexchange.com/questions/503/why-is-preferable-to}}銆� -% -% 鏈ā鏉夸篃鎻愪緵浜嗕竴绯诲垪鐨勬暟瀛︾幆澧冦€� -% 鍏ㄩ儴棰勫畾涔夌殑鏁板鐜濡傝〃~\ref{tab:mathenv} 鎵€绀恒€傚叾涓瘉鏄庣幆澧冭緝涓虹壒娈婏紝浼氬湪缁撳熬娣诲姞璇佹瘯绗﹀彿锛圽mdwhtsquare锛夈€� -% -% \begin{table}[htbp] -% \centering -% \caption{鏁板鐜} -% \label{tab:mathenv} -% \begin{tabular}{cc|cc} -% \toprule -% \bf 鏍囩 & \bf 鍚嶇О & \bf 鏍囩 & \bf 鍚嶇О \\ -% \midrule -% axiom & 鍏悊 & lemma & 寮曠悊 \\ -% corollary & 鎺ㄨ & proof & 璇佹槑 \\ -% definition & 瀹氫箟 & theorem & 瀹氱悊 \\ -% example & 渚� & & \\ -% \bottomrule -% \end{tabular} -% \end{table} -% -% 浣跨敤绀轰緥濡備笅銆� -% \begin{latexexample} -% \begin{proof} -% 璇佹槑鎴戞槸鎴� -% \end{proof} -% \end{latexexample} -% 鏅€氱幆澧冦€� -% \begin{latexexample} -% \begin{definition}[浠栦汉] -% 瀹氫箟浠栦汉鍗冲湴鐙� -% \end{definition} -% \end{latexexample} -% % % \subsubsection{寮曠敤} % @@ -1162,115 +1198,6 @@ through XeTeX. % \end{syntax} % 瓒呴摼鎺ャ€俓tn{href} 浼氬皢鐗瑰畾瀛楃鏄剧ず涓哄彲鐐瑰嚮鐨勮秴閾炬帴锛孿tn{url} 浼氳緭鍑哄彲鐐瑰嚮鐨勯摼鎺ュ師鏂囥€� % \end{function} -% -% -% \subsection{鐗规畩椤甸潰} -% -% 鏈ā鏉胯繕鎻愪緵涓€绯诲垪鍛戒护涓庣幆澧冪敤浜庣敓鎴愭墍闇€鐨勭壒娈婇〉闈€€� -% -% \subsubsection{灏侀潰} -% -% \begin{function}{\maketitle} -% 鐢ㄤ簬鐢熸垚灏侀潰銆� -% 鏈鐢熶粎浼氱敓鎴愪腑鏂囧皝闈紱鐮旂┒鐢熶細鐢熸垚涓嫳鏂囧皝闈€€� -% 濡傛灉閫夋嫨浜� \opt{nlcover}锛屼粎浼氱敓鎴愮爺绌剁敓鐨勫浗瀹跺浘涔﹂灏侀潰鍜屽師鍒涙€у0鏄庨〉銆� -% \end{function} -% -% 灏侀潰涓牎寰藉強鏍″悕鐨勭粯鍒朵緷璧� \pkg{tikz} 瀹忓寘锛岃€楁椂杈冮暱銆傚湪鍚敤鑽夌ǹ妯″紡鍚庡皝闈㈢粯鍒跺皢琚鐢ㄤ互鎻愬崌缂栬瘧閫熷害銆� -% -% -% \subsubsection{鎽樿椤祡 -% \changes{v0.11}{2021/10/01}{绠€鍖栦簡鎽樿鐨勭紪鍐欐柟寮忋€倉 -% -% \begin{function}{abstract,abstract*} -% 鎽樿銆傚甫鏄熷彿鐨勪細鐢熸垚鑻辨枃鎽樿銆� -% \end{function} -% -% \begin{latexexample}[emph={[1]abstract,abstract*}] -% \begin{abstract} -% 鎴戠殑涓枃鎽樿 -% \end{abstract} -% -% \begin{abstract*} -% Abstract in English -% \end{abstract*} -% \end{latexexample} -% -% -% \subsubsection{鍓嶈█椤祡 -% -% \begin{function}{preface} -% 浣跨敤 \env{preface} 鐜瀹氫箟銆� -% \end{function} -% -% \begin{latexexample}[emph={[1]preface,flushright}] -% \begin{preface} -% 鎴戠殑鍓嶈█ -% \vspace{1cm} -% \begin{flushright} -% 鎴戠殑鍚嶅瓧\\ -% 鏃堕棿鍦扮偣 -% \end{flushright} -% \end{preface} -% \end{latexexample} -% -% -% \subsubsection{鐩綍椤祡 -% -% \begin{function}{\tableofcontents,\listoffigures,\listoftables} -% 鍒嗗埆鐢熸垚鐩綍\footnote{涓€璇村簲璇ヤ娇鐢ㄢ€滅洰娆♀€濊繖涓€绉板懠銆倉銆佸浘鐗囨竻鍗曞拰琛ㄦ牸娓呭崟銆� -% \end{function} -% -% -% \subsubsection{鑷磋阿椤祡 -% -% \begin{function}{acknowledgement} -% 鍚屽墠瑷€锛屼娇鐢� \env{acknowledgement} 鐜銆� -% \end{function} -% -% \begin{latexexample}[emph={[1]acknowledgement}] -% \begin{acknowledgement} -% 鎰熻阿NJU LUG -% \end{acknowledgement} -% \end{latexexample} -% -% -% \subsubsection{闄勫綍椤祡 -% -% \begin{function}{\appendix} -% 闄勫綍鏀惧湪鏈懡浠ゅ悗锛屼互鑻辨枃瀛楁瘝杩涜缂栧彿锛岀紪鍐欐柟寮忓悓姝f枃 -% \end{function} -% -% -% \subsubsection{鎴愭灉鍒楄〃} -% -% \begin{function}[added=2021-09-29,updated=2021-12-20]{\njupaperlist} -% \begin{syntax} -% \tn{njupaperlist}\oarg{鏍囬}\marg{鏂囩尞} -% \end{syntax} -% 鎴愭灉鍒楄〃锛岄粯璁ゆ爣棰樹负鍙戣〃鏂囩珷鐩綍銆俓Arg{鏂囩尞} 鐨勫~鍐欐柟寮忓悓 \tn{cite}锛屽涓枃鐚渶瑕佷娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿闅斿紑銆� -% \end{function} -% -% 涓轰簡渚夸簬璇嗗埆锛屾垚鏋滃垪琛ㄤ腑榛樿瀵瑰彂琛ㄥ勾浠借繘琛屽姞绮楀鐞嗐€傝€屽浣滆€呭鍚嶇殑澶勭悊杈冧负澶嶆潅銆傚埄鐢� \pkg{biblatex} 鐨勬暟鎹敞瑙f満鍒跺彲浠ュ疄鐜板鐗瑰畾鏂囩尞淇℃伅鐨勬牱寮忎慨鏀筡footnote{\url{https://blog.csdn.net/xenonhu/article/details/120853247}}锛屽湪姝ゅ彲浠ョ敤鏉ュ疄鐜版寚瀹氫綔鑰呭鍚嶇殑绐佸嚭銆傜粡杩囨敞瑙e悗鐨勪竴鍒欏弬鑰冩枃鐚潯鐩涓嬫墍绀猴細 -% \begin{latexexample}[emph={[1]@inproceedings},emph={[2]author}] -% @inproceedings{Nemec1997-209-214, -% title = {Force control of redundant robots}, -% author = {B Nemec and Zhao, Mou Mou}, -% author+an = {2=thesisauthor}, -% booktitle = {Processings of Symposium on Robot Control}, -% shortbooktitle = {(PSRC)}, -% pages = {209-214}, -% country = {Nantes France}, -% year = {1997} -% } -% \end{latexexample} -% 鍏朵腑 |author+an| 鎻愪緵浜嗘敞瑙g殑鏍囪锛屾牸寮忎负 \meta{搴忓彿}|=|\meta{鏍囩}锛屼互涓婃潯鐩腑鍗虫槸灏嗙浜屽悕浣滆€呭姞鍏ヤ簡鎸囧畾璁烘枃浣滆€呯殑娉ㄨВ銆俓tn{njupaperlist} 浼氳瘑鍒� |thesisauthor| 鏍囩锛屼负鍏舵寚浠g殑浣滆€呭鍚嶈繘琛屽姞绮椾笅鍒掔嚎澶勭悊銆� -% -% 闄ゆ墜鍔ㄨ繘琛屾爣璁颁互澶栵紝浠ヤ笅涔熸彁渚涗竴绉嶈嚜鍔ㄥ寲澶勭悊鍔炴硶銆備笅杞� \href{https://github.com/hushidong/biblatex-map}{bibmap} 鍏ㄩ儴鏂囦欢鍚庯紝淇敼涓荤洰褰曚笅鐨� \file{bibmapaddauthoran.py} 涓� |fieldsource| 涓洪渶瑕佸尮閰嶇殑濮撳悕锛屽皢闇€瑕佽繘琛屾爣璁扮殑 \file{.bib} 鏂囦欢鎷疯礉鑷虫湰鐩綍锛堟澶勪娇鐢� \file{test.bib} 杩涜绀鸿寖锛夛紝杩愯浠ヤ笅鍛戒护鐢熸垚鐨勫弬鑰冩枃鐚暟鎹簮鍗冲彲琚垚鏋滃垪琛ㄨ瘑鍒姞绮椼€� -% -% \begin{shellexample}[morekeywords={python}] -% python bibmap.py test.bib -m bibmapaddauthoran.py -% \end{shellexample} % % % \subsection{鍙傝€冩枃鐚畗 @@ -1317,7 +1244,6 @@ through XeTeX. % % % 鍙互鍙傝€冨涓嬭寖渚嬭繘琛屽弬鑰冩枃鐚缃€� -% % \begin{latexexample}[moretexcs={\njusetup},emph={[2]bib}] % \njusetup { % bib = { @@ -1396,6 +1322,126 @@ through XeTeX. % \href{https://www.zotero.org/}{Zotero}鏄竴娆惧厤璐圭殑鏂囩尞绠$悊杞欢锛屾敮鎸佹墍鏈夋闈㈠钩鍙般€� % % 鍦ㄤ繚鎸� Zotero 绋嬪簭杩愯鐨勬儏鍐典笅锛岀偣鍑绘祻瑙堝櫒宸ュ叿鏍忕殑 Zotero Connector 鎻掍欢鍗冲彲鑷姩浠庣綉椤垫姄鍙栧弬鑰冩枃浠朵俊鎭€俍otero 鍙互閫氳繃\href{https://github.com/l0o0/jasminum}{jasminum鎻掍欢}鏀寔涓枃鍙傝€冩枃鐚殑璇嗗埆銆傚湪閫変腑甯屾湜浣跨敤鐨勬枃鐚悗鍙抽敭瀵煎嚭鏂囩尞鏉$洰鍗冲彲鐢熸垚 \file{.bib} 鏂囦欢銆� +% +% +% \subsection{鐗规畩椤甸潰} +% +% 鏈ā鏉夸篃棰勫畾涔変簡涓€绯诲垪鐢ㄤ簬鐢熸垚鎵€闇€鐨勭壒娈婇〉闈㈢殑鍛戒护涓庣幆澧冦€� +% +% +% \subsubsection{灏侀潰} +% +% \begin{function}{\maketitle} +% 鐢ㄤ簬鐢熸垚灏侀潰銆� +% 鏈鐢熶粎浼氱敓鎴愪腑鏂囧皝闈紱鐮旂┒鐢熶細鐢熸垚涓嫳鏂囧皝闈€€� +% 濡傛灉閫夋嫨浜� \opt{nlcover}锛屼粎浼氱敓鎴愮爺绌剁敓鐨勫浗瀹跺浘涔﹂灏侀潰鍜屽師鍒涙€у0鏄庨〉銆� +% \end{function} +% +% 灏侀潰涓牎寰藉強鏍″悕鐨勭粯鍒朵緷璧� \pkg{tikz} 瀹忓寘锛岃€楁椂杈冮暱銆傚湪鍚敤鑽夌ǹ妯″紡鍚庡皝闈㈢粯鍒跺皢琚鐢ㄤ互鎻愬崌缂栬瘧閫熷害銆� +% +% +% \subsubsection{鎽樿椤祡 +% \changes{v0.11}{2021/10/01}{绠€鍖栦簡鎽樿鐨勭紪鍐欐柟寮忋€倉 +% +% \begin{function}{abstract,abstract*} +% 鎽樿銆傚甫鏄熷彿鐨勪細鐢熸垚鑻辨枃鎽樿銆� +% \end{function} +% +% \begin{latexexample}[emph={[1]abstract,abstract*}] +% \begin{abstract} +% 鎴戠殑涓枃鎽樿 +% \end{abstract} +% +% \begin{abstract*} +% Abstract in English +% \end{abstract*} +% \end{latexexample} +% +% +% \subsubsection{鍓嶈█椤祡 +% +% \begin{function}{preface} +% 浣跨敤 \env{preface} 鐜瀹氫箟銆� +% \end{function} +% +% \begin{latexexample}[emph={[1]preface,flushright}] +% \begin{preface} +% 鎴戠殑鍓嶈█ +% \vspace{1cm} +% \begin{flushright} +% 鎴戠殑鍚嶅瓧\\ +% 鏃堕棿鍦扮偣 +% \end{flushright} +% \end{preface} +% \end{latexexample} +% +% +% \subsubsection{鐩綍椤祡 +% +% \begin{function}{\tableofcontents,\listoffigures,\listoftables} +% 鍒嗗埆鐢熸垚鐩綍銆佸浘鐗囩洰褰曞拰琛ㄦ牸鐩綍銆� +% \end{function} +% +% 鐩綍椤电殑鏍囬鍚嶇О涓€鑸棤闇€淇敼銆傜敤鎴峰彲浠ラ€夋嫨浣跨敤 \pkg{ctex} 瀹忛泦鎻愪緵鐨� \tn{ctexset} 鍛戒护杩涜鑷畾涔夈€� +% \begin{latexexample}[moretexcs={\ctexset},emph={[1]contentsname,listfigurename,listtablename}] +% \ctexset{ +% contentsname = { 鐩甛hspace{2em}娆� }, +% listfigurename = { 鎻掑浘娓呭崟 }, +% listtablename = { 琛ㄦ牸娓呭崟 } +% } +% \end{latexexample} +% 瀹為檯涓婏紝鏍规嵁銆婂浣嶈鏂囩紪鍐欒鍒欍€嬪浗瀹舵爣鍑哱scite{gb-t-7713.1-2006}锛屽敖绠♀€滅洰褰曗€濊繖涓€璇存硶宸叉祦浼犵敋骞匡紝浣嗗浣嶈鏂囦腑鐞嗗簲浣跨敤鈥滅洰娆♀€濊繖涓€鍚嶇О鏉ユ寚浠g瘒鐩殑鍒楄〃銆� +% +% +% \subsubsection{鑷磋阿椤祡 +% +% \begin{function}{acknowledgement} +% 鍚屽墠瑷€锛屼娇鐢� \env{acknowledgement} 鐜銆� +% \end{function} +% +% \begin{latexexample}[emph={[1]acknowledgement}] +% \begin{acknowledgement} +% 鎰熻阿NJU LUG +% \end{acknowledgement} +% \end{latexexample} +% +% +% \subsubsection{闄勫綍椤祡 +% +% \begin{function}{\appendix} +% 闄勫綍鏀惧湪鏈懡浠ゅ悗锛屼互鑻辨枃瀛楁瘝杩涜缂栧彿锛岀紪鍐欐柟寮忓悓姝f枃 +% \end{function} +% +% +% \subsubsection{鎴愭灉鍒楄〃} +% +% \begin{function}[added=2021-09-29,updated=2021-12-20]{\njupaperlist} +% \begin{syntax} +% \tn{njupaperlist}\oarg{鏍囬}\marg{鏂囩尞} +% \end{syntax} +% 鎴愭灉鍒楄〃锛岄粯璁ゆ爣棰樹负鍙戣〃鏂囩珷鐩綍銆俓Arg{鏂囩尞} 鐨勫~鍐欐柟寮忓悓 \tn{cite}锛屽涓枃鐚渶瑕佷娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿闅斿紑銆� +% \end{function} +% +% 涓轰簡渚夸簬璇嗗埆锛屾垚鏋滃垪琛ㄤ腑榛樿瀵瑰彂琛ㄥ勾浠借繘琛屽姞绮楀鐞嗐€傝€屽浣滆€呭鍚嶇殑澶勭悊杈冧负澶嶆潅銆傚埄鐢� \pkg{biblatex} 鐨勬暟鎹敞瑙f満鍒跺彲浠ュ疄鐜板鐗瑰畾鏂囩尞淇℃伅鐨勬牱寮忎慨鏀筡footnote{\url{https://blog.csdn.net/xenonhu/article/details/120853247}}锛屽湪姝ゅ彲浠ョ敤鏉ュ疄鐜版寚瀹氫綔鑰呭鍚嶇殑绐佸嚭銆傜粡杩囨敞瑙e悗鐨勪竴鍒欏弬鑰冩枃鐚潯鐩涓嬫墍绀猴細 +% \begin{latexexample}[emph={[1]@inproceedings},emph={[2]author}] +% @inproceedings{Nemec1997-209-214, +% title = {Force control of redundant robots}, +% author = {B Nemec and Zhao, Mou Mou}, +% author+an = {2=thesisauthor}, +% booktitle = {Processings of Symposium on Robot Control}, +% shortbooktitle = {(PSRC)}, +% pages = {209-214}, +% country = {Nantes France}, +% year = {1997} +% } +% \end{latexexample} +% 鍏朵腑 |author+an| 鎻愪緵浜嗘敞瑙g殑鏍囪锛屾牸寮忎负 \meta{搴忓彿}|=|\meta{鏍囩}锛屼互涓婃潯鐩腑鍗虫槸灏嗙浜屽悕浣滆€呭姞鍏ヤ簡鎸囧畾璁烘枃浣滆€呯殑娉ㄨВ銆俓tn{njupaperlist} 浼氳瘑鍒� |thesisauthor| 鏍囩锛屼负鍏舵寚浠g殑浣滆€呭鍚嶈繘琛屽姞绮椾笅鍒掔嚎澶勭悊銆� +% +% 闄ゆ墜鍔ㄨ繘琛屾爣璁颁互澶栵紝浠ヤ笅涔熸彁渚涗竴绉嶈嚜鍔ㄥ寲澶勭悊鍔炴硶銆備笅杞� \href{https://github.com/hushidong/biblatex-map}{bibmap} 鍏ㄩ儴鏂囦欢鍚庯紝淇敼涓荤洰褰曚笅鐨� \file{bibmapaddauthoran.py} 涓� |fieldsource| 涓洪渶瑕佸尮閰嶇殑濮撳悕锛屽皢闇€瑕佽繘琛屾爣璁扮殑 \file{.bib} 鏂囦欢鎷疯礉鑷虫湰鐩綍锛堟澶勪娇鐢� \file{test.bib} 杩涜绀鸿寖锛夛紝杩愯浠ヤ笅鍛戒护鐢熸垚鐨勫弬鑰冩枃鐚暟鎹簮鍗冲彲琚垚鏋滃垪琛ㄨ瘑鍒姞绮椼€� +% +% \begin{shellexample}[morekeywords={python}] +% python bibmap.py test.bib -m bibmapaddauthoran.py +% \end{shellexample} % % % \subsection{瑙嗚璇嗗埆绯荤粺} @@ -1443,6 +1489,11 @@ through XeTeX. % % \subsection{鏍囧噯銆佽鑼儅 % +% \bibitem{gb-t-7713.1-2006} +% 鍏ㄥ浗淇℃伅涓庢枃鐚爣鍑嗗寲鎶€鏈鍛樹細. +% \newblock \textit{瀛︿綅璁烘枃缂栧啓瑙勫垯: GB/T 7713.1--2006} [S]. +% \newblock 鍖椾含: 涓浗鏍囧噯鍑虹増绀�, 2006 +% % \bibitem{gb-t-7714-2015} % 鍏ㄥ浗淇℃伅涓庢枃鐚爣鍑嗗寲鎶€鏈鍛樹細. % \newblock \textit{淇℃伅涓庢枃鐚甛quad 鍙傝€冩枃鐚憲褰曡鍒�: GB/T 7714--2015} [S]. @@ -1821,8 +1872,10 @@ through XeTeX. % \begin{macrocode} \cs_new_protected:Npn \@@_put_inempty_seg:nnn #1#2#3 { - \tl_set:Nx \l_@@_tmp_tl { \tl_range:Nnn { #1 } { #2 } { #2 + #3 - 1 } } - \tl_if_empty:NF \l_@@_tmp_tl { \clist_put_right:NV \l_@@_tmp_clist { \l_@@_tmp_tl } } + \tl_set:Nx \l_@@_tmp_tl + { \tl_range:Nnn { #1 } { #2 } { #2 + #3 - 1 } } + \tl_if_empty:NF \l_@@_tmp_tl + { \clist_put_right:NV \l_@@_tmp_clist { \l_@@_tmp_tl } } } % \end{macrocode} % \end{macro} @@ -1928,42 +1981,60 @@ through XeTeX. % \end{macrocode} % \end{macro} % +% \begin{macro}{\njuchapter} +% 鍚湁鐩綍鍜� PDF 鏍囩鐨勬棤缂栧彿绔犮€� +% \begin{macrocode} +\NewDocumentCommand \njuchapter { m } + { + \chapter*{#1} + \addcontentsline { toc } { chapter } { \c_@@_sec_format_tl #1 } + \@mkboth{#1}{#1} + } +% \end{macrocode} +% \end{macro} +% % % \subsection{妯℃澘閫夐」} % \changes{v0.11}{2021/11/15}{杩涜浜嗘晥鐜囦紭鍖栥€倉 % -% 瀛︿綅淇℃伅鐨勮缃� % \begin{macrocode} \keys_define:nn { nju } { % \end{macrocode} % % \begin{macro}{degree} -% 瀛︿綅绫诲瀷銆� +% 瀛︿綅绫诲瀷锛岄粯璁や负鏈銆� % \begin{macrocode} degree .choices:nn = { ug, mg, mf, phd } - { \int_set_eq:NN \l_@@_info_degree_int \l_keys_choice_int + { + \int_set_eq:NN \l_@@_info_degree_int \l_keys_choice_int \tl_set:Nn \l_@@_info_degree_tl - { \clist_item:Nn \c_@@_name_degree_clist { \l_@@_info_degree_int } } + { + \clist_item:Nn \c_@@_name_degree_clist + { \l_@@_info_degree_int } + } % \end{macrocode} % 杩涜瀛︿綅鐨勫垽鏂€� % \begin{macrocode} \int_compare:nTF { \l_@@_info_degree_int == 1 } { \tl_set:Nn \l_@@_info_diploma_tl { ug } } - { \tl_set:Nn \l_@@_info_diploma_tl { g } } }, + { \tl_set:Nn \l_@@_info_diploma_tl { g } } + }, degree .initial:n = ug, % \end{macrocode} % \end{macro} % % \begin{macro}{type} -% 璁烘枃绫诲瀷銆俓cs{l_keys_choice_int} 闇€瑕佽灞曞紑浠ヨ幏鍙栨纭殑搴忓彿銆� +% 璁烘枃绫诲瀷锛岄粯璁や负姣曚笟璁烘枃銆� % \begin{macrocode} type .choices:nn = { thesis, design } - { \int_set_eq:NN \l_@@_info_type_int \l_keys_choice_int + { + \int_set_eq:NN \l_@@_info_type_int \l_keys_choice_int \tl_set:Nn \l_@@_info_type_tl { \clist_item:Nn \c_@@_name_type_clist { \l_@@_info_type_int } } \tl_put_left:Nn \l_@@_info_type_tl - { \tl_use:c { c_@@_name_ \l_@@_info_diploma_tl _tl } } }, + { \tl_use:c { c_@@_name_ \l_@@_info_diploma_tl _tl } } + }, type .initial:n = thesis, % \end{macrocode} % \end{macro} @@ -1995,15 +2066,15 @@ through XeTeX. % \end{macro} % % \begin{macro}{latin-font,cjk-font} -% \changes{v0.13}{2021/12/12}{绠€鍖栧瓧浣撻€夐」鍚嶇О銆倉 -% 瀹氫箟瀛椾綋閫夐」 +% \changes{v0.14}{2021/12/12}{绠€鍖栧瓧浣撻€夐」鍚嶇О銆倉 +% 瀹氫箟瀛椾綋閫夐」銆� % \begin{macrocode} latin-font .choices:nn = - { gyre, mac, win, none } - { \tl_set_eq:NN \g_@@_latin_font_tl \l_keys_choice_tl }, + { gyre, mac, win, none } + { \tl_set_eq:NN \g_@@_latin_font_tl \l_keys_choice_tl }, cjk-font .choices:nn = - { fandol, founder, mac, noto, source, win, none } - { \tl_set_eq:NN \g_@@_cjk_font_tl \l_keys_choice_tl }, + { fandol, founder, mac, noto, source, win, none } + { \tl_set_eq:NN \g_@@_cjk_font_tl \l_keys_choice_tl }, } % \end{macrocode} % \end{macro} @@ -2042,12 +2113,14 @@ through XeTeX. % \begin{macrocode} \clist_map_inline:nn { - { id } { 瀛﹀彿 }, - { orig_date } { 鏃ユ湡 }, - { paperlist } { 鍙戣〃鏂囩珷鐩綍 }, - { pdf_creator } { LaTeX~ with~ njuthesis~ class }, - { supv_ii } { 绗簩瀵煎笀 }, - { supv_ttl } { 鑱岀О } + { acknowledgement } { 鑷碶hspace{2em}璋� }, + { id } { 瀛﹀彿 }, + { orig_date } { 鏃ユ湡 }, + { paperlist } { 鍙戣〃鏂囩珷鐩綍 }, + { pdf_creator } { LaTeX~ with~ njuthesis~ class }, + { preface } { 鍓峔hspace{2em}瑷€ }, + { supv_ii } { 绗簩瀵煎笀 }, + { supv_ttl } { 鑱岀О } } { \@@_define_name:nn #1 } % \end{macrocode} @@ -2206,6 +2279,7 @@ through XeTeX. { \@@_define_name:nnn #1 } % \end{macrocode} % +% % \subsection{涓汉淇℃伅} % \changes{v0.11}{2021/10/01}{灏嗕釜浜轰俊鎭彉閲忓悕鏀逛负灏忓啓瀛楁瘝鍔犺繛瀛楃鐨勫舰寮忋€倉 % @@ -2279,6 +2353,7 @@ through XeTeX. % 鎻愪氦鏃ユ湡 % \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, % \end{macrocode} % \end{macro} @@ -2366,14 +2441,14 @@ through XeTeX. % \begin{macrocode} \clist_map_inline:nn { - { no-math } { fontspec }, - { perpage } { footmisc }, - { amsmath, thmmarks } { ntheorem }, - { hyphens } { url }, + { no-math } { fontspec }, + { perpage } { footmisc }, + { amsmath, thmmarks } { ntheorem }, + { hyphens } { url }, { warnings-off={ mathtools-colon, mathtools-overbracket } } { unicode-math }, { capitalise, nameinlink, noabbrev } - { cleveref } + { cleveref } } { \PassOptionsToPackage #1 } % \end{macrocode} @@ -2383,13 +2458,13 @@ through XeTeX. \LoadClass { ctexbook } [ 2018/04/01 ] % \end{macrocode} % +% \changes{v0.14}{2021/12/21}{绉婚櫎鍐呯疆鐨� \pkg{hologo}銆倉 % 杞藉叆鍚勭瀹忓寘銆� % \begin{macrocode} \RequirePackage { geometry, fancyhdr, - hologo, setspace, % \end{macrocode} % \pkg{emptypage} 鐢ㄤ簬娓呴櫎绌虹櫧椤电殑椤电爜銆� @@ -2410,16 +2485,14 @@ through XeTeX. unicode-math, ntheorem, % \end{macrocode} +% \changes{v0.14}{2021/12/21}{绉婚櫎鍐呯疆鐨� \pkg{multirow}銆乗pkg{subcaption} 鍜� \pkg{wrapfig}銆倉 % 鍥剧墖涓庤〃鏍笺€� % \begin{macrocode} booktabs, caption, graphicx, - multirow, - subcaption, - wrapfig, % \end{macrocode} -% 鍒楄〃鐜 +% 鍒楄〃鐜銆� % \begin{macrocode} enumitem, % \end{macrocode} @@ -2484,7 +2557,7 @@ through XeTeX. % % \subsection{瀛椾綋璁剧疆} % -% \pkg{fontspec} 宸插湪 C\hologo{TeX} 濂椾欢涓寘鍚紝鏃犻渶鍙﹀杞藉叆銆� +% \pkg{fontspec} 宸插湪 C\hologo{TeX} 濂椾欢涓寘鍚紝鏃犻渶鍙﹁杞藉叆銆� % % \subsubsection{鎿嶄綔绯荤粺妫€娴媫 % @@ -2583,15 +2656,14 @@ through XeTeX. % \begin{macrocode} \cs_new_protected:Npn \@@_load_cjk_font_win: { - \setCJKmainfont{SimSun}[ - AutoFakeBold=2.17, - ItalicFont=KaiTi] - \setCJKsansfont{SimHei} - \setCJKmonofont{FangSong} - \setCJKfamilyfont{zhsong}{SimSun}[AutoFakeBold=2.17] - \setCJKfamilyfont{zhhei}{SimHei} - \setCJKfamilyfont{zhfs}{FangSong} - \setCJKfamilyfont{zhkai}{KaiTi}[AutoFakeBold=2.17] + \setCJKmainfont { SimSun } + [ AutoFakeBold = 2.17, ItalicFont = KaiTi ] + \setCJKsansfont { SimHei } [ AutoFakeBold = 2.17 ] + \setCJKmonofont { FangSong } [ AutoFakeBold = 2.17 ] + \setCJKfamilyfont { zhsong } { SimSun } [ AutoFakeBold = 2.17 ] + \setCJKfamilyfont { zhhei } { SimHei } [ AutoFakeBold = 2.17 ] + \setCJKfamilyfont { zhfs } { FangSong } [ AutoFakeBold = 2.17 ] + \setCJKfamilyfont { zhkai } { KaiTi } [ AutoFakeBold = 2.17 ] } % \end{macrocode} % \end{macro} @@ -2603,8 +2675,10 @@ through XeTeX. % \begin{macrocode} \cs_new_protected:Npn \@@_load_cjk_font_mac: { - % 绉婚櫎 does not contain script "CJK" 璀﹀憡 - \msg_redirect_name:nnn {fontspec} {no-script} {info} +% \end{macrocode} +% 绉婚櫎 does not contain script "CJK" 璀﹀憡銆� +% \begin{macrocode} + \msg_redirect_name:nnn { fontspec } { no-script } { info } \setCJKmainfont{Songti~SC~Light}[ BoldFont=Songti~SC~Bold, ItalicFont=Kaiti~SC, @@ -2626,7 +2700,7 @@ through XeTeX. \cs_new_protected:Npn \@@_load_cjk_font_fandol: { % 绉婚櫎 does not contain script "CJK" 璀﹀憡 - \msg_redirect_name:nnn {fontspec} {no-script} {info} + \msg_redirect_name:nnn {fontspec} {no-script} {info} \setCJKmainfont{FandolSong-Regular}[ Extension=.otf, BoldFont=FandolSong-Bold, @@ -2663,9 +2737,9 @@ through XeTeX. % \begin{macrocode} \defaultCJKfontfeatures{JFM={zh_CN/{quanjiao,fzpr}}} } - \setCJKmainfont { FZShuSong-Z01 } + \setCJKmainfont { FZShuSong-Z01 } [ BoldFont = FZXiaoBiaoSong-B05, ItalicFont = FZKai-Z03 ] - \setCJKsansfont { FZXiHeiI-Z08 } [ BoldFont = FZHei-B01 ] + \setCJKsansfont { FZXiHeiI-Z08 } [ BoldFont = FZHei-B01 ] \setCJKmonofont { FZFangSong-Z02 } \setCJKfamilyfont { zhsong } { FZShuSong-Z01 } [ BoldFont = FZXiaoBiaoSong-B05 ] @@ -2713,7 +2787,7 @@ through XeTeX. % \end{macro} % % \begin{macro}{\@@_load_cjk_font_source:} -% \changes{v0.13}{2021/12/20}{澧炲姞 Adobe Source Han 浣滀负鎬濇簮瀛椾綋銆倉 +% \changes{v0.14}{2021/12/20}{澧炲姞 Adobe Source Han 浣滀负鎬濇簮瀛椾綋銆倉 % Source Han 鎬濇簮瀛椾綋銆� % \begin{macrocode} \cs_new_protected:Npn \@@_load_cjk_font_source: @@ -2909,27 +2983,15 @@ through XeTeX. % \end{macrocode} % \end{macro} % -% \begin{macro}{\njuchapter} -% 鍚湁鐩綍鍜� PDF 鏍囩鐨勬棤缂栧彿绔犮€� -% \begin{macrocode} -\NewDocumentCommand \njuchapter { m } - { - \chapter*{#1} - \addcontentsline { toc } { chapter } { \c_@@_sec_format_tl #1 } - \@mkboth{#1}{#1} - } -% \end{macrocode} -% \end{macro} -% % \begin{macrocode} \ctexset { % \end{macrocode} -% 璁剧疆鐩綍鏍囬鍚嶇О銆� +% 璁剧疆鐩綍鏍囬榛樿鍚嶇О銆� % \begin{macrocode} - contentsname = { 鐩甛hspace{2em}褰晑, - listfigurename = { 鎻掑浘娓呭崟 }, - listtablename = { 琛ㄦ牸娓呭崟 }, + contentsname = { 鐩甛hspace{2em}褰� }, + listfigurename = { 鎻掑浘鐩綍 }, + listtablename = { 琛ㄦ牸鐩綍 }, % \end{macrocode} % 璁剧疆鐩綍涓珷鏍囬鐨勬牱寮忋€� % \begin{macrocode} @@ -2973,17 +3035,12 @@ through XeTeX. % % \subsection{鍙傝€冩枃鐚畗 % -% 璁剧疆鍙傝€冩枃鐚悕绉般€� -% \begin{macrocode} -\ctexset{ bibname = {鍙傝€冩枃鐚畗 } -% \end{macrocode} -% % \begin{macrocode} \keys_define:nn { nju / bib } { % \end{macrocode} % \begin{macro}{bib/style} -% \changes{v0.13}{2021/12/19}{鎻愪緵閫夋嫨鍙傝€冩枃鐚牱寮忕殑鎺ュ彛銆倉 +% \changes{v0.14}{2021/12/19}{鎻愪緵閫夋嫨鍙傝€冩枃鐚牱寮忕殑鎺ュ彛銆倉 % 鍙傝€冩枃鐚牱寮忋€傚垎涓洪『搴忕紪鐮佸埗 \opt{numeric}锛坓b7714-2015锛夊拰钁楄€�-鍑虹増骞村埗 \opt{author-year}锛坓b7714-2015ay锛夈€� % \begin{macrocode} style .choice:, @@ -2995,6 +3052,7 @@ through XeTeX. % \end{macrocode} % \end{macro} % \begin{macro}{bib/resource} + % \changes{v0.14}{2021/12/19}{鎻愪緵鎵归噺瀵煎叆鍙傝€冩枃鐚暟鎹簮鐨勬帴鍙c€倉 % 鍙傝€冩枃鐚暟鎹簮銆� % \begin{macrocode} resource .clist_set:N = \l_@@_bib_resource_clist @@ -3011,13 +3069,14 @@ through XeTeX. % \end{macro} % % \begin{macro}{\@@_biblatex_pre_setup:} -% 杞藉叆 \pkg{biblatex} 瀹忓寘鍓嶏紝闇€瑕佺鐢ㄨ嚜琛屽畾涔夌殑 \cs{addbibresource} 鍛戒护锛屽苟灏嗕紶鍏ョ敤鎴疯缃殑閫夐」銆� +% 杞藉叆 \pkg{biblatex} 瀹忓寘鍓嶏紝闇€瑕佺鐢ㄨ嚜琛屽畾涔夌殑 \cs{addbibresource} 鍛戒护锛屽苟浼犲叆鐢ㄦ埛璁剧疆鐨勯€夐」銆� % \begin{macrocode} \cs_new_protected:Npn \@@_biblatex_pre_setup: { \cs_undefine:N \addbibresource \clist_put_right:Nn \l_@@_tmp_clist { backend = biber } \exp_args:NV \PassOptionsToPackage \l_@@_tmp_clist { biblatex } + \clist_clear:N \l_@@_tmp_clist } % \end{macrocode} % \end{macro} @@ -3046,7 +3105,11 @@ through XeTeX. \clist_map_inline:nn { abstract, issn, isbn, archivePrefix, arxivId, pmid, eprint } { \clearfield { ##1 } } - \ifentrytype{online}{}{\ifentrytype{misc}{}{\clearfield{url}}} + % \ifentrytype{online} { } + % { + % \ifentrytype{misc} { } + % \clearfield{urldate} { \clearfield{url} } + % } } } % \end{macrocode} @@ -3100,12 +3163,18 @@ through XeTeX. \cs_new_protected:Npn \@@_cref_name:n #1 { \clist_map_inline:nn { #1 } - { \crefname { ##1 } { \@@_name:n { ##1 } } { \@@_name:n { ##1 _en } } } + { + \crefname { ##1 } + { \@@_name:n { ##1 } } { \@@_name:n { ##1 _en } } + } } \cs_new_protected:Npn \@@_cref_name:N #1 { \clist_map_inline:Nn #1 - { \crefname { ##1 } { \@@_name:n { ##1 } } { \@@_name:n { ##1 _en } } } + { + \crefname { ##1 } + { \@@_name:n { ##1 } } { \@@_name:n { ##1 _en } } + } } % \end{macrocode} % \end{macro} @@ -3683,21 +3752,26 @@ through XeTeX. % \begin{macrocode} \cs_new_protected:Npn \@@_abs_info_style:n #1 { \noindent \zihao{ #1 } \kaishu } -\cs_new_protected:Npn \@@_abs_info_style_en: #1 { \zihao{ #1 } } +\cs_new_protected:Npn \@@_abs_info_style_en: #1 + { \zihao{ #1 } } % \end{macrocode} % \end{macro} % -% \begin{macro}{\@@_abs_bookmark:n} -% 鐢熸垚鎽樿鐨� PDF 涔︾銆� -% \begin{arguments} -% \item 璇█锛岀┖缃负涓枃锛寍_en| 涓鸿嫳鏂� -% \item 鍏抽敭璇嶅垎闅旂 -% \end{arguments} +% \begin{macro}{\@@_abs_bookmark:,\@@_abs_bookmark_en:} +% \changes{v0.14}{2021/12/21}{灏嗘憳瑕佹彃鍏ョ洰褰曘€倉 +% 鐢熸垚鎽樿鐨勭洰褰曟潯鐩€� % \begin{macrocode} -\cs_new_protected:Npn \@@_abs_bookmark:n #1 +\cs_new_protected:Npn \@@_abs_bookmark: + { + \phantomsection + \addcontentsline { toc } { chapter } + { \c_@@_sec_format_tl \c_@@_name_lang_tl \c_@@_name_abstract_tl } + } +\cs_new_protected:Npn \@@_abs_bookmark_en: { - \pdfbookmark [ 0 ] - { \@@_name:n { abstract #1 } } { abstract #1 } + \phantomsection + \addcontentsline { toc } { chapter } + { \c_@@_sec_format_tl \c_@@_name_abstract_en_tl } } % \end{macrocode} % \end{macro} @@ -3913,7 +3987,7 @@ through XeTeX. \NewDocumentEnvironment{abstract} { +b } { \cleardoublepage - \@@_abs_bookmark:n { } + \@@_abs_bookmark: \use:c { @@_make_abs_ \l_@@_info_diploma_tl :nn } { } { 锛� } \group_begin: \kaishu \zihao { -4 } #1 } @@ -3927,7 +4001,7 @@ through XeTeX. \NewDocumentEnvironment{abstract*} { +b } { \cleardoublepage - \@@_abs_bookmark:n { _en } + \@@_abs_bookmark_en: \use:c { @@_make_abs_ \l_@@_info_diploma_tl :nn } { _en } { :~ } \group_begin: \kaishu \zihao{ -4 } #1 } @@ -3942,20 +4016,21 @@ through XeTeX. % \begin{environment}{acknowledgement} % 鍗曠嫭鍒朵綔鐨勫墠瑷€鑷磋阿椤点€� % \begin{macrocode} -\NewDocumentEnvironment{preface} { +b } - { \njuchapter { 鍓峔hspace{2em}瑷€ } #1 } { } -\NewDocumentEnvironment{acknowledgement} { +b } - { \njuchapter { 鑷碶hspace{2em}璋� } #1 } { } +\NewDocumentEnvironment { preface } { +b } + { \njuchapter { \c_@@_name_preface_tl } #1 } { } +\NewDocumentEnvironment { acknowledgement } { +b } + { \njuchapter { \c_@@_name_acknowledgement_tl } #1 } { } % \end{macrocode} % \end{environment} % \end{environment} % % \begin{macro}{\njupaperlist} % \changes{v0.10}{2021/09/29}{鏂板浜嗘垚鏋滃垪琛ㄩ〉闈€€倉 -% \changes{v0.13}{2021/12/20}{鎴愭灉鍒楄〃涓彲绐佸嚭鎸囧畾浣滆€呭鍚嶅強骞翠唤銆倉 +% \changes{v0.14}{2021/12/20}{鎴愭灉鍒楄〃涓彲绐佸嚭鎸囧畾浣滆€呭鍚嶅強骞翠唤銆倉 % 鎴愭灉鍒楄〃銆� % \begin{macrocode} -\NewDocumentCommand\njupaperlist { O { \c_@@_name_paperlist_tl } m } +\NewDocumentCommand \njupaperlist + { O { \c_@@_name_paperlist_tl } m } { \group_begin: % \end{macrocode} diff --git a/test/test.tex b/test/test.tex index 3790276..c0782a4 100644 --- a/test/test.tex +++ b/test/test.tex @@ -56,6 +56,14 @@ % \addbibresource{test.bib} +\ctexset{ + contentsname = { 鐩甛hspace{2em}娆� }, +% listfigurename = { 鎻掑浘娓呭崟 }, +% listtablename = { 琛ㄦ牸娓呭崟 } +} + +\usepackage{hologo} +\usepackage{multirow,wrapfig,subcaption} \usepackage{listings,algorithm,algorithmic} \usepackage{siunitx,physics,chemfig} \usepackage[version=4]{mhchem} @@ -68,6 +76,7 @@ ItalicFont = *bto, BoldItalicFont = *tx, HyphenChar = None] + \lstdefinestyle{njulisting} { basewidth = 0.5 em, @@ -111,8 +120,8 @@ % \frontmatter \maketitle -\input{chapters/Abstract} \input{chapters/Preface} +\input{chapters/Abstract} \raggedbottom % \flushbottom -- GitLab