diff --git a/latexmkrc b/latexmkrc index 17e9557a5e60632607059fd57821ea68b75df78f..db3b34046117da90481e4eef95e600279b6464af 100644 --- a/latexmkrc +++ b/latexmkrc @@ -9,7 +9,17 @@ $bibtex_use = 1.5; $clean_ext = "hd loe ptc run.xml synctex.gz thm xdv"; -$makeindex = "makeindex -s gind.ist %O -o %D %S"; +$makeindex = "makeindex %O -s gind.ist -o %D %S"; +add_cus_dep('glo','gls',0,'makeindex'); +sub makeindex { + if ( $silent ) { + system( "makeindex -q -s gglo.ist -o \"$_[0].gls\" \"$_[0].glo\"" ); + } + else { + system( "makeindex -s gglo.ist -o \"$_[0].gls\" \"$_[0].glo\"" ); + }; +} +$makeindex_silent_switch = "-q"; add_cus_dep('nlo', 'nls', 0, 'nlo2nls'); sub nlo2nls { diff --git a/njuthesis.dtx b/njuthesis.dtx index 4e909cfc23a027ed9170dda6106135f9b3fd24ff..89e02eda04229e8e5e0c8413add759aa87defa2a 100644 --- a/njuthesis.dtx +++ b/njuthesis.dtx @@ -207,12 +207,12 @@ through XeTeX. % %<class>\NeedsTeXFormat{LaTeX2e} %<class>\RequirePackage{expl3} -%<class>\GetIdInfo $Id: njuthesis.dtx 0.9.0 2020-09-14 12:00:00 +0800 NJU LUG <my@yaoge123.com> $ +%<!readme> \GetIdInfo $Id: njuthesis.dtx 0.9.0 2020-09-14 12:00:00 +0800 NJU LUG <my@yaoge123.com> $ %<class> {Thesis template for Nanjing University} %<class>\ProvidesExplClass{\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} % %<*driver> -\ProvidesFile{\ExplFileName.dtx} +\ProvidesFile{njuthesis.dtx} \documentclass{ctxdoc} \begin{document} \DocInput{njuthesis.dtx} @@ -332,26 +332,46 @@ through XeTeX. % 鍚勪釜绯荤粺鐨勯粯璁ゅ瓧浣撹鍙傝€儃tab:defaultfontset}銆傚彲浠ョ湅鍒帮紝涓嶅悓绯荤粺涓婁娇鐢ㄧ殑瀛椾綋鏈夋墍宸埆锛屽疄闄呰緭鍑虹粨鏋滃彲鑳藉瓨鍦ㄧ粏寰笉鍚�, 浣跨敤鏃惰娉ㄦ剰銆備緥濡傦紝鍦↙inux骞冲彴鎴栬€呬娇鐢ㄤ簡Ubuntu鍚庣鐨勫崡澶hologo{TeX}涓婏紝瀹嬩綋鍔犵矖鏁堟灉鏇存槑鏄撅紱鍙︿竴鏂归潰锛屽湪Windows骞冲彴杩涜缂栬瘧鐨勬晥鏋滄洿鎺ヨ繎Word鍔犵矖\footnote{鍥犱负SimSun娌℃湁鍘熺敓绮椾綋锛岄€氳繃AutoFakeBold=2.17杩涜妯′豢}銆� % % -% \section{Usage} +% \section{浣跨敤鏂规硶} % % Put text here. +% \subsubsection{鏍煎紡淇℃伅} +% 鐢ㄤ簬鎺у埗灏侀潰鏍囬鐨勮鏁般€傚彲閫夊€间负1銆�2銆�3锛岀己鐪佸€间负1銆� +% +% {绗簩瀵煎笀} +% 鐢ㄤ簬鍦ㄥ皝闈㈠拰鎽樿娣诲姞绗簩瀵煎笀锛岀己鐪佸€间负false銆� +% +% {鍥藉鍥句功棣嗗皝闈 +% 缂虹渷鍊间负false銆� +% +% \subsubsection{瀛︿綅淇℃伅} +% \begin{function}[added=2021-09-07]{type} +% \begin{syntax} +% type = <mg|mf|phd|(ug)> +% \end{syntax} % -% \subsection{瀛︿綅} -% \DescribeOption{degree} % 閫夋嫨瀛︿綅锛屽彲閫夛細 -% -option{ug}锛堥粯璁わ級锛�-option{mg}锛�-option{mf}锛�-option{phd}銆� +% \opt{ug}锛堥粯璁ゆ湰绉戯級锛孿opt{mg}锛孿opt{mf}锛孿opt{phd}銆� +% \end{function} +% % -% \subsection{绫诲瀷} % \DescribeOption{type} -% 閫夋嫨瀛︿綅锛屽彲閫夛細 -% -option{thesis}锛堥粯璁わ級锛�-option{design}銆� +% 鐢ㄤ簬閫夋嫨鏂囨。绫诲瀷骞跺皢鐩稿叧瀛楁杈撳嚭鍦ㄥ皝闈㈠拰鎽樿椤点€傚彲閫夊€煎寘鎷瑃hesis锛堣〃绀烘瘯涓氳鏂囷級鍜宒esign锛堣〃绀烘瘯涓氳璁★級锛岀己鐪佸€间负thesis銆� +% \opt{thesis}锛堥粯璁わ級锛孿opt{design}銆� % +% \subsubsection{鎸囧畾瀛椾綋} % \DescribeOption{systemfont} % 鏄惁浣跨敤绯荤粺棰勮鐨勫瓧浣擄紝鍙€夛細 -% -option{true}锛堥粯璁わ級锛�-option{false}銆� +% \opt{true}锛堥粯璁わ級锛孿opt{false}銆� +% +% \DescribeOption{customlatinfont} +% 鏄惁浣跨敤绯荤粺棰勮鐨勫瓧浣擄紝鍙€夛細 +% \opt{true}锛堥粯璁わ級锛孿opt{false}銆� +% +% \DescribeOption{customchinesefont} +% 鏄惁浣跨敤绯荤粺棰勮鐨勫瓧浣擄紝鍙€夛細 +% \opt{true}锛堥粯璁わ級锛孿opt{false}銆� % -% This is a stub file to allow extraction of \texttt{l3docstrip}: all -% functionality has been moved to the main DocStrip program. % % \end{documentation} %