diff --git a/profile/cover.sty b/profile/cover.sty index 2829d0d5dd1433b1e5ac47571436bc68af186413..5d3c0813ef275618df168c7dc8d0c70695ad9289 100644 --- a/profile/cover.sty +++ b/profile/cover.sty @@ -350,7 +350,8 @@ } % 閲嶅畾涔塵aketitle鐢熸垚灏侀潰 -\RenewDocumentCommand \maketitle {} {% +\tl_set:Nn \maketitle +{% \str_if_eq:NNTF { \nju_degree } { ug } { \nju_printcover_nl % 鍥藉鍥句功棣嗗皝闈� diff --git a/profile/page.sty b/profile/page.sty index 21295597a0acae91f7ca69c9031f872828fc447a..5d9a72eb0a07bfd404dfa976da005e58f166a94a 100644 --- a/profile/page.sty +++ b/profile/page.sty @@ -23,8 +23,11 @@ } { % the header line - % \tl_set:Nn \headrulewidth {1pt} + \tl_set:Nn \headrulewidth {0pt} + % the footer line + \tl_set:Nn \footrulewidth {0pt} + % \AtBeginDocument{\pagestyle{njuplain}} % 鏃犻〉鐪夐〉鑴� \AtBeginDocument{\pagestyle{headings}} % 鐮旂┒鐢熸湁椤电湁椤佃剼 } @@ -32,8 +35,8 @@ % 鐩綍鏍囬 涓夊彿瀹嬩綋鍔犵矖 % 鍚勯儴鍒嗘爣棰� 鍥涘彿榛戜綋 \ctexset{ - contentsname = \songti\bfseries\zihao{3}鐩甛hspace{2em} 褰�, - chapter/format = \zihao{4}\heiti\centering, + % contentsname = \songti\bf\zihao{3}鐩甛hspace{2em} 褰�, + contentsname = 鐩綍, section/format = \zihao{4}\heiti\raggedright, subsection/format = \zihao{4}\heiti\raggedright, subsubsection/format = \zihao{4}\heiti\raggedright @@ -63,8 +66,35 @@ {\hspace*{-4em}} {~\titlerule*[0.6pc]{$.$}~\contentspage} -% 灏嗙洰褰曢〉鎻掑叆pdf涔︾ -\let\savedtableofcontents\tableofcontents -\renewcommand{\tableofcontents}{% - \pdfbookmark{鐩綍}{鐩綍} - \savedtableofcontents} +\tl_set:Nn \tableofcontents +{% + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi + + % 淇敼鐩綍鏍囬瀛椾綋 + \ctexset{ + chapter = { + format = \songti\bf\zihao{3}\centering, + beforeskip = -10mm, + % afterskip = 50pt, + } + } + + \chapter*{鐩甛hspace{2em}褰晑% + \pdfbookmark[0]{鐩綍}{鐩綍} % 灏嗙洰褰曢〉鎻掑叆pdf涔︾ + % \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% + \@starttoc{toc}% + \if@restonecol\twocolumn\fi + + % 鎭㈠姝e父绔犺妭鏍囬瀛椾綋 + \ctexset{ + chapter = { + format = \zihao{4}\heiti\centering, + beforeskip = 10pt, + afterskip = 60pt, + } + } +}