Skip to content

Commit 3e04009

Browse files
authored
Merge pull request #12 from SYSU-SCC/add-help
feature: added instructions for use
2 parents 0e4c45c + ea5df16 commit 3e04009

File tree

8 files changed

+119
-28
lines changed

8 files changed

+119
-28
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
- [x] 校验排版格式要求,满足相关文件中的格式要求。 如[附件1.中山大学本科生毕业论文(设计)写作与印制规范.doc](./specifications/附件1.中山大学本科生毕业论文(设计)写作与印制规范.doc)
1010
- 本科生版本done,可见 [#9](https://github.com/SYSU-SCC/sysu-thesis/pull/9) [#10](https://github.com/SYSU-SCC/sysu-thesis/pull/10)
1111
- 已merge到主线,学院老师已确认。
12-
- [ ] 增加使用说明、增加更多的例子、完善文献引用样式
13-
- [ ] 增加CTAN、[overleaf](https://www.overleaf.com/) 等模板库的自动发布,可一键在overleaf中打开项目.
12+
- [x] 增加使用说明,可见 [#12](https://github.com/SYSU-SCC/sysu-thesis/pull/12)
13+
- [ ] 增加更多的例子、完善文献引用样式
14+
- [ ] 增加CTAN、[overleaf](https://www.overleaf.com/) 等模板库的自动发布,可一键在overleaf中打开项目。
1415

1516
未来将要支持的feature如下:
1617

docs/chap03.tex

Lines changed: 116 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,125 @@
1-
\chapter{Latex环境配置说明}
1+
\chapter{\LaTeX 模板配置与使用}
2+
23

34
\label{cha:sysu-thesis-latex-install-guide}
45

5-
本部分将会整理不同环境下Latex环境的配置指南,方便各位同学使用本Latex模板。
6+
本部分内容将让你能够通过本\LaTeX 模板生成一份可用的pdf,并为后面修改源码撰写毕设做准备。
7+
8+
首先,我们会展示最简单的方法:直接使用overleaf进行编写。然后,我们整理了不同环境下\LaTeX 环境的配置指南与不同写作工具的配置技巧,方便各位同学使用本\LaTeX 模板。最后,我们说明了如何开始编写自己的毕业论文(设计)。
9+
10+
11+
\section{使用Overleaf编写毕设}
12+
13+
Overleaf是一个在线的Latex文档协作平台。我们不需要配置任何环境,便能够在上面直接使用本模板进行写作。操作步骤如下:
14+
15+
第一步,下载本项目压缩包(从\url{https://github.com/SYSU-SCC/sysu-thesis/releases}处下载即可),注意需要下载zip格式的压缩包。
16+
然后,我们在Overleaf上新建项目,并上传该压缩包,可参考\autoref{fig:overleaf-new-proj}。
17+
18+
19+
\begin{figure}[h]
20+
\centering
21+
\includegraphics[width=0.2\textwidth]{image/chap03/overleaf-create-proj.jpg}
22+
\includegraphics[width=0.7\textwidth]{image/chap03/overleaf-upload-proj.jpg}
23+
\caption{在Overleaf上创建并上传压缩包。}
24+
\label{fig:overleaf-new-proj}
25+
\end{figure}
26+
27+
第二步,在Overleaf的菜单中调整编译工具为\texttt{xelatex},可参考\autoref{fig:overleaf-config}。
28+
29+
\begin{figure}[h]
30+
\centering
31+
\includegraphics[width=0.6\textwidth]{image/chap03/overleaf-config.jpg}
32+
\caption{在Overleaf上调整编译工具}
33+
\label{fig:overleaf-config}
34+
\end{figure}
35+
36+
37+
第三步,点击编译,得到本pdf,可以开始修改pdf了!最终可见\autoref{fig:overleaf-example}。
38+
39+
40+
\begin{figure}[h]
41+
\centering
42+
\includegraphics[width=0.9\textwidth]{image/chap03/overleaf-example.jpg}
43+
\caption{Overleaf使用例子}
44+
\label{fig:overleaf-example}
45+
\end{figure}
46+
47+
48+
49+
\section{编译环境配置}
50+
51+
编译环境配置相对来说比较简单,下载Tex Live2020并如同一般的程序一样安装即可。
52+
53+
\subsection{编译环境配置:Window篇}
54+
55+
\url{https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/}上下载Tex Live2020并参考教程\footnote{可以参考\url{https://zhuanlan.zhihu.com/p/58811994}}安装即可。
56+
57+
\subsection{编译环境配置:Linux篇}
58+
59+
\url{https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/}上下载Tex Live2020并参考教程\footnote{可以参考\url{https://zhuanlan.zhihu.com/p/55894177}}安装即可。
60+
61+
62+
\subsection{编译环境配置:MacOS篇}
63+
64+
在MacOS上配置Latex的环境,这里我们使用的是MacTex。
65+
66+
\begin{enumerate}
67+
\item \url{https://www.tug.org/mactex/}下载MacTex安装。
68+
\item 安装步骤:不详细展开,按照图形界面点击即可, 傻瓜式安装。
69+
\end{enumerate}
70+
71+
TIPS:MacTex文件比较大,有2G多,介意的话可以选择MacTex\_Basic包,只有100M以内,但是如果安装MacTex\_Basic,后期可能会遇到各种缺包的问题。
72+
73+
74+
安装完成之后,可以简单测试一下安装是否成功。如可以查看Texshop应用是否安装好,或者在命令行测试一下\texttt{xelatex}命令是否可用。
75+
76+
\section{写作环境配置}
77+
78+
不同的写作工具对应不同的写作环境。这里我们给出几个工具的配置例子以供参考。
79+
80+
\subsection{模板编译流程}
81+
82+
由于\LaTeX 的限制,本模板需要经过四次编译才能生成完整的论文:
83+
84+
\begin{enumerate}
85+
\item 先使用xelatex编译一次
86+
\item 再使用bibtex编译一次
87+
\item 然后使用xelatex编译两次
88+
\end{enumerate}
89+
90+
本编译流程已经写在Makefile中,修改模板源码后只需要执行\texttt{make pdf}即可按照该流程进行编译并生成最终的pdf。
91+
92+
93+
94+
\subsection{写作环境配置:Visual Studio Code}
95+
96+
Visual Studio Code是微软公司推出的轻量代码编辑器,我们可以做一些简单的配置,便可以用该编辑器修改我们的\LaTeX 模板,并实现一键编译。
97+
98+
\begin{enumerate}
99+
\item 安装 Visual Studio Code。
100+
\item 安装 LaTeX Workshop 插件。
101+
\end{enumerate}
102+
103+
本项目的\texttt{.vscode/setting.json}下已经包含了与前面所述编译流程相同的配置。正常配置下,每次修改模板源码后按下保存(Ctrl+S),就能够自动进行编译产生pdf。效果图如\autoref{fig:vscode-example}所示。
104+
105+
106+
\begin{figure}[h]
107+
\centering
108+
\includegraphics[width=\linewidth]{image/chap03/vscode-example.png}
109+
\caption{vscode配置好后的样例}
110+
\label{fig:vscode-example}
111+
\end{figure}
112+
113+
114+
\section{如何开始写毕业论文(设计)}
6115

7-
待补充,欢迎提交PR
116+
首先将所有个人信息,包括学号、姓名、专业、论文题目等,在\texttt{./docs/info.tex}中逐项进行更新
8117

118+
然后我们再编辑\texttt{./docs/abstract.tex}补充论文摘要。
9119

10-
\section{编译环境配置:Window篇}
11-
% TODO
12-
\section{编译环境配置:Linux篇}
13-
% TODO
14-
\section{编译环境配置:MacOS篇}
15-
% TODO
120+
到了论文主体部分,我们可以自行编辑\texttt{./docs/chap01.tex},\texttt{./docs/chap02.tex}等文件进行编辑。如果章数不够,可以自行修改\texttt{main.tex}增加新的章节。
16121

122+
当论文主体编写完成后,我们再编辑\texttt{./docs/ack.tex}作为论文致谢。
17123

18-
\section{写作环境配置:vscode篇}
19-
% TODO
20-
\section{写作环境配置:overleaf篇}
21-
% TODO
22124

125+
% 首先将个人信息写到\texttt{./docs/info.tex}中。

docs/info.tex

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,10 @@
2121
\etitlefirst{Unofficial \LaTeX \ Template}
2222
\etitlesecond{for SYSU Graduation Thesis}
2323

24-
% 另外一种封面的论文题目. 换行使用换行符("\\")
25-
%\title{
26-
% 中山大学 \\
27-
% 本科毕业论文非正式模版
28-
%}
29-
3024
% 中文标题
3125
\ctitle{中山大学本科毕业论文非正式模版}
3226
\etitle{Unofficial \LaTeX\ Template for Undergraduate Thesis of SYSU}
3327

34-
% 解决英文摘要页标题过长问题 (Issue 49&63)
35-
% 当\etitle的长度超过页边距时,请使用下面的命令自行断行
36-
% 此操作只影响英文摘要页的标题,不影响页眉的标题
37-
% 如果不需要断行,将\eabstracttitlesecond{ }留空即可
38-
\eabstracttitlefirst{Unofficial \LaTeX\ Template}
39-
\eabstracttitlesecond{for SYSU Graduation Thesis}
40-
4128
% 作者详细信息
4229
\author{王小明}
4330
\cauthor{王\ \ 明} % 封面作者

image/chap03/overleaf-config.jpg

352 KB
Loading
95 KB
Loading

image/chap03/overleaf-example.jpg

842 KB
Loading
65.7 KB
Loading

image/chap03/vscode-example.png

731 KB
Loading

0 commit comments

Comments
 (0)