diff --git a/chapters/Introduction.tex b/chapters/Introduction.tex index 25d8fb16854be99e4de93ca54021bab316030d77..fc5bd99265292e78e10061ec15a088c39729e68d 100644 --- a/chapters/Introduction.tex +++ b/chapters/Introduction.tex @@ -1,9 +1,11 @@ \chapter{缁} \section{绠€浠媫 -鍗椾含澶у瀛︿綅璁烘枃\hologo{LaTeX}妯℃澘\cite{njuthesis}鍩轰簬鏈鐢熼櫌鐨勮鏂囨挵鍐欒鑼冨埗浣滐紝鍚屾椂鍙傝€冪爺绌剁敓闄㈡彁渚涚殑纭曞+銆佸崥澹浣嶆潗鏂欏寘锛岀敤浜庣敓鎴愮鍚堝崡浜ぇ瀛﹀浣嶈鏂囨帓鐗堣姹傚拰鐩稿簲鐨勫浗瀹惰鑼冦€佽涓氭爣鍑嗙殑瀛︿綅璁烘枃銆� +鍗椾含澶у瀛︿綅璁烘枃\hologo{LaTeX}妯℃澘\cite{njuthesis}鍩轰簬鏈鐢熼櫌鐨勮鏂囨挵鍐欒鑼冨埗浣滐紝鍚屾椂鍙傝€冪爺绌剁敓闄㈡彁渚涚殑纭曞+銆佸崥澹浣嶆潗鏂欏寘锛岀敤浜庣敓鎴愮鍚堝崡浜ぇ瀛﹀浣嶈鏂囨帓鐗堣姹傚拰鐩稿簲鐨勫浗瀹惰鑼冦€佽涓氭爣鍑嗙殑瀛︿綅璁烘枃锛屾棬鍦ㄤ负鍚屽鎻愪緵姣曚笟璁烘枃涔﹀啓鐨勬柟渚裤€� -姝ゆā鏉块€氳繃LPPL鍗忚寮€婧愶紝鏃ㄥ湪涓哄悓瀛︽彁渚涙瘯涓氳鏂囦功鍐欑殑鏂逛究锛屽鏈夋ā鏉块棶棰樻垨鑰呯増鏉冮棶棰橈紝璇蜂簬Github涓婃彁鍑篿ssue銆� +姝ゆā鏉块€氳繃LPPL鍗忚寮€婧愶紝鐩墠宸瞈href{https://ctan.org/pkg/njuthesis}{鍙戝竷鍦–TAN}銆� + +濡傛湁妯℃澘闂鎴栬€呯増鏉冮棶棰橈紝璇蜂簬Github椤圭洰涓婚〉涓奬href{https://github.com/nju-lug/NJUThesis/issues}{鎻愬嚭issue}銆� \section{寮€鍙戠幆澧儅 @@ -49,7 +51,8 @@ njuthesis绫绘彁渚涗簡鑻ュ共涓彲浠ヨ嚜瀹氫箟鐨勯€夐」锛屽涓嬫墍绀恒€� \begin{description} \item[\texttt{titlelength}] 鏍囬闀垮害锛岀敤浜庢帶鍒跺皝闈㈡爣棰樼殑琛屾暟銆傚彲閫夊€间负1銆�2銆�3锛岀己鐪佸€间负1銆� \item[\texttt{secondmentor}] 鏄惁鏈夌浜屽甯堬紝鐢ㄤ簬鍦ㄥ皝闈㈠拰鎽樿娣诲姞绗簩瀵煎笀锛岀己鐪佸€间负false銆� - \item[\texttt{degree}] 瀛︿綅绫诲瀷锛屾湰绉戝浣嶄负g锛屽嵆Undergraduate鐨勭缉鍐欙紱瀛︽湳鍨嬬澹浣嶄负mg锛涚澹笓涓氬浣嶄负mf锛涘崥澹浣嶄负d銆� + \item[\texttt{nlcover}] 鏄惁闇€瑕佸浗瀹跺浘涔﹂灏侀潰锛岀己鐪佸€间负false銆� + \item[\texttt{degree}] 瀛︿綅绫诲瀷锛屾湰绉戝浣嶄负ug锛屽嵆undergraduate鐨勭缉鍐欙紱瀛︽湳鍨嬬澹浣嶄负mg锛涚澹笓涓氬浣嶄负mf锛涘崥澹浣嶄负phd銆� \item[\texttt{type}] 鐢ㄤ簬閫夋嫨鏂囨。绫诲瀷骞跺皢鐩稿叧瀛楁杈撳嚭鍦ㄥ皝闈㈠拰鎽樿椤点€傚彲閫夊€煎寘鎷瑃hesis锛堣〃绀烘瘯涓氳鏂囷級鍜宒esign锛堣〃绀烘瘯涓氳璁★級锛岀己鐪佸€间负thesis銆� \item[\texttt{systemfont}] 鏄惁鐢ㄧ郴缁熷瓧浣擄紝鐢ㄤ簬鑷姩妫€娴嬭繍琛岀郴缁熷苟浣跨敤棰勮瀛椾綋锛岀己鐪佸€间负true銆� \item[\texttt{customlatinfont}] 鐢ㄤ簬閫夋嫨鑷畾涔夎嫳鏂囧瓧绗﹂泦銆傚彲閫夊€煎寘鎷瑆indows, macos, gyre, null锛岀己鐪佸€间负windows銆� diff --git a/chapters/Layout.tex b/chapters/Layout.tex index 176bb52fbcab7e1f54efee1c2c57d8432fdbba14..72644444909e0317a4c726eecef6a289bd130d74 100644 --- a/chapters/Layout.tex +++ b/chapters/Layout.tex @@ -4,7 +4,6 @@ \section{灏侀潰椤祡 -\subsection{灏侀潰鏍煎紡} \texttt{cover.sty}涓畾涔変簡鐢熸垚灏侀潰鐨勭浉鍏冲懡浠� diff --git a/njuthesis.tex b/njuthesis.tex index a3b71e61f49810d531de37477a5353ff8aa4fd53..e75a06da9a6b1ed39ef01eadea189aec30df5c95 100755 --- a/njuthesis.tex +++ b/njuthesis.tex @@ -1,4 +1,4 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % NJU Thesis % 鍗椾含澶у姣曚笟璁烘枃LaTeX妯℃澘 % Version 0.7.4 (2021-09-12) @@ -9,18 +9,19 @@ % https://ctan.org/pkg/njuthesis % % 璐$尞鑰� -% @atxy @FengChendian @myandeg -% @glatavento @HermitSun @linyinfeng +% Yu XIONG @atxy-blip Yichen ZHAO @FengChendian +% Song GAO @myandeg Chang MA @glatavento +% Yilun SUN @HermitSun Yinfeng LIN @linyinfeng % % 璁稿彲璇� % LaTeX Project Public License锛堢増鏈� 1.3c 鎴栨洿楂橈級 % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[ titlelength=2,% 閫夋嫨鏍囬琛屾暟锛岃寖鍥存槸1~3 secondmentor=true,% 鏃犵浜屽甯堣娉ㄩ噴姝ら」 nlcover=true,% 鏃犻渶鍥藉鍥句功棣嗗皝闈㈣娉ㄩ噴姝ら」 - degree=d,% ug: 鏈, mg: 瀛︾, mf: 涓撶, d: 鍗氬+ + degree=phd,% ug: 鏈, mg: 瀛︾, mf: 涓撶, phd: 鍗氬+ type=thesis,% thesis: 姣曚笟璁烘枃锛宒esign: 姣曚笟璁捐 % systemfont=false,% 鑷畾涔夊瓧浣撹鍙栨秷娉ㄩ噴姝ら」 % customlatinfont=windows,% 璁剧疆鑻辨枃瀛楃闆� @@ -80,17 +81,17 @@ \begin{document} -%---------------------------------------- +%------------------------------------------------- % 灏侀潰銆佹憳瑕佸拰鐩綍 -%---------------------------------------- +%------------------------------------------------- \maketitle \input{chapters/Abstract.tex} \tableofcontents -%---------------------------------------- +%------------------------------------------------- % 姝f枃閮ㄥ垎 -%---------------------------------------- +%------------------------------------------------- \mainmatter \input{chapters/Introduction.tex} @@ -101,23 +102,23 @@ \input{chapters/Reference.tex} \input{chapters/Bibliography.tex} -%---------------------------------------- +%------------------------------------------------- % 鍙傝€冩枃鐚� -%---------------------------------------- +%------------------------------------------------- \printbibliography[ heading=bibintoc,% 鎻掑叆鐩綍鏉$洰 title=鍙傝€冩枃鐚甝 -%---------------------------------------- +%------------------------------------------------- % 鑷磋阿 -%---------------------------------------- +%------------------------------------------------- \input{chapters/Acknowledgement.tex} -%---------------------------------------- +%------------------------------------------------- % 闄勫綍閮ㄥ垎 -%---------------------------------------- +%------------------------------------------------- \appendix \input{chapters/Standard.tex} diff --git a/profile/abstract.sty b/profile/abstract.sty index 2ae8404ca2fe5faa38b6db91c066a98b5a0862ae..a20f1379985fb000ddc6781d58d653df96ea0b6f 100644 --- a/profile/abstract.sty +++ b/profile/abstract.sty @@ -87,7 +87,7 @@ \noindent 姣曚笟璁烘枃棰樼洰锛歕hspace{0.5em}\nju_underline:n {\nju_title\hfill}\\ \uline{\makebox[9em]{\nju_major}}涓撲笟\uline{\makebox[4em]{\nju_grade}}绾� - \str_if_eq:NNTF {\nju_degree} { d } {鍗殅{纭晑 + \str_if_eq:NNTF {\nju_degree} { phd } {鍗殅{纭晑 澹敓濮撳悕锛歕uline{\hfill\nju_student_name\hfill} \\ 鎸囧鏁欏笀锛堝鍚嶃€佽亴绉帮級锛歕uline{\hfill\nju_mentor_full\hfill}\par \egroup diff --git a/profile/cover.sty b/profile/cover.sty index 7e0cdd9b8ac75a6039e1249c53c9aae11ca68c8a..2829d0d5dd1433b1e5ac47571436bc68af186413 100644 --- a/profile/cover.sty +++ b/profile/cover.sty @@ -67,7 +67,7 @@ { { mg } { \tl_const:Nn \nju_degree_title {纭曞+} } { mf } { \tl_const:Nn \nju_degree_title {纭曞+涓撲笟} } - { d } + { phd } { \tl_const:Nn \nju_degree_title {鍗氬+} @@ -217,11 +217,12 @@ \begin{center} \def\ULthickness{1pt} {\kaishu\zihao{-0} 瀛hspace{0.5em}浣峔hspace{0.5em}璁篭hspace{0.5em}鏂噠 - {\kaishu\zihao{1} - \vskip \stretch{1} - \nju_cover_underline_nl:nn {14em}{\nju_title_a}\\ - \nju_cover_underline_nl:nn {14em}{\nju_title_b}\\ - \nju_cover_underline_nl:nn {14em}{\nju_title_c}\\ + { + \kaishu\zihao{1} + \vskip \stretch{1} + \nju_cover_underline_nl:nn {14em}{\nju_title_a}\\ + \nju_cover_underline_nl:nn {14em}{\nju_title_b}\\ + \nju_cover_underline_nl:nn {14em}{\nju_title_c}\\ } \vskip \stretch{1} {\kaishu\zihao{4}锛堥鍚嶅拰鍓鍚嶏級} diff --git a/profile/page.sty b/profile/page.sty index 6f987f6feae563f39e820975c91f4f63ebab602f..21295597a0acae91f7ca69c9031f872828fc447a 100644 --- a/profile/page.sty +++ b/profile/page.sty @@ -1,21 +1,31 @@ \ProvidesExplPackage{profile/page}{2021-09-11}{0.6.0}{NJU Thesis page layout} -% 璁烘枃椤电爜 椤佃剼灞呬腑銆佷簲鍙烽樋鎷変集鏁板瓧锛堟柊缃楅┈浣擄級杩炵画缂栫爜 +% 鏈鐢熼〉鐪夐〉鑴� \fancypagestyle{njuplain}{% + \fancyhead{} + \fancyfoot[C]{\zihao{5}\thepage} % 椤佃剼灞呬腑 浜斿彿鏂扮綏椹綋鏁板瓧 +} + +% TODO: 鐮旂┒鐢熼〉鐪夐〉鑴� +\fancypagestyle{njuheadings}{% \fancyhead{} \fancyfoot[C]{\zihao{5}\thepage} } -% the header line -\tl_set:Nn \headrulewidth {0pt} -% the footer line -\tl_set:Nn \footrulewidth {0pt} \str_if_eq:NNTF {\nju_degree} { ug } { + % the header line + \tl_set:Nn \headrulewidth {0pt} + % the footer line + \tl_set:Nn \footrulewidth {0pt} + \AtBeginDocument{\pagestyle{njuplain}} % 鏈鏃犻〉鐪夐〉鑴� } { - \AtBeginDocument{\pagestyle{plain}} % 鐮旂┒鐢熸湁椤电湁椤佃剼 + % the header line + % \tl_set:Nn \headrulewidth {1pt} + + \AtBeginDocument{\pagestyle{headings}} % 鐮旂┒鐢熸湁椤电湁椤佃剼 } % ctex鏍煎紡璁剧疆