diff --git a/BUPTthesisbachelor.sty b/BUPTthesisbachelor.sty index 8d8b74c..874b47b 100644 --- a/BUPTthesisbachelor.sty +++ b/BUPTthesisbachelor.sty @@ -79,7 +79,7 @@ \newcommand{\refbodyfont}{\songti\wuhao\normalfont} % 参考文献字体 \newcommand{\thanktitlefont}{\heiti\sanhao\textbf} % “致谢”字样的字体 \newcommand{\appendixtitlefont}{\heiti\sanhao\textbf} % “附录”字样的字体 -\newcommand{\translationtitlefont}{\heiti\sanhao} % “外文译文”字样的字体 +\newcommand{\translationtitlefont}{\heiti\sanhao\textbf} % “外文译文,外文资料”字样的字体 % Word spacing % Usage: \ziju{spacing} spacing can be 1em, 10pt, etc. @@ -103,6 +103,14 @@ \renewcommand{\headrulewidth}{0.8pt} } +\fancypagestyle{catalogmatter}{% +\fancyhf{} % clear all header and footer fields +\fancyhead[C]{\headfont{北京邮电大学本科毕业设计(论文)}} +\fancyfoot[C]{\footnotefont{\thepage}} +\renewcommand{\headrulewidth}{0.8pt} +} + + \fancypagestyle{frontmatter}{% \fancyhf{} % clear all header and footer fields \fancyhead{} @@ -110,6 +118,7 @@ \renewcommand{\headrulewidth}{0pt} } + % Bookmark (Chinese bookmark supported) \usepackage{url} \def\UrlFont{} @@ -204,7 +213,7 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} % \renewcommand\mainmatter{% \if@openright\cleardoublepage\else\clearpage\fi% \@mainmattertrue% - \pagenumbering{arabic}% Roman style page number + \pagenumbering{arabic}% Arabic style page number \pagestyle{mainmatter} } \makeatother% diff --git a/main.pdf b/main.pdf index f41e2a6..73c1e50 100644 Binary files a/main.pdf and b/main.pdf differ diff --git a/main.tex b/main.tex index 82cb687..e4faf45 100644 --- a/main.tex +++ b/main.tex @@ -32,12 +32,13 @@ \input{main.cfg} % Main items \include{abstract} % Abstract \fancypagestyle{plain}{\pagestyle{frontmatter}} -\frontmatter\tableofcontents % Content +\fancypagestyle{plain}{\pagestyle{catalogmatter}}\pagenumbering{Roman}\tableofcontents % Content % 正文 \newpage\mainmatter \fancypagestyle{plain}{\pagestyle{mainmatter}} + %\let\cleardoublepagebak=\cleardoublepage %\let\cleardoublepage\relax % Make new chapter stay on old page