
2 | Version: 2022.03.23
3 | "2020年四川大学研究生学业论文LaTex模版"
4 | -- Modified by Kevin T. Lee --
5 |
6 |

7 |

8 |

9 |
10 |
11 |
12 | # 四川大学2020研究生学业论文LaTex模版
13 |
14 | SCU graduate thesis latex template.
15 |
16 | 根据学院给的2020版《研究生学位论文规范写作指南》Word模版需求([参见PDF](./Reference%20Document/1-3%20《研究生学位论文规范写作指南》.pdf)),制作的LaTex模版。
17 |
18 | 使用该模版的多篇论文经受了2020/21年硕、博士论文评审的考验,请放心食用!
19 |
20 | **注意:已知Mac下可能会产生中文加粗文字复制乱码问题,请及时更新模板样式文件,并移除文档参数的kfont=,或直接使用2022_03_23版本**
21 |
22 | **该模板已到稳定版本,可直接下载使用[scu_thesis_2022_03_23](https://github.com/kevinleeex/scu_thesis_2020/releases/download/v2022.03.23/scu_thesis_2022_03_23.zip)中的最新模板。**
23 |
24 | - 如果你习惯在Overleaf中写作,可以参考[相关链接](#overleaf用户)。
25 |
26 | - 独立的模版样式文件,[scu_thesis_template](https://github.com/kevinleeex/scu_thesis_template),可用于替换```./Template```目录用于更新样式。
27 |
28 | **国内网速不好可使用**Gitee**镜像:**
29 |
30 | - [scu_thesis_2020](https://gitee.com/kevinleeex/scu_thesis_2020)
31 | - [scu_thesis_template](https://gitee.com/kevinleeex/scu_thesis_template)
32 |
33 | 克隆后修改```.gitmodules```文件内容如下:
34 |
35 | ```
36 | [submodule "Template"]
37 | path = Template
38 | url = https://gitee.com/kevinleeex/scu_thesis_template.git
39 | ```
40 |
41 | ## :warning:NOTICE
42 |
43 | 现在发现几处给出范例与描述不一致,已根据理解修改,如下:
44 |
45 | - 页眉说明为五号字,范例为小五,修改为**小五**。
46 | - 一些标题描述间隔一个汉字符,范例为一个空格符,修改为**一个汉字符**。
47 | - 封面页校名标题没有居中,修改为**居中**。
48 | - 描述中公式居中,范例为右对齐,修改为**居中**。
49 | - 描述中图和表题注都为宋体加粗,范例的表为黑体,修改为**宋体加粗**
50 | - 描述中偶数页页眉为论文题目,范例为学校名+论文类型,修改为**论文题目**。
51 | - 没有保留封面等内容的说明内容。
52 | - 部分内容由于排版软件的关系有些微差别。
53 | - 使用插图/表格目录,假如图题/表题中有引用,请注意最后的引用顺序,若出现正文的第一个引用不是从[1]开始,请清理临时文件,重新编译。
54 |
55 | > 如您发现更多问题请您提交ISSUES,或PR。
56 | >
57 | > **免责声明:本项目开源用于格式参考,本模版的作者和贡献者不承担任何人使用该模版所引发的任何问题(如格式审查等)。**
58 |
59 | ## Features
60 |
61 | - [x] 🍞 通过配置项自动生成不同类型的论文格式,你专注内容就好
62 | - [x] 🍔 「像素级」复刻原Word模版
63 | - [x] 🧀 通过```\incite``` 来进行行内引用
64 | - [x] 🍟 ```\bicaption```图片双语题注示例
65 | - [x] 🍕 ```\cdash```公式说明的破折号
66 | - [x] 🌮 ```\cref```智能参考
67 | - [x] 🥘 ```\tabincell```多行单元格
68 | - [x] 🍗 ```\makefigtablist```添加图表目录
69 |
70 | ## Options
71 |
72 | | 参数 | 说明 |
73 | | ------------ | -------------------------- |
74 | | professional | 专业学位 |
75 | | academic | 学术学位 |
76 | | master | 硕士 |
77 | | docter | 博士 |
78 | | approval | 送审版本,不生成声明和致谢 |
79 | | secret | 保密论文,将显示密级 |
80 | | color | 红色川大logo,默认为黑色 |
81 | |kfont= | 字体库,可根据操作系统填写,默认fandol|
82 |
83 | ## Release Notes
84 |
85 | See [Releases](https://github.com/kevinleeex/scu_thesis_2020/releases)
86 |
87 | - [2020-02-19] 将Template作为[子模块](https://github.com/kevinleeex/scu_thesis_template)方便样式的后续更新。
88 | - [2021-11-27] 增强对2019以上Tex Live中CTEX的兼容性。
89 | - [2022-03-23] **推荐**[scu_thesis_2022_03_03](https://github.com/kevinleeex/scu_thesis_2020/releases/download/v2022.03.23/scu_thesis_2022_03_23.zip)点击下载。
90 | - [**重要**] 修复Mac下可能产生的中文加粗字体复制乱码问题!统一字体
91 |
92 | ## Previews
93 |
94 | 封面示例:
95 | 
96 |
97 |
98 | ## Getting Started
99 |
100 | ### Prerequisites
101 |
102 | 在你构建项目之前,需要先安装以下的软件。
103 |
104 | - TexLive (2019)
105 | - MacTex(on mac)
106 | - Visual Studio Code (optional) with LaTex workshop plugin
107 |
108 | ### Installation
109 |
110 | 克隆项目。
111 |
112 | ```bash
113 | cd path-to-dir
114 | git clone https://github.com/kevinleeex/scu_thesis_2020.git
115 | cd scu_thesis_2020
116 | git submodule init
117 | git submodule update --remote
118 | ```
119 |
120 | **后续通过```git submodule update --remote```命令 更新样式子模块到最新版本,强制更新加上```-f```参数,合并更新加上```--merge```参数。**
121 |
122 | ### Usages
123 |
124 | 打开并编辑 ```MainBody.tex```
125 |
126 | ```shell
127 | % 设置文档属性
128 | % 参数说明
129 | % professional: 专业学位
130 | % academic: 学术学位
131 | % master: 硕士
132 | % doctor: 博士
133 | % approval: 送审版本,将不生成声明
134 | % secret: 保密论文,将显示密级
135 | % color: 红色川大logo
136 | % kfont=<⟨none|adobe|fandol|founder|mac|macnew|macold|ubuntu|windows|windowsnew|windowsold|...⟩>,
137 | % 不填写则默认fandol
138 | % 打开MainBody.tex根据需要填入
139 | \documentclass[professional,master]{./Template/scuthesis2020}
140 |
141 | % 在./Chapters/ 文件夹中写作,在MainBody.tex中包含
142 | % 在./Chapters/Statement.tex 中撰写中文声明
143 | % 在./Chapters/0_0_Abstract.tex 中撰写摘要
144 | % 在./Chapters/Achievements.tex 中撰写学术成果
145 | % 在./Chapters/Thanks.tex 中撰写致谢
146 | % 在./ReferenceDocument/ 文件夹中,存放用于参考的文献
147 | % 在./ReferenceBase.bib 文件中存放bibTex引用
148 | ```
149 |
150 | 使用 **xelatex** 编译 LaTex 文件,执行```xeLatex->bibTex->xeLatex->xeLatex``` 方案.
151 |
152 | #### Linux 与 macOS 用户
153 |
154 | 推荐使用本模版提供的 ```Makefile``` 进行编译,可以使用如下几条可用的命令:
155 |
156 | ```shell
157 | make all # 执行清理、编译pdf、清理过程
158 | make pdf # 编译生成 MainBody.pdf
159 | make clean # 删除编译所产生的辅助文件
160 | make cleanall # 删除 MainBody.pdf 和所有辅助文件
161 | make wordcount # 论文字数统计
162 | ```
163 |
164 | #### Windows 用户
165 |
166 | 对于 Windows 用户,模版提供了编译脚本```Compile.bat```。可以双击直接编译,也可以在命令提示符窗口中使用脚本提供的额外功能:
167 |
168 | ```shell
169 | .\Compile.bat thesis # 编译生成 MainBody.pdf
170 | .\Compile.bat clean # 删除编译所产生的辅助文件
171 | .\Compile.bat cleanall # 删除 MainBody.pdf 和所有辅助文件
172 | .\Compile.bat wordcount # 论文字数统计
173 | ```
174 |
175 | #### Overleaf用户
176 |
177 | 可以通过[在线查看](https://www.overleaf.com/read/fsqsnqnptrns)来进行预览,也可以下载后作为自己的Overleaf项目,注意设置编译器为**xeLatex**,已经对高版本Tex Live进行兼容!
178 |
179 | ### Tips
180 |
181 | - 通过**Detexify**软件,可以通过手写来识别符号,给出相应的Latex符号标记。
182 | - 通过**Mathpix Snipping Tool**软件,可以通过截屏公式,来生成相应的Latex公式代码。
183 | - 通过**pandoc**命令行程序,可以将Tex文件生成其他格式文件,如```docx```,可以用于查重等。
184 | ```bash
185 | pandoc -s MainBody.tex -o MainBody.docx --bibliography=ReferenceBase.bib
186 | ```
187 |
188 | ## Powered By
189 |
190 | - [cuiao's template](https://github.com/cuiao/SCU_ThesisDissertation_LaTeXTemplate)
191 |
192 | 向以上项目表示感谢。
193 |
194 | ## Support me
195 |
196 | 如果您喜欢这个项目可以点个Star,或提出Issue或通过PR提交有用的新特性,也欢迎推荐给其他人使用,这对我和项目都是很大的激励。
197 |
198 | 或者点击