开始使用
我们通过向 thesis 输入论文的参数,得到对应的返回页面,并通过类似 React 的方式将这些页面组装起来,例如:
1#let (2 twoside,3 doc,4 preface,5 mainmatter,6 appendix,7 fonts-display-page,8 cover,9 committee-page,10 decl-page,11 abstract,12 abstract-en,13 bilingual-bibliography,14 outline-page,15 list-of-figures,16 list-of-tables,17 notation,18 acknowledgement,19 publication,20 decision,21) = thesis(22 doctype: "master",23 degree: "professional",24 anonymous: false,25 twoside: false,26 info: (27 title: ("毕业论文中文题目", "有一点长有一点长有一点长有一点长有一点长有一点长"),28 title-en: "Analysis of the genetic diversity within and between the XX population revealed by AFLP marker",29 grade: "20XX",30 student-id: "1234567890",31 author: "张三",32 author-en: "San Zhang",33 secret-level: "无",34 secret-level-en: "Unclassified",35 department: "信息科学与技术学院",36 department-en: "School of Information Science and Technology",37 discipline: "计算机科学与技术",38 discipline-en: "Computer Science and Technology",39 major: "计算机科学",40 major-en: "Computer Science",41 field: "人工智能",42 field-en: "Artificial Intelligence",43 supervisor: ("李四", "教授"),44 supervisor-en: "Professor My Supervisor",45 submit-date: datetime.today(),46 ),47 bibliography: bibliography.with("ref.bib"),48)这里具体的参数含义以及要求可以见 thesis() 参数文档 以及 info 中各个名词的意义。
除去这些特定学位论文才有的页面,其余页面可以根据需求自己选择是否加入到论文中。
在开始搭配页面前,我们需要明确文档的设置以及页面构成的顺序,这些都需要去阅读论文装订规范。
一般而言,设置的顺序为:
- 页面 & 元数据设置
- 封面页
- 扉页
- 前言设置
- 摘要
- 目录
- 正文设置
- 参考文献
- 附录设置
- 后记
- …
我们将通过页面设置的顺序一一 解释如何使用我们的模板(指得注意的是,由于本科生论文的模板要求较少,因此正文部分的诸多要求参照研究生学位论文进行编写)
可以通过 twoside 参数来控制双面打印,例如传入 thesis 时,设置 twoside: true 即可得到双面打印版本的论文