Skip to content

Commit

Permalink
feat: add paper-translation-related code.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Jul 12, 2021
1 parent 01c3ae7 commit f08cc51
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
template: [graduation-thesis, proposal-report, lab-report]
template: [graduation-thesis, proposal-report, lab-report, paper-translation]

steps:
- name: Checkout to BIThesis-scaffold
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ copy:
cp bitbook.cls $(SCAFFOLDDIR)/graduation-thesis
cp bitart.cls $(SCAFFOLDDIR)/lab-report
cp bitart.cls $(SCAFFOLDDIR)/proposal-report
cp bitbook.cls $(SCAFFOLDDIR)/paper-translation

dev:
ls bithesis.dtx | entr -s 'yes y | make doc && make copy'
Expand Down
21 changes: 20 additions & 1 deletion bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@
\newif\if@bit@bachelor
\newif\if@bit@master
\newif\if@bit@docter
\newif\if@bit@docTranslation

\DeclareOption{bachelor}{\@bit@bachelortrue}
\DeclareOption{translation}{\@bit@docTranslationtrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ExecuteOptions{bachelor}

Expand Down Expand Up @@ -261,7 +263,6 @@
\newcommand{\xihei}{\CJKfamily{xihei}}



% 主题页面格式:BIThesis
\fancypagestyle{BIThesis}{
% 页眉高度
Expand All @@ -277,6 +278,24 @@
\renewcommand{\headrulewidth}{0.6pt}
}

\if@bit@docTranslation
% 主题页面格式:BIThesis
\fancypagestyle{BIThesis}{
% 页眉高度
\setlength{\headheight}{20pt}
% 页码高度(不完美,比规定稍微靠下 2mm)
\setlength{\footskip}{14pt}

\fancyhf{}
% 定义页码
\fancyfoot[C]{\songti\zihao{5} \thepage}
% 页眉分割线稍微粗一些
\renewcommand{\headrulewidth}{0.6pt}

% 定义页眉
\fancyhead[C]{\zihao{4}\ziju{0.08}\songti{北京理工大学本科生毕业设计(论文)外文翻译}}
}
\fi
% 设置章节格式
% 一级标题:黑体,三号,加粗;间距:段前 0.5 行,段后 1 行;
\ctexset{chapter={
Expand Down

0 comments on commit f08cc51

Please sign in to comment.