Skip to content

Commit c6bbbc3

Browse files
committed
fix: add same method hint to PT.
1 parent 2f0e7e4 commit c6bbbc3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: templates/paper-translation/main.tex

+24
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@
2424
\documentclass[bachelor,translation]{bitbook}
2525
% 如果想要修改样式,但无法找到样式在哪里定义:请参考 https://bithesis.bitnp.net/Guide/4-Others/Troubleshooting.html#%E6%83%B3%E8%A6%81%E4%BF%AE%E6%94%B9%E9%83%A8%E5%88%86%E6%A0%B7%E5%BC%8F-%E4%BD%86%E6%98%AF%E6%89%BE%E4%B8%8D%E5%88%B0%E6%A0%B7%E5%BC%8F%E5%9C%A8%E5%93%AA%E9%87%8C%E5%AE%9A%E4%B9%89
2626

27+
% 另一个临时的“修改页眉文字”的解决方法(非常不优雅,只作为临时措施)。
28+
% 请注释掉以下 20 行内容使用。
29+
% 从原有主题继承自定义主题
30+
\fancypagestyle{BIThesisCustom}[BIThesis]{
31+
% 定义页眉、页码
32+
\fancyhead[C]{\zihao{4}\ziju{0.08}\songti{北京理工大学本科生毕业设计(论文)外文翻译覆盖}}
33+
}
34+
% 设置章节格式
35+
\ctexset{chapter={
36+
pagestyle = BIThesisCustom,
37+
}
38+
}
39+
% 前置页面(原创性声明、中英文摘要、目录等)
40+
\renewcommand{\frontmatter}{
41+
\pagenumbering{Roman}
42+
\pagestyle{BIThesisCustom}
43+
}
44+
% 正文页面
45+
\renewcommand{\mainmatter}{
46+
\pagenumbering{arabic}
47+
\pagestyle{BIThesisCustom}
48+
}
49+
% ------------------------------------------------------------------
50+
2751
% 参考文献引用文件位于 misc/ref.bib
2852
\addbibresource{misc/ref.bib}
2953

0 commit comments

Comments
 (0)