diff --git a/chapters/Acknowledgement.tex b/chapters/Acknowledgement.tex index 2f39380bc145dcdbaed3032124430b973a1cf375..d21bbbb658d6252d56d876550c2fb9d412a43600 100644 --- a/chapters/Acknowledgement.tex +++ b/chapters/Acknowledgement.tex @@ -1,4 +1,5 @@ -\chapter*{鑷磋阿} -\addcontentsline{toc}{chapter}{鑷磋阿} +\begin{acknowledgement} 鎰熻阿\href{https://git.nju.edu.cn/nju-lug/lug-introduction}{NJU Linux User Group}銆� + +\end{acknowledgement} diff --git a/chapters/Layout.tex b/chapters/Layout.tex index e70153ceb7c80e655bd36984fc7fc8b59826be74..e8def4e0ccd417161d915795affda3ca23163ef9 100644 --- a/chapters/Layout.tex +++ b/chapters/Layout.tex @@ -118,6 +118,10 @@ secondmentor 鐢ㄤ簬鎸囧畾鏄惁鍦ㄥ皝闈㈡墦鍗扮浜屽甯� 鍦ㄤ娇鐢╘hologo{LuaLaTeX}缂栬瘧鏃讹紝鐮旂┒鐢熶腑鏂囨憳瑕侀〉鐨勬爣棰樹細鍑虹幇绌烘牸鏃犱笅鍒掔嚎鐨勯棶棰橈紝鐩墠姝e湪绉瀬瀵绘眰瑙e喅鏂规硶銆� +\section{鍓嶈█椤祡 + +浣跨敤preface鐜瀹氫箟 + \section{鐩綍椤祡 鐩綍椤垫牸寮忓畾鍒朵簬\texttt{profile/page.sty} @@ -136,11 +140,7 @@ secondmentor 鐢ㄤ簬鎸囧畾鏄惁鍦ㄥ皝闈㈡墦鍗扮浜屽甯� \section{鑷磋阿椤祡 -鑷磋阿椤甸噰鐢ㄦ棤缂栧彿绔犺妭褰㈠紡锛岄渶瑕佹墜鍔ㄦ彃鍏ョ洰褰� -\begin{lstlisting}[language=TeX] -\chapter*{鑷磋阿} -\addcontentsline{toc}{chapter}{鑷磋阿} -\end{lstlisting} +鍚屽墠瑷€锛屼娇鐢╝cknowledgement鐜 \section{闄勫綍椤祡 diff --git a/chapters/Preface.tex b/chapters/Preface.tex new file mode 100644 index 0000000000000000000000000000000000000000..c1ad7d366021d5823f6f4aee074bcdf2236e1276 --- /dev/null +++ b/chapters/Preface.tex @@ -0,0 +1,13 @@ +\begin{preface} + +鎴戞兂锛屾瘡涓猏hologo{LaTeX}鏋佸鐨勬渶缁堢洰鏍囬兘鏄啓涓€涓睘浜庤嚜宸辩殑class锛岃€岃嚜宸卞緢骞歌繍鍦板湪\href{https://git.nju.edu.cn/nju-lug/lug-introduction}{NJU Linux User Group}鑾峰緱浜嗚繖鏍风殑鏈轰細銆� + +杩欎釜妯℃澘涔熺畻閫佺粰鑷繁鐨勬瘯涓氱ぜ鐗╁ソ浜嗐€� + +\vspace{1cm} +\begin{flushright} +寰愰樋閫歕\ +2021骞村垵绉嬩簬鎵窞 +\end{flushright} + +\end{preface} diff --git a/njuthesis.cls b/njuthesis.cls index 59822c351a2816c6891d6528a278b4c65be2a9a9..8f8c7b6404a085fff75d0714f9ba001b7236eb3b 100644 --- a/njuthesis.cls +++ b/njuthesis.cls @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesExplClass{njuthesis}{2021-09-12}{0.8.1}{NJU Thesis LaTeX Template} +\ProvidesExplClass{njuthesis}{2021-09-12}{0.8.2}{NJU Thesis LaTeX Template} % 閫氳繃绫讳紶閫掑弬鏁� \RequirePackage{l3keys2e} diff --git a/njuthesis.tex b/njuthesis.tex index 7d3a4626b2ac1c9c83731b52e7be8125f85da212..becc87552a9698613cf2ac073f48387b596f6303 100755 --- a/njuthesis.tex +++ b/njuthesis.tex @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % NJU Thesis % 鍗椾含澶у姣曚笟璁烘枃LaTeX妯℃澘 -% Version 0.8.1 (2021-09-12) +% Version 0.8.2 (2021-09-12) % % 璇峰叧娉ㄩ」鐩湴鍧€浠ヨ幏鍙栨渶鏂板彉鍖� % https://github.com/nju-lug/NJUThesis @@ -82,11 +82,14 @@ \begin{document} %------------------------------------------------- -% 灏侀潰銆佹憳瑕佸拰鐩綍 +% 灏侀潰銆佹憳瑕併€佸墠瑷€鍜岀洰褰� %------------------------------------------------- \maketitle + \input{chapters/Abstract.tex} +\input{chapters/Preface.tex} + \tableofcontents %------------------------------------------------- diff --git a/profile/page.sty b/profile/page.sty index 5c480f3025b0dba51ac8dd5cf064d3299e9c06f2..23597392408a0e1e7619e568816311836522482e 100644 --- a/profile/page.sty +++ b/profile/page.sty @@ -84,7 +84,8 @@ } \chapter*{鐩甛hspace{2em}褰晑% - \pdfbookmark[0]{鐩綍}{鐩綍} % 灏嗙洰褰曢〉鎻掑叆pdf涔︾ + % \pdfbookmark[0]{鐩綍}{鐩綍} % 灏嗙洰褰曢〉鎻掑叆pdf涔︾ + \addcontentsline{toc}{chapter}{鐩綍} % \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% \@starttoc{toc}% \if@restonecol\twocolumn\fi @@ -98,3 +99,15 @@ } } } + +% 瀹氬埗鍓嶈█銆佽嚧璋㈢幆澧� +\newenvironment{preface} +{% + \chapter*{鍓嶈█} + \addcontentsline{toc}{chapter}{鍓嶈█} +}{} +\newenvironment{acknowledgement} +{% + \chapter*{鑷磋阿} + \addcontentsline{toc}{chapter}{鑷磋阿} +}{}