diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cee69af0e41be72016d155974660bfdd98fbd13d..ca59739b046bc3235a42bdda998334348010c601 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ on: env: CTAN_URL: https://mirrors.rit.edu/CTAN - TL_PACKAGES: algorithms alphalph auxhook background biber biblatex biblatex-gb7714-2015 bibtex blindtext booktabs caption cleveref cm-unicode colortbl csquotes ctex dashundergaps diagbox emptypage enumitem everypage fancyhdr fancyvrb fandol float footmisc gbt7714 hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lua-ul lualatex-math luatex85 makecell makeindex mathtools mhchem microtype multirow natbib newcomputermodern ninecolors njuvisual ntheorem pict2e preview psnfss setspace siunitx standalone symbol tex-gyre tex-gyre-math thmtools threeparttable tocloft translator underscore unicode-math url wrapfig xits xstring zhlipsum zref + TL_PACKAGES: algorithms alphalph auxhook background biber biblatex biblatex-gb7714-2015 bibtex blindtext booktabs caption cleveref cm-unicode colortbl csquotes ctex dashundergaps diagbox emptypage enumitem everypage fancyhdr fancyvrb fandol float footmisc gbt7714 hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lua-ul lualatex-math luatex85 makecell makeindex mathtools mhchem microtype multirow natbib newcomputermodern ninecolors njuvisual ntheorem pict2e preview psnfss setspace siunitx standalone symbol tex-gyre tex-gyre-math thmtools threeparttable translator underscore unicode-math url wrapfig xits xstring zhlipsum zref jobs: build-on-ubuntu: diff --git a/source/njuthesis.dtx b/source/njuthesis.dtx index d9e9bcd60c60bd333bd15cd20dd6a055fec90d38..dea1db7b5b0fa3e2dff8e3d950fad429b6f278c2 100644 --- a/source/njuthesis.dtx +++ b/source/njuthesis.dtx @@ -433,7 +433,7 @@ through XeTeX. % \item 浣跨敤鏈€鏂扮殑鍙戣鐗堬紝鍗崇増鏈彿涓�2021鎴栬€�21銆� % \item 瀵逛簬 Windows 鍜� macOS 鐢ㄦ埛锛屾洿鎺ㄨ崘杞婚噺鍖栫殑 \hologo{MiKTeX} 濂椾欢銆� % \item Linux 鐢ㄦ埛璇峰敖鍙兘涓嬭浇 full 鐗堟湰锛屽 |texlive-full|銆傛崲瑷€涔嬶紝涓嬭浇鏈€澶х殑杞欢鍖呫€� -% \item 瀵逛簬涓€閮ㄥ垎鐢ㄥ埌鏂扮増鏈壒鎬х殑瀹忓寘锛孿cls{njuthesis} 鍐呯疆浜嗙増鏈鏌footnote{璀閬囧埌l3杩囨椂闂璇疯繍琛� |tlmgr update l3packages|銆倉锛岃纭鍚勫畯鍖呭凡鍗囩骇鑷虫渶鏂扮増銆� +% \item 瀵逛簬涓€閮ㄥ垎鐢ㄥ埌鏂扮増鏈壒鎬х殑瀹忓寘锛孿cls{njuthesis} 鍐呯疆浜嗙増鏈鏌footnote{璀閬囧埌 l3 杩囨椂闂璇疯繍琛� |tlmgr update l3packages|銆倉锛岃纭鍚勫畯鍖呭凡鍗囩骇鑷虫渶鏂扮増銆� % \end{itemize} % % \subsubsection{閰嶇疆缂栬緫鍣▆ @@ -529,7 +529,8 @@ through XeTeX. % \item 鐐瑰嚮Compile鎸夐挳杩涜缂栬瘧鍜岄瑙� % \end{enumerate} % -% 娉ㄦ剰锛岀敱浜庡崡澶hologo{TeX}宸查瑁匼cls{njuthesis}锛屽彲浠ョ洿鎺ョ紪鍐欐鏂囷紝鏃犻渶\file{.cls}绛夋牸寮忔枃浠躲€傚鏋滈渶瑕佷娇鐢ㄦ柊鐗堟ā鏉匡紝涔熷彲浠ョ偣鍑籒ew Project -> Upload Project涓婁紶 \ref{subsubsec:downloadrtm} 寰楀埌鐨勫帇缂╂枃浠躲€� +% 娉ㄦ剰锛岀敱浜庡崡澶� \hologo{TeX} 宸查瑁� \cls{njuthesis}锛屽彲浠ョ洿鎺ョ紪鍐欐鏂囷紝鏃犻渶 \file{.cls} 绛夋牸寮忔枃浠躲€傚鏋滈渶瑕佷娇鐢ㄦ柊鐗堟ā鏉匡紝涔熷彲浠ョ偣鍑籒ew Project -> Upload Project涓婁紶 \ref{subsubsec:on-the-fly-installation} 寰楀埌鐨勫帇缂╂枃浠躲€� +% % % \subsubsection{鍏朵粬骞冲彴} % @@ -545,7 +546,7 @@ through XeTeX. % % \subsection{鏍囧噯缁撴瀯} % -% 鍏稿瀷鐨刓cls{njuthesis}涓绘枃浠剁粨鏋勫簲璇ュ涓嬫墍绀猴細 +% 鍏稿瀷鐨� \cls{njuthesis} 涓绘枃浠剁粨鏋勫簲璇ュ涓嬫墍绀猴細 % % \begin{latexexample}[moretexcs={\njusetup,\graphicspath,\addbibresource,\maketitle,\tableofcontents,\listoffigures,\listoftables,\mainmatter,\chapter,\printbibliography,\appendix},emph={[1]document}] % \documentclass{njuthesis} @@ -684,7 +685,7 @@ through XeTeX. % 鏈€鍚庯紝鍑轰簬缁熶竴鏍煎紡鐨勯渶瑕侊紝鏈ā鏉胯繕閫夊彇浜嗕笌姝f枃瀛椾綋鐩镐技搴︽渶楂樼殑鏁板瀛椾綋锛圽href{https://github.com/aliftype/xits}{XITS 瀛椾綋}锛夌敤浜庡叕寮忔帓鐗堛€� % % 鏈妭鎻愬強鐨勫瓧搴撲腑锛屼腑鏂囧瓧搴撳彧鏈夋柟姝d功瀹嬨€佹柟姝i粦浣撱€佹柟姝fシ浣撱€佹柟姝d豢瀹嬨€佷袱绉嶆€濇簮瀛椾綋鍜屽洓绉岶andol瀛椾綋鑳藉\emph{鍏嶈垂鍟嗙敤}锛� -% 鑻辨枃瀛楀簱涓彧鏈� Times New Roman銆乆ITS 鍜屼笁绉峔Hologo{TeX} Gyre瀛椾綋鑳藉\emph{鍏嶈垂鍟嗙敤}銆� +% 鑻辨枃瀛楀簱涓彧鏈� Times New Roman銆乆ITS 鍜屼笁绉� \Hologo{TeX} Gyre瀛椾綋鑳藉\emph{鍏嶈垂鍟嗙敤}銆� % 鍥犳锛岃嫢闇€瑕佸皢鏈ā鏉跨敤浜庡晢涓氱浉鍏崇殑娲诲姩锛岃鍜ㄨ涓撲笟浜哄+銆� % % @@ -812,6 +813,7 @@ through XeTeX. % 杩欎簺閫夐」宸插湪 v0.13 寮冪疆锛岃涓嶈浣跨敤銆� % \end{function} % +% % \subsubsection{杈撳叆绀鸿寖} % % 鏈鐢熷彲浠ュ弬鑰冨涓嬭寖渚嬭緭鍏ヤ釜浜轰俊鎭€傛敞鎰忎笉鑳芥湁绌鸿銆� @@ -876,6 +878,7 @@ through XeTeX. % } % \end{latexexample} % +% % \subsection{缂栧啓姝f枃} % % 涓庡瑷€鍖虹浉瀵圭殑鏄鏂囷紝浣嶄簬\env{document}鐜鍐呫€� @@ -936,7 +939,6 @@ through XeTeX. % \end{figure} % \end{latexexample} % -% % 瀵逛簬杈冧负鐦﹂暱锛屾垨鑰呬粎璧峰埌杈呭姪浣滅敤鐨勫浘鍍忥紝鍙互浣跨敤\env{wrapfigure}瀹炵幇鏂囧瓧鐜粫鏁堟灉銆傛敞鎰忚繖涓幆澧冨悗绱ц窡鐨勪竴琛屼笉鑳戒负绌恒€� % % \begin{latexexample}[moretexcs={\includegraphics},emph={[1]wrapfigure}] @@ -1002,9 +1004,10 @@ through XeTeX. % % \end{function} % +% % \subsubsection{浠g爜} % -% 鐢盶pkg{listings}鎻愪緵浠g爜鎺掔増銆備唬鐮佸潡\env{lstlisting}锛屾敞鎰忚繖涓幆澧冧腑鐨勭缉杩涚┖鏍间細濡傚疄杈撳嚭 +% 鐢� \pkg{listings} 鎻愪緵浠g爜鎺掔増銆備唬鐮佸潡 \env{lstlisting}锛屾敞鎰忚繖涓幆澧冧腑鐨勭缉杩涚┖鏍间細濡傚疄杈撳嚭 % \begin{latexexample}[emph={[1]lstlisting}] % \begin{lstlisting} % <code> @@ -1028,7 +1031,7 @@ through XeTeX. % \end{equation} % \end{latexexample} % -% 濡備笉闇€瑕佺紪鍙凤紝鍙互鐢╘env{equation*}鎴栬€� |\[<eq>\]| +% 濡備笉闇€瑕佺紪鍙凤紝鍙互鐢� \env{equation*} 鎴栬€� |\[|\meta{鍏紡}|\]|锛岃涓嶈浣跨敤鍙兘寮曞彂琛岃窛闂鐨� |$$|\meta{鍏紡}|$$|銆� % % 鏈ā鏉夸篃鎻愪緵浜嗕竴绯诲垪鐨勬暟瀛︾幆澧冦€傝瘉鏄庣幆澧冧細鍦ㄧ粨灏炬坊鍔犺瘉姣曠鍙枫€� % \begin{latexexample} @@ -1052,7 +1055,7 @@ through XeTeX. % \tn{cref}\Arg{鏍囩} % \end{syntax} % -% 浣跨敤\pkg{cleveref}瀹忓寘瀹炵幇浜嗗甫鍥俱€佽〃绛夐」鐩悕绉扮殑鏅鸿兘寮曠敤銆� +% 浣跨敤 \pkg{cleveref} 瀹忓寘瀹炵幇浜嗗甫鍥俱€佽〃绛夐」鐩悕绉扮殑鏅鸿兘寮曠敤銆� % % \end{function} % @@ -1062,7 +1065,7 @@ through XeTeX. % \tn{url}\Arg{閾炬帴} % \end{syntax} % -% 瓒呴摼鎺ャ€俓tn{href}浼氬皢鐗瑰畾瀛楃鏄剧ず涓哄彲鐐瑰嚮鐨勮秴閾炬帴锛孿tn{url}浼氳緭鍑哄彲鐐瑰嚮鐨勯摼鎺ュ師鏂囥€� +% 瓒呴摼鎺ャ€俓tn{href} 浼氬皢鐗瑰畾瀛楃鏄剧ず涓哄彲鐐瑰嚮鐨勮秴閾炬帴锛孿tn{url} 浼氳緭鍑哄彲鐐瑰嚮鐨勯摼鎺ュ師鏂囥€� % % \end{function} % @@ -1076,7 +1079,7 @@ through XeTeX. % \begin{function}{\maketitle} % 鐢ㄤ簬鐢熸垚灏侀潰銆� % 鏈鐢熶粎浼氱敓鎴愪腑鏂囧皝闈紱鐮旂┒鐢熶細鐢熸垚涓嫳鏂囧皝闈€€� -% 濡傛灉閫夋嫨浜哱opt{nlcover}锛屼粎浼氱敓鎴愮爺绌剁敓鐨勫浗瀹跺浘涔﹂灏侀潰鍜屽師鍒涙€у0鏄庨〉銆� +% 濡傛灉閫夋嫨浜� \opt{nlcover}锛屼粎浼氱敓鎴愮爺绌剁敓鐨勫浗瀹跺浘涔﹂灏侀潰鍜屽師鍒涙€у0鏄庨〉銆� % \end{function} % % @@ -1149,7 +1152,7 @@ through XeTeX. % \begin{syntax} % \tn{njupaperlist}\Arg{鏂囩尞} % \end{syntax} -% 鎴愭灉鍒楄〃锛屽垎鍒负鍙戣〃鏂囩珷鐩綍涓庡悎浣滄枃绔犵洰褰曘€俓Arg{鏂囩尞}鐨勫~鍐欐柟寮忓悓\tn{cite}锛屽涓枃鐚渶瑕佷娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿闅斿紑銆� +% 鎴愭灉鍒楄〃锛屽垎鍒负鍙戣〃鏂囩珷鐩綍涓庡悎浣滄枃绔犵洰褰曘€俓Arg{鏂囩尞} 鐨勫~鍐欐柟寮忓悓 \tn{cite}锛屽涓枃鐚渶瑕佷娇鐢ㄨ嫳鏂囧崐瑙掗€楀彿闅斿紑銆� % \end{function} % % \subsection{鍙傝€冩枃鐚畗 @@ -2331,7 +2334,7 @@ through XeTeX. \use:c { @@_load_latin_font_ \g_@@_latin_font_tl : } \use:c { @@_load_cjk_font_ \g_@@_cjk_font_tl : } % \end{macrocode} -% 鑷瀹氫箟C\hologo{TeX}涓殑鍥涚被瀛椾綋鍛戒护銆� +% 鑷瀹氫箟 C\hologo{TeX} 涓殑鍥涚被瀛椾綋鍛戒护銆� % \begin{macrocode} \NewDocumentCommand \songti { } { \CJKfamily{zhsong} } \NewDocumentCommand \heiti { } { \CJKfamily{zhhei} } @@ -2386,7 +2389,7 @@ through XeTeX. } % \end{macrocode} % -% 鐮旂┒鐢熼〉鐪夐〉鑴氥€傚鏁伴〉涓虹珷鍚嶏紝鍋舵暟椤典负鑺傚悕銆� +% 鐮旂┒鐢熼〉鐪夐〉鑴氥€傞〉鐪変负妯嚎锛屽鏁伴〉鏄剧ず绔犲悕锛屽伓鏁伴〉鏄剧ず鑺傚悕锛涢〉鑴氫负椤电爜銆� % \begin{macrocode} \fancypagestyle{headings} { @@ -2394,8 +2397,8 @@ through XeTeX. \fancyhead [ CO ] { \leftmark } \fancyhead [ CE ] { \rightmark } \fancyfoot [ C ] { \zihao{5} \thepage } - \RenewDocumentCommand \headrulewidth { } { 0 pt } - \RenewDocumentCommand \footrulewidth { } { 0.4 pt } + \RenewDocumentCommand \headrulewidth { } { 0.4 pt } + \RenewDocumentCommand \footrulewidth { } { 0 pt } \setlength { \headheight } { 20 pt } } % \end{macrocode} diff --git a/test/chapters/Mathematics.tex b/test/chapters/Mathematics.tex index 450cda3df0165c365ba32c88001c25ba4584fc0b..6a5079d562b191c34be9275fc84190898d36ee34 100644 --- a/test/chapters/Mathematics.tex +++ b/test/chapters/Mathematics.tex @@ -54,37 +54,37 @@ Math bold italic letters: $\mathbi{A}$ \section{瀹氱悊鐜} -\begin{proof} - 璇佹槑鎴戞槸鎴� -\end{proof} - -\begin{definition}[浠栦汉] - 瀹氫箟浠栦汉鍗冲湴鐙� -\end{definition} - -鍏ㄩ儴鏁板鐜濡備笅鎵€绀� - -\begin{table}[htbp] - \caption{鏁板鐜} - \label{tab:mathenv} - \begin{tabular}{cc} - \toprule - 鏍囩 & 鍚嶇О \\ - \midrule - algorithm & 绠楁硶 \\ - assumption & 鍋囪 \\ - axiom & 鍏悊 \\ - conclusion & 缁撹 \\ - condition & 鏉′欢 \\ - corollary & 鎺ㄨ \\ - definition & 瀹氫箟 \\ - example & 渚� \\ - lemma & 寮曠悊 \\ - proof & 璇佹槑 \\ - property & 鎬ц川 \\ - proposition & 鍛介 \\ - remark & 娉ㄨВ \\ - theorem & 瀹氱悊 \\ - \bottomrule - \end{tabular} -\end{table} +% \begin{proof} +% 璇佹槑鎴戞槸鎴� +% \end{proof} + +% \begin{definition}[浠栦汉] +% 瀹氫箟浠栦汉鍗冲湴鐙� +% \end{definition} + +% 鍏ㄩ儴鏁板鐜濡備笅鎵€绀� + +% \begin{table}[htbp] +% \caption{鏁板鐜} +% \label{tab:mathenv} +% \begin{tabular}{cc} +% \toprule +% 鏍囩 & 鍚嶇О \\ +% \midrule +% algorithm & 绠楁硶 \\ +% assumption & 鍋囪 \\ +% axiom & 鍏悊 \\ +% conclusion & 缁撹 \\ +% condition & 鏉′欢 \\ +% corollary & 鎺ㄨ \\ +% definition & 瀹氫箟 \\ +% example & 渚� \\ +% lemma & 寮曠悊 \\ +% proof & 璇佹槑 \\ +% property & 鎬ц川 \\ +% proposition & 鍛介 \\ +% remark & 娉ㄨВ \\ +% theorem & 瀹氱悊 \\ +% \bottomrule +% \end{tabular} +% \end{table} diff --git a/test/test.tex b/test/test.tex index 104c07eb1e88e5f260e4f5793581f60ffca91f41..16cd6d78eaa8ff4102915f895dd6761f62bf9e6a 100644 --- a/test/test.tex +++ b/test/test.tex @@ -74,7 +74,7 @@ \zhlipsum[1-20][name=zhufu] -\njuchapter{鍒楄〃鐜} +\chapter{鍒楄〃鐜} \begin{itemize} \item 娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯 @@ -97,7 +97,7 @@ \item[娴嬭瘯娴嬭瘯] 娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯 \end{description} \input{chapters/FigTabCode} -% \input{chapters/Mathematics} +\input{chapters/Mathematics} \input{chapters/Bibliography} \printbibliography @@ -106,7 +106,7 @@ \appendix -% \input{chapters/Achievements} +\input{chapters/Achievements} \input{chapters/Standard} \end{document}