Skip to content

Commit

Permalink
fix catalog head/foot bugs due to pull/19
Browse files Browse the repository at this point in the history
  • Loading branch information
Makiras committed Jun 1, 2023
1 parent b7961f1 commit 4cc8273
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
11 changes: 1 addition & 10 deletions BUPTthesisbachelor.sty
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,13 @@
\renewcommand{\headrulewidth}{0.8pt}
}

\fancypagestyle{catalogmatter}{%
\fancypagestyle{frontmatter}{%
\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
6 changes: 3 additions & 3 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

\input{main.cfg} % Main items
\include{abstract} % Abstract
\fancypagestyle{plain}{\pagestyle{frontmatter}}

\cleardoublepage
\fancypagestyle{plain}{\pagestyle{catalogmatter}}\pagenumbering{Roman}\tableofcontents % Content
\fancypagestyle{plain}{\pagestyle{frontmatter}}
\frontmatter
\tableofcontents % Content

% 正文
\newpage\mainmatter
Expand Down

0 comments on commit 4cc8273

Please sign in to comment.