diff --git a/source/njuthesis.dtx b/source/njuthesis.dtx index 38859e45961676db08d2a661251271f68b775e0e..b3adb08eb8e9ed466462f2a81f40dbfaa9788147 100644 --- a/source/njuthesis.dtx +++ b/source/njuthesis.dtx @@ -42,7 +42,7 @@ \csname fi\endcsname %</internal> % -%<*batchfile> +%<*install> \input docstrip.tex \keepsilent \askforoverwritefalse @@ -72,7 +72,7 @@ through XeTeX. \file{\jobname.cls} {\from{\jobname.dtx}{class}} %<*internal> \usedir{source/latex/njuthesis} - \file{\jobname.ins} {\from{\jobname.dtx}{batchfile}} + \file{\jobname.ins} {\from{\jobname.dtx}{install}} %</internal> } @@ -95,7 +95,7 @@ through XeTeX. \Msg{*************************************************************} \endbatchfile -%</batchfile> +%</install> % %<*internal> \fi @@ -115,7 +115,6 @@ through XeTeX. \usepackage[firstpage=true]{background} \backgroundsetup{contents={\njuemblem[white!85!gray]{22cm}{!}},scale=1,angle=0,hshift=-4cm} \newcommand*\scite[1]{\textsuperscript{\cite{#1}}} -\setlist[1]{labelindent=0.5em} \hypersetup{pdftitle={The njuthesis class - LaTeX thesis template for Nanjing University}} \UseTblrLibrary{booktabs,siunitx,diagbox} \DefTblrTemplate{caption-tag}{default}{琛╘hspace{0.25em}\thetable} @@ -133,9 +132,9 @@ through XeTeX. xrightmargin = 3 em, escapeinside = {(*}{*)}, breaklines = true, - basicstyle = \small\ttfamily, - keywordstyle = \bfseries\color{njuviolet}, - commentstyle = \itshape\color{white!50!gray}, + basicstyle = \small\tt, + keywordstyle = \bf\color{njuviolet}, + commentstyle = \it\color{white!50!gray}, stringstyle = \color{nju-chem-red}, backgroundcolor = \color{white!95!gray} } @@ -247,14 +246,14 @@ through XeTeX. % % 鍗佸嚑骞存潵锛屽浣嶇儹蹇冩牎鍙嬪彂甯冭繃鑷繁缂栧啓鐨勬ā鏉匡紝鍦℅itHub涓婂彲鑰冪殑鍖呮嫭 % \begin{enumerate} -% \item 鏉ㄦ枃鍗氾紙\href{http://yangwenbo.com/}{@solrex}锛夌殑\href{https://github.com/solrex/njuthesis}{鍗椾含澶у瀛︿綅璁烘枃\hologo{LaTeX}妯℃澘}锛�2010锛� -% \item \href{https://github.com/fireblue}{@fireblue}鍩轰簬solrex妯℃澘鐨勭殑\href{https://github.com/fireblue/NJUThesis}{鍗椾含澶у瀛︿綅璁烘枃\hologo{LaTeX}妯℃澘}锛�2013锛� -% \item \href{https://github.com/wenhai-zheng}{@wenhai-zheng}鐨刓href{https://github.com/wenhai-zheng/NJUThesis}{NJUThesis}锛�2013锛� -% \item 鏇瑰涔愶紙\href{https://github.com/ZLCao}{@ZLCao}锛夌殑\href{https://github.com/ZLCao/NJUBachelor}{NJUBachelor}锛�2013-2016锛� +% \item 鏉ㄦ枃鍗氾紙\href{http://yangwenbo.com/}{@solrex}锛夌殑 njuthesis锛�2010 - 2018锛� \scite{wenboyang2013} +% \item \href{https://github.com/fireblue}{@fireblue} 鍩轰簬鏉ㄦ枃鍗氭ā鏉跨殑 NJUThesis锛�2013锛塡scite{fireblue2013} +% \item \href{https://github.com/wenhai-zheng}{@wenhai-zheng} 鐨� NJUThesis锛�2013锛塡scite{wenhai-zheng2013} +% \item 鏇瑰涔愶紙\href{https://github.com/ZLCao}{@ZLCao}锛夌殑 NJUBachelor锛�2013 - 2016锛塡scite{zenglecao2013} % \item 鑳℃捣鏄燂紙\href{http://haixing-hu.github.io/}{@Haixing-Hu}锛夌殑 NJU-Thesis锛�2013 - 2018锛塡scite{haixinghu2013} -% \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://github.com/njuHan}{@njuHan}鍩轰簬鑳℃捣鏄熸ā鏉跨殑\href{https://github.com/njuHan/njuthesis-nju-thesis-template/}{NJU-Thesis}锛�2018 - 2021锛� +% \item 寮犳鐝╋紙\href{https://github.com/zhangchuheng123}{@zhangchuheng123}锛夊熀浜庤儭娴锋槦妯℃澘鐨� NJUThesis锛�2016锛塡scite{chuhengzhang2016} +% \item 钂嬬値宀╋紙\href{http://ics.nju.edu.cn/~jyy/}{@jiangyy}锛夌殑 njuthesis锛�2017 - 2019锛塡scite{yanyanjiang2017} +% \item \href{https://github.com/njuHan}{@njuHan} 鍩轰簬鑳℃捣鏄熸ā鏉跨殑 NJU-Thesis锛�2018 - 2021锛� % \item 楗跺畨閫革紙\href{https://anyirao.com/}{@AnyiRao}锛夊熀浜庡紶妤氱彥妯℃澘鐨� NJU Thesis 2018锛�2018锛塡scite{anyirao2018} % \item 璧垫嚳鏅紙\href{https://fengchendian.github.io/about.html}{@FengChendian}锛夊熀浜庨ザ瀹夐€告ā鏉跨殑 NJU Thesis 2021锛�2021锛塡scite{yichenzhao2021} % \end{enumerate} @@ -627,15 +626,16 @@ through XeTeX. % % % \subsubsection{鎸囧畾瀛椾綋} +% \changes{v0.13}{2021/12/18}{浣跨敤 Adobe Source Han 鏇夸唬 Google Noto 浣滀负鎬濇簮瀛椾綋銆倉 % % 瀛︽牎璁烘枃鏍煎紡瑕佹眰浣跨敤鐨勫瓧浣撲竴鑸凡缁忛瑁呭湪鍚勪釜鎿嶄綔绯荤粺锛屾湰妯℃澘閽堝涓嶅悓骞冲彴杩涜浜嗚嚜鍔ㄦ娴嬮€傞厤锛屽彲浠ュ紑绠卞嵆鐢ㄣ€� % % 濡傛灉甯屾湜鏇存敼鏈ā鏉夸娇鐢ㄧ殑瀛椾綋锛岃濉啓浠ヤ笅涓や釜閫夐」浠ヨ鐩栨搷浣滅郴缁熸娴嬪緱鍒扮殑璁剧疆銆� % -% \begin{function}[added=2021-09-07,updated=2021-12-12]{cjk-font,latin-font} +% \begin{function}[added=2021-09-07,updated=2021-12-18]{cjk-font,latin-font} % \begin{syntax} -% cjk-font = <(win)|mac|fandol|founder|noto|none> -% latin-font = <(win)|mac|gyre|none> +% cjk-font = <win|mac|fandol|founder|source|none> +% latin-font = <win|mac|gyre|none> % \end{syntax} % 鎵嬪姩鎸囧畾瀛椾綋銆� % \end{function} @@ -657,31 +657,35 @@ through XeTeX. % \begin{talltblr}[ % caption = {涓枃瀛椾綋閰嶇疆鍒楄〃}, % label = {tab:chinesefontset}, -% note{a} = {浣跨敤 +% note{a} = {璇蜂笅杞界畝绻佹墿灞曪紙鍗� GBK 缂栫爜锛夌増鏈瑌, +% note{b} = {浣跨敤 % \href{http://www.foundertype.com/index.php/FontInfo/index/id/164}{鏂规灏忔爣瀹媫 -% 浣滀负鏂规涔﹀畫鐨勭矖浣擄紝浣跨敤 +% 浣滀负鏂规涔﹀畫鐨勭矖浣搣, +% note{c} = {浣跨敤 % \href{http://www.foundertype.com/index.php/FontInfo/index/id/131}{鏂规榛戜綋} % 浣滀负鏂规缁嗛粦涓€鐨勭矖浣搣, -% note{b} = {鎬濇簮瀛椾綋骞朵笉鍖呭惈妤蜂功鍜屼豢瀹嬶紝鑰孉dobe妤蜂綋鍜屼豢瀹嬮毦浠ョ洿鎺ヤ笅杞斤紝 -% 鍥犳浣跨敤鏂规瀛椾綋浠f浛锛涜€冭檻鍒拌幏鍙栧瓧浣撶殑闅炬槗绋嬪害锛岄噰鐢� -% \href{https://www.google.com/get/noto}{noto} 瀛椾綋琛ㄧず鎬濇簮瀛椾綋}, -% ] { cell{2}{2,4} = {njuyellow}, cell{4}{4} = {njuyellow}, colspec = {ccccc} } +% note{d} = {鑰冭檻鍒拌幏鍙栧瓧浣撶殑闅炬槗绋嬪害锛岄噰鐢� +% \href{https://mirrors.nju.edu.cn/download/Adobe%20Source%20Han}{Adobe Source Han} +% 瀛椾綋琛ㄧず鎬濇簮瀛椾綋锛岃涓嬭浇 Simplified Chinese锛堝嵆鍚庣紑鍚嶄负 SC锛夌殑鐗堟湰}, +% note{e} = {鎬濇簮瀛椾綋骞朵笉鍖呭惈妤蜂功鍜屼豢瀹嬶紝鑰� Adobe 妤蜂綋鍜屼豢瀹嬮毦浠ョ洿鎺ヤ笅杞斤紝 +% 鍥犳浣跨敤鏂规瀛椾綋浠f浛}, +% ] { cell{2}{2,4} = {white!70!njuyellow}, cell{4}{4} = {white!70!njuyellow}, colspec = {ccccc} } % \toprule -% 閰嶇疆鍚嶇О & 瀹嬩綋 & 榛戜綋 & 妤蜂功 & 浠垮畫 \\ +% 閰嶇疆鍚嶇О & 瀹嬩綋 & 榛戜綋 & 妤蜂功 & 浠垮畫 \\ % \midrule -% Windows & 涓槗瀹嬩綋 & 涓槗榛戜綋 & 涓槗妤蜂綋 & 涓槗浠垮畫 \\ -% macOS & 鍗庢枃瀹嬩綋 & 鍗庢枃榛戜綋 & 鍗庢枃妤蜂綋 & 鍗庢枃浠垮畫 \\ +% Windows & 涓槗瀹嬩綋 & 涓槗榛戜綋 & 涓槗妤蜂綋 & 涓槗浠垮畫 \\ +% macOS & 鍗庢枃瀹嬩綋 & 鍗庢枃榛戜綋 & 鍗庢枃妤蜂綋 & 鍗庢枃浠垮畫 \\ % \href{https://www.ctan.org/pkg/fandol} {Fandol} -% & Fandol瀹嬩綋 & Fandol榛戜綋 & Fandol妤蜂綋 & Fandol浠垮畫 \\ -% \href{https://www.foundertype.com} {鏂规}\TblrNote{a} -% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/151}{鏂规涔﹀畫} -% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/161}{鏂规缁嗛粦涓€} -% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/137}{鏂规妤蜂綋} -% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/128}{鏂规浠垮畫} \\ -% \href{https://github.com/adobe-fonts} {鎬濇簮}\TblrNote{b} -% & \href{https://fonts.google.com/noto/specimen/Noto+Serif+SC}{鎬濇簮瀹嬩綋} -% & \href{https://fonts.google.com/noto/specimen/Noto+Sans+SC}{鎬濇簮榛戜綋} -% & 鏂规妤蜂綋 & 鏂规浠垮畫 \\ +% & Fandol瀹嬩綋 & Fandol榛戜綋 & Fandol妤蜂綋 & Fandol浠垮畫 \\ +% \href{https://www.foundertype.com}{鏂规}\TblrNote{a} +% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/151}{鏂规涔﹀畫}\TblrNote{b} +% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/161}{鏂规缁嗛粦涓€}\TblrNote{c} +% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/137}{鏂规妤蜂綋} +% & \href{http://www.foundertype.com/index.php/FontInfo/index/id/128}{鏂规浠垮畫} \\ +% \href{https://github.com/adobe-fonts}{鎬濇簮}\TblrNote{d} +% & \href{https://mirrors.nju.edu.cn/adobe-fonts/source-han-serif/OTF/SimplifiedChinese/}{鎬濇簮瀹嬩綋} +% & \href{https://mirrors.nju.edu.cn/adobe-fonts/source-han-sans/OTF/SimplifiedChinese/}{鎬濇簮榛戜綋} +% & 鏂规妤蜂綋\TblrNote{e} & 鏂规浠垮畫 \\ % \bottomrule % \end{talltblr} % \end{table} @@ -1369,12 +1373,54 @@ through XeTeX. % % \emph{浠ヤ笅妯$増鐜板凡鍋滄鏇存柊銆倉 % +% \bibitem{wenboyang2013} +% 鏉ㄦ枃鍗�. +% \newblock \textit{鍗椾含澶у瀛︿綅璁烘枃 \hologo{LaTeX} 妯℃澘} [EB/OL]. +% \newblock (2018-06-23) +% \urlprefix\url{https://github.com/solrex/njuthesis} +% +% \bibitem{fireblue2013} +% \textsc{fireblue}. +% \newblock \textit{鍗椾含澶у瀛︿綅璁烘枃 \hologo{LaTeX} 妯℃澘} [EB/OL]. +% \newblock (2013-04-13) +% \urlprefix\url{https://github.com/fireblue/NJUThesis} +% +% \bibitem{wenhai-zheng2013} +% \textsc{wenhai-zheng}. +% \newblock \textit{鍗椾含澶у鏈姣曚笟璁烘枃 \hologo{LaTeX} 妯℃澘} [EB/OL]. +% \newblock (2013-08-12) +% \urlprefix\url{https://github.com/wenhai-zheng/NJUThesis} +% +% \bibitem{zenglecao2013} +% 鏇瑰涔�. +% \newblock \textit{鍗椾含澶у鏈姣曚笟璁烘枃锛堣璁★級 \hologo{LaTeX} 妯℃澘} [EB/OL]. +% \newblock (2019-06-26) +% \urlprefix\url{https://github.com/ZLCao/NJUBachelor} +% % \bibitem{haixinghu2013} % 鑳℃捣鏄�. % \newblock \textit{鍗椾含澶у瀛︿綅璁烘枃 \hologo{XeLaTeX} 妯℃澘} [EB/OL]. % \newblock (2018-08-08) % \urlprefix\url{https://github.com/Haixing-Hu/nju-thesis} % +% \bibitem{chuhengzhang2016} +% 寮犳鐝�. +% \newblock \textit{鍗椾含澶у鏈鐢熸瘯涓氳鏂� \hologo{LaTeX} 妯℃澘} [EB/OL]. +% \newblock (2016-06-01) +% \urlprefix\url{https://github.com/zhangchuheng123/NJUThesis} +% +% \bibitem{yanyanjiang2017} +% 钂嬬値宀�. +% \newblock \textit{鍗椾含澶у灞卞 \hologo{LyX} 鐮旂┒鐢熸瘯涓氳鏂囨ā鏉縸 [EB/OL]. +% \newblock (2019-01-16) +% \urlprefix\url{https://github.com/jiangyy/njuthesis} +% +% \bibitem{njuHan2018} +% \textsc{njuHan}. +% \newblock \textit{鍗椾含澶у瀛︿綅璁烘枃(鏈/纭曞+/鍗氬+)锛屾瘯涓氳鏂� \hologo{LaTeX} 妯℃澘} [EB/OL]. +% \newblock (2021-06-15) +% \urlprefix\url{https://github.com/njuHan/njuthesis-nju-thesis-template} +% % \bibitem{anyirao2018} % 楗跺畨閫�. % \newblock \textit{鍗椾含澶у鏈鐢熸瘯涓氳鏂� \hologo{LaTeX} 妯℃澘 2018 鏂扮増} [EB/OL]. @@ -2008,6 +2054,7 @@ through XeTeX. % \end{macrocode} % % \subsection{涓汉淇℃伅} +% \changes{v0.11}{2021/10/01}{灏嗕釜浜轰俊鎭彉閲忓悕鏀逛负灏忓啓瀛楁瘝鍔犺繛瀛楃鐨勫舰寮忋€倉 % 杈撳叆涓汉淇℃伅鐨勫尯鍩熴€� % \begin{macrocode} \keys_define:nn { nju } { info.meta:nn = { nju / info } { #1 } } @@ -2109,8 +2156,7 @@ through XeTeX. % % \begin{macro}{\njusetup} % \changes{v0.6}{2021/09/10}{鏀圭敤閿€煎杈撳叆淇℃伅銆倉 -% \changes{v0.11}{2021/10/01}{灏嗕釜浜轰俊鎭彉閲忓悕鏀逛负灏忓啓瀛楁瘝鍔犺繛瀛楃鐨勫舰寮忋€倉 -% 瀹氫箟鐢ㄤ簬璁剧疆涓汉淇℃伅鐨勫懡浠� +% 瀹氫箟鐢ㄤ簬璁剧疆淇℃伅鐨勫懡浠� % \begin{macrocode} \NewDocumentCommand \njusetup { m } { \keys_set:nn { nju } { #1 } } % \end{macrocode} @@ -2743,54 +2789,76 @@ through XeTeX. % % \subsection{鍙傝€冩枃鐚畗 % -% biblatex璁剧疆 -% \begin{macrocode} -\RequirePackage[ - style=gb7714-2015, - %style=numeric-comp, - %citestyle=authortitle-icomp, - % citestyle=numeric-comp, - %bibstyle=authoryear, - % bibstyle=numeric, - sorting=none, - %sorting=nyt, - %sortcites=true, - %autocite=footnote, - backend=biber, % Compile the bibliography with biber - hyperref=true, - backref=false, - citecounter=true, - pagetracker=true, - citetracker=true, - ibidtracker=context, - autopunct=true, - autocite=plain, - % 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} -% % \changes{v0.12}{2021/12/06}{璁剧疆杈撳嚭鍙傝€冩枃鐚殑榛樿閫夐」銆倉 -% 璁剧疆鍙傝€冩枃鐚悕绉� +% 璁剧疆鍙傝€冩枃鐚悕绉般€� % \begin{macrocode} \ctexset{ bibname = {鍙傝€冩枃鐚畗 } % \end{macrocode} -% 淇敼鍙傝€冩枃鐚殑澶撮儴鏍峰紡骞舵彃鍏ョ洰褰曘€� +% % \begin{macrocode} -\defbibheading { njubib } [ \bibname ] { \njuchapter { #1 } } -\DeclarePrintbibliographyDefaults { heading = njubib } +\keys_define:nn { nju } { bib.meta:nn = { nju / bib } { #1 } } +% \end{macrocode} +% \begin{macrocode} +\keys_define:nn { nju / bib } + { +% \end{macrocode} +% \begin{macro}{bib/style} +% 鍙傝€冩枃鐚牱寮忋€傚垎涓洪『搴忕紪鐮佸埗 \opt{numeric}锛坓b7714-2015锛夊拰钁楄€�-鍑虹増骞村埗 \opt{author-year}锛坓b7714-2015ay锛夈€� +% \begin{macrocode} + style .choice:, + style / numeric .code:n = + { \clist_set:Nn \l_@@_tmp_clist { style = gb7714-2015 } }, + style / author-year .code:n = + { \clist_set:Nn \l_@@_tmp_clist { style = gb7714-2015ay } }, + style .initial:n = numeric, + source .clist_set:N = \l_@@_bib_source_clist + } % \end{macrocode} % +% \begin{macro}{\@@_biblatex_pre_setup:,\@@_biblatex_post_setup:} +% 灏嗚缃紶鍏� \pkg{biblatex} 瀹忓寘銆� +% \begin{macrocode} +\cs_new_protected:Npn \@@_biblatex_pre_setup: + { + \clist_put_right:Nn \l_@@_tmp_clist { backend = biber } + \exp_args:NV \PassOptionsToPackage \l_@@_tmp_clist { biblatex } + } +% \end{macrocode} +% +% \begin{macrocode} +\cs_new_protected:Npn \@@_biblatex_post_setup: + { +% \end{macrocode} +% 淇敼鍙傝€冩枃鐚殑澶撮儴鏍峰紡骞舵彃鍏ョ洰褰曘€� +% \begin{macrocode} + \defbibheading { njubib } [ \bibname ] { \njuchapter { ##1 } } + \DeclarePrintbibliographyDefaults { heading = njubib } +% \end{macrocode} +% 浼犲叆鍙傝€冩枃鐚簮鏂囦欢銆� +% \begin{macrocode} + \clist_map_inline:Nn \l_@@_bib_source_clist { \addbibresource { ##1 } } +% \end{macrocode} % 蹇界暐涓嶉渶瑕佺殑鏂囩尞淇℃伅銆� % \begin{macrocode} -\AtEveryBibitem + \AtEveryBibitem + { + \clist_map_inline:nn + { abstract, issn, isbn, archivePrefix, arxivId, pmid, eprint } + { \clearfield { ##1 } } + \ifentrytype{online}{}{\ifentrytype{misc}{}{\clearfield{url}}} + } + } +% \end{macrocode} +% \end{macro} +% +% 瀵煎叆 \pkg{biblatex}銆� +% \begin{macrocode} +\hook_gset_rule:nnnn { begindocument/before } { . } { < } { xeCJK } +\hook_gput_code:nnn { env/document/begin } { . } { - \clist_map_inline:nn - { abstract, issn, isbn, archivePrefix, arxivId, pmid, eprint } - { \clearfield { #1 } } - \ifentrytype{online}{}{\ifentrytype{misc}{}{\clearfield{url}}} + \@@_biblatex_pre_setup: + \RequirePackage{biblatex} + \@@_biblatex_post_setup: } % \end{macrocode} % diff --git a/test/chapters/Bibliography.tex b/test/chapters/Bibliography.tex index 8d307de556d0f6264a1c04f5e1689901e2e8f0ad..9408c732a95d18743a9fb60bf17cddeefc954455 100644 --- a/test/chapters/Bibliography.tex +++ b/test/chapters/Bibliography.tex @@ -4,3 +4,12 @@ \section{寮曠敤鍛戒护} 鍗椾含澶у妯℃澘\cite{njuthesis} + +椤哄簭缂栫爜鍒剁殑 \cite{qiujinhengetal2010}(涓婃爣鍙缃〉鐮�)銆乗parencite{qiujinhengetal2010}(闈炰笂鏍囧彲璁剧疆椤电爜)銆乗pagescite{qiujinhengetal2010}(涓� +鏍囧姞鑷姩椤电爜)銆乗textcite{qiujinhengetal2010}(鎻愪緵浣滆€呬负涓昏鍔犻潪涓婃爣缂栧彿)銆乗authornumcite{qiujinhengetal2010}(鎻愪緵浣� +鑰呬负涓昏鍔犱笂鏍囩紪鍙�)銆乗footfullcite{qiujinhengetal2010}(鑴氭敞鏂瑰紡) + +钁楄€�-骞翠唤鍒剁殑\cite{qiujinhengetal2010}(浣滆€呭姞骞翠唤鐢� +鎷彿鍖呭洿鍙缃〉鐮�)銆乗pagescite{qiujinhengetal2010}(浣滆€呭姞骞翠唤鐢ㄦ嫭鍙峰寘鍥磋嚜鍔ㄩ〉鐮�)銆乗yearcite{qiujinhengetal2010}(鎻愪緵 +骞翠唤鐢ㄦ嫭鍙峰寘鍥�)銆乗yearpagescite{qiujinhengetal2010}(鎻愪緵骞翠唤鐢ㄦ嫭鍙峰寘鍥磋嚜鍔ㄩ〉鐮�)銆乗textcite{qiujinhengetal2010}(鎻愪緵涓� +璇綔鑰呭姞鎷彿鍖呭洿骞翠唤)銆乗footfullcite{qiujinhengetal2010}(鑴氭敞鏂瑰紡)銆� diff --git a/test/chapters/Specific.tex b/test/chapters/Specific.tex index ade10a969f2f838730d2991edaf90ac5762ae164..64f601ca4a19a247c0f9c175a0ab66e005ce9bc0 100644 --- a/test/chapters/Specific.tex +++ b/test/chapters/Specific.tex @@ -88,13 +88,74 @@ except EOFError as e: \section{鍖栧} -鍖栧寮忥細 +\subsection{鍖栧寮弣 + +1972骞达紝R. J. Fiela銆丒. Koros銆丷. Noyes绛夐€氳繃瀹為獙瀵笲Z鎸崱鍙嶅簲浣滀簡瑙i噴銆傚叾涓昏鎬濇兂 +鏄細绯荤粺涓瓨鍦ㄧ潃涓や釜鍙楁捍绂诲瓙娴撳害鎺у埗鐨勮繃绋婣鍜孊锛屽綋$[\ce{Br-}]$楂樹簬涓寸晫娴撳害$[\ce{Br-}]_\text{crit}$鏃跺彂鐢� +A杩囩▼锛屽綋$[\ce{Br-}]$浣庝簬$[\ce{Br-}]_\text{crit}$鏃跺彂鐢烞杩囩▼銆備篃灏辨槸璇�$[\ce{Br-}]$璧风潃寮€鍏充綔鐢紝瀹冩帶鍒剁潃浠嶢鍒� +B杩囩▼锛屽啀鐢盉鍒癆杩囩▼鐨勮浆鍙樸€傚湪A杩囩▼锛岀敱浜庡寲瀛﹀弽搴�$[\ce{Br-}]$闄嶄綆锛屽綋$[\ce{Br-}]$浣庝簬$[\ce{Br-}]_\text{crit}$ +鏃讹紝B杩囩▼鍙戠敓銆傚湪B杩囩▼涓紝\ce{Br-}鍐嶇敓锛�$[\ce{Br-}]$澧炲姞锛屽綋$[\ce{Br-}]$鍐嶆楂樹簬$[\ce{Br-}]_\text{crit}$鏃讹紝A杩囩▼鍐嶆 +鍙戠敓銆傝繖鏍风郴缁熷氨鍦ˋ杩囩▼涓嶣杩囩▼闂村線澶嶆尟鑽°€備笅闈㈢敤\ce{BrO3- - Ce^{3+} - MA - H2SO4}绯荤粺涓轰緥 +鍔犱互璇存槑銆�%\cite 鐗╃悊鍖栧瀹為獙 + +褰�$[\ce{Br-}]$瓒冲楂樻椂锛屽彂鐢熶笅鍒桝杩囩▼锛� +\begin{equation} + \ce{BrO3- + Br- + 2H+ ->[k_1] HBrO2 +HOBr} +\end{equation} +\begin{equation} + \ce{HBrO2 + Br- + H+ ->[k_2] 2HOBr} +\end{equation} +鍏朵腑绗竴姝ユ槸閫熺巼鎺у埗姝ワ紝褰撹揪鍒板噯瀹氭€佹椂锛屾湁 +\begin{equation*} + \left[\ce{HBrO2}\right] =\frac{k_1}{k_2}\left[\ce{BrO3-}\right]\left[\ce{H+}\right] +\end{equation*} + +褰�$[\ce{Br-}]$浣庢椂锛孿ce{Ce^{3+}}琚哀鍖栧彂鐢熶笅鍒桞杩囩▼锛� +\begin{equation} + \ce{BrO3- + HBrO2 + 2H+ ->[k_3] 2HBrO2 + H2O} +\end{equation} \begin{equation} - \frac{\varphi_{\ce{Ag +AgCl, Cl^{-}}}^{\ominus}-\varphi_{\ce{Ag +AgCl, Cl^{-}}}}{\varphi_{\ce{Ag +AgCl, Cl^{-}}}^{\ominus}}=\frac{0.0623}{0.8035}\times100\%=7.76\% + \ce{BrO2 + Ce^{3+} + H+ ->[k_4] HBrO2 + Ce^{4+}} \end{equation} +\begin{equation} + \ce{2HBrO2 ->[k_5] BrO3- + HOBr + H+} +\end{equation} + +鍙嶅簲(3)鏄€熺巼鎺у埗姝ワ紝缁忓弽搴�(3)銆佸弽搴�(4)灏嗚嚜鍌寲浜х敓\ce{HBrO2}锛岃揪鍒板噯瀹氭€� +鏃讹紝鏈� +\begin{equation*} + [\ce{HBrO2}] \approx \frac{k_3}{2k_5}[\ce{BrO3-}][\ce{H+}] +\end{equation*} + +鐢卞弽搴�(2)鍜屽弽搴�(3)鍙互鐪嬪嚭锛歕ce{Br}鍜孿ce{BrO3-}鏄珵浜塡ce{HBrO2}鐨勩€傚綋$k_2[\ce{Br-}]>k_3[\ce{BrO3-}]$鏃讹紝鑷偓鍖栬繃绋嬩笉鍙兘鍙戠敓銆傝嚜鍌寲鏄疊Z鎸崱鍙嶅簲涓繀涓嶅彲灏戠殑姝ラ锛屽惁鍒欒鎸崱涓� +鑳藉彂鐢熴€俓ce{Br-}鐨勪复鐣屾祿搴︿负 +\begin{equation*} + [\ce{Br-}]_\text{crit} =\frac{k_3}{k_2}[\ce{BrO3-}] =\num{5e-6}[\ce{BrO3-}] +\end{equation*} +\ce{Br-}鐨勫啀鐢熷彲閫氳繃涓嬪垪杩囩▼瀹炵幇锛� +\begin{equation} + \ce{4Ce^{4+} + BrCH(COOH)2 +H2O + HOBr ->[k_6] Br- + 4Ce^{3+} + 3CO2 + 6H+} +\end{equation} +璇ョ郴缁熺殑鎬诲弽搴斾负 +\begin{equation} + \ce{2H+ + 2BrO3- + 2CH2(COOH)2 -> BrCH(COOH)2 + 3CO2 + 4H2O} +\end{equation} +鎸崱鐨勬帶鍒剁墿绉嶆槸\ce{Br-}\cite{qiujinhengetal2010}銆� + + +\subsection{缁撴瀯寮弣 -鍖栧悎鐗╃粨鏋勶細 \begin{figure}[H] \centering \chemfig{[:18]*5(-=(-CHO)-N-=)} -\end{figure} \ No newline at end of file +\end{figure} + +\schemestart + \setchemfig{chemfig style=blue} \chemname[3ex]{\chemfig{[:-60]*6(-=)([:90]*6(=-EDG))}}{Diene} + \hspace{10mm} + \setchemfig{chemfig style=red} \chemname[3ex]{\chemfig{[:-60]*6(=)([::90]-EWG)}}{Dienophile} + \hspace{10mm} + \arrow(.mid east--.mid west)[,1.5] + \hspace{10mm} + \chemfig{[:-60]*6(=[,,,,blue]-[,,,,blue]--[,,,,red](<[,,,,red]{\color{red}E}|{\color{red}WG})-(<[,,,,blue]{\color{blue}EDG})-[,,,,blue])} +\schemestop \ No newline at end of file diff --git a/test/test.bib b/test/test.bib index e9cc489393ba370e8b6a6e770922ade0a1c69034..dfa675e6ac0d2fb4b71afb549b25320f42f74750 100644 --- a/test/test.bib +++ b/test/test.bib @@ -12,11 +12,22 @@ 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" + 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" +} +@book{qiujinhengetal2010, + location = {鍖椾含}, + title = {鐗╃悊鍖栧瀹為獙}, + isbn = {7-04-029811-2}, + abstract = {鏈功鐢辩华璁恒€佸疄楠屻€佸熀纭€鐭ヨ瘑涓庢妧鏈拰闄勫綍鍥涢儴鍒嗙粍鎴愶紝鍏朵腑35涓疄楠屾兜鐩栦簡鐑姏瀛︺€佸姩鍔涘銆佺數鍖栧銆佽〃闈㈡€ц川涓庤兌浣撳寲瀛﹀拰缁撴瀯鍖栧绛夌墿鐞嗗寲瀛﹀垎鏀殑鍐呭锛涘熀纭€鐭ヨ瘑涓庢妧鏈富瑕佷粙缁嶄簡鏈功瀹為獙娑夊強鐨勫疄楠屾柟娉曞拰鎶€鏈互鍙婁华鍣ㄧ殑浣跨敤鏂规硶銆倉, + pagetotal = {326}, + publisher = {楂樼瓑鏁欒偛鍑虹増绀緘, + author = {{閭遍噾鎭拀 and {瀛欏皵搴穧 and {鍚村己}}, + date = {2010-09}, + langid = {pinyin}, } diff --git a/test/test.tex b/test/test.tex index ba05139c3aa095700ba8728355c87ff53042b3fc..3f52aea36a065fc0c9ad8cf89b4e08ee4b4f5420 100644 --- a/test/test.tex +++ b/test/test.tex @@ -3,7 +3,7 @@ % 鍏跺唴瀹逛笉鍏锋湁浠讳綍鍙傝€冩剰涔� %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \documentclass{njuthesis} -\documentclass[orig-decl]{njuthesis} +\documentclass[orig-decl,bib/style=author-year]{njuthesis} % \documentclass[draft]{njuthesis} % \documentclass[type=design]{njuthesis} % \documentclass[degree=mg]{njuthesis} @@ -44,15 +44,20 @@ secret-level = {闄愬埗}, udc = {004.72}, supervisor-contact = {鎷夊お璧瀛︿笌鎶€鏈闄鏋濇睙甯傜粨涓樿矾~19~鍙穨114514}, - } -} + } + } \usepackage{listings,algorithm,algorithmic} \usepackage{siunitx,physics,chemfig} \usepackage[version=4]{mhchem} \usepackage{blindtext,zhlipsum} -\addbibresource{test.bib} +\njusetup { + bib = { + %style = author-year, + source = {test.bib} + } + } % https://tex.stackexchange.com/questions/33264/span-as-a-math-operator \DeclareMathOperator{\spn}{span} @@ -81,6 +86,15 @@ % basicstyle=\normalsize\tt, % columns=fixed]| +\setchemfig{ + atom sep=14.4pt, + double bond sep=2.6pt, + bond style={line width=0.6pt}, + cram width=2.0pt, + bond offset=1.6pt +} +\renewcommand*\printatom[1]{\small\ensuremath{\mathsf{#1}}} + \begin{document} % \frontmatter