Skip to content

Commit

Permalink
更改“外文译文”字体为黑体三号加粗 & 目录部分添加页眉 & 更新main.pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanluzhan authored and Makiras committed May 24, 2023
1 parent 299b211 commit a785dd0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions BUPTthesisbachelor.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -103,13 +103,22 @@
\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{}
\fancyfoot[C]{\footnotefont{\thepage}} % except the center
\renewcommand{\headrulewidth}{0pt}
}


% Bookmark (Chinese bookmark supported)
\usepackage{url}
\def\UrlFont{}
Expand Down Expand Up @@ -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%
Expand Down
Binary file modified main.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a785dd0

Please sign in to comment.