Skip to content

Commit

Permalink
update front cover typesetting
Browse files Browse the repository at this point in the history
  • Loading branch information
lirundong committed Feb 13, 2020
1 parent 5748b65 commit 0499d6d
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,8 +4,11 @@

## 2020-02-13

> Release: v0.1.0
1. 修改 Style/artratex.sty 和 Style/ucasthesis.cls,配置 `unicode-math``\math***` 宏的排版方式为 `sym`,以解决附录 A.2 中 `\mathbf` 无效,以及各 `\math***` 宏无法正确设定希腊字母及符号的问题;
2. 移除 pdfTeX 支持(使用 pdfTeX 编译将直接报错),将针对 `unicode-math` 定义的数学宏移至 Style/artracom.sty 中;
3. 修改 Style/ucasthesis.cfg 和 Style/ucasthesis.cls,使封面符合上科大规范需求;

## 2020-02-12

Expand Down
33 changes: 31 additions & 2 deletions README.md
@@ -1,10 +1,39 @@
# \[施工中\] ShangHaiTech university THESIS (sht-thesis)
# ShangHaiTech university THESIS (sht-thesis)

`sht-thesis` 项目派生于 [`mohuangrui/ucasthesis`](https://github.com/mohuangrui/ucasthesis),是根据《上海科技大学研究生学位论文撰写规范(初稿)》编写的、适用于上海科技大学学位论文写作的**非官方** LaTeX 模板。

## 模板下载

请在页面右边点击:**Clone or download -> Download Zip**
- 稳定版:
- GitHub Release: 请移步至 [release](https://github.com/CrazyRundong/sht-thesis/releases) 页面,根据发布信息下载相应文件;
- CTAN: TODO
- 开发版:直接克隆 master 分支
```bash
git clone https://github.com/CrazyRundong/sht-thesis.git
```

## 快速上手

在下载或克隆代码库后,依次

0. **完整安装**一个现代化的 TeX 发行版:
- Windows 或 Linux:[TeX Live](https://www.tug.org/texlive/)
- macOS:[MacTeX](https://www.tug.org/mactex/)
1. 下载所需字体文件([OneDrive](https://1drv.ms/u/s!Aucomy63mN0inHGS13-EgyE7GTrL?e=WFvhpL)),将解压后的字体放置在项目根目录的 Fonts 文件夹内;
2. 使用 XeTeX 或 LuaTeX 引擎编译项目(**注意**:不支持 pdfTeX):
- Windows: 双击 `artratex.bat` 即可完成编译;
- Linux 或 macOS: 以 XeTeX 引擎为例,使用项目自带的编译脚本:
```bash
./artratex.sh ax
```
编译所得文件在 Tmp/Thesis.pdf;或使用 latexmk:
```bash
latexmk --pdfxe Thesis.tex
# 若使用 LuaTeX 引擎,则执行
# latexmk --pdflua Thesis.tex
```
编译所得文件在根目录下的 Thesis.pdf;
3. 组成论文的各 `*.tex` 文件在 Tex 目录下。开始愉快的写作之旅吧 :smirk:

## 重要建议

Expand Down
2 changes: 1 addition & 1 deletion Style/ucasthesis.cfg
Expand Up @@ -39,7 +39,7 @@
\def\ucas@label@ch@subject{流动站(一级学科)名称}
\def\ucas@label@ch@institute{}
\def\ucas@label@ch@institute@bac{学院(系):}
\def\ucas@label@ch@institute@mas{学院名称:}
\def\ucas@label@ch@institute@mas{学校/学院名称:}
\def\ucas@label@ch@institute@doc{培养单位:}
\def\ucas@label@ch@institute@pdc{}
\def\ucas@label@ch@completedate{工作完成日期}
Expand Down
12 changes: 6 additions & 6 deletions Style/ucasthesis.cls
Expand Up @@ -301,12 +301,12 @@

\def\tabcolsep{1pt}
\def\arraystretch{1.3}
\begin{tabular}{lc}
\ucas@label@ch@author & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@author}}\\
\ucas@label@ch@advisor & \ucaslntotab[1.2pt]{\ucas@value@ch@advisor}\\
\ucas@label@ch@degree & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@degreetype\ucas@value@ch@degree}}\\
\ucas@label@ch@major & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@major}}\\
\ucas@label@ch@institute & \ucaslntotab[1.2pt]{\ucas@value@ch@institute}\\
\begin{tabular}{llc}
\ucas@label@ch@author & \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{\ucas@value@ch@author}}}\\
\ucas@label@ch@advisor & \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{\ucas@value@ch@advisor}}}\\
\ucas@label@ch@degree & \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{\ucas@value@ch@degreetype\ucas@value@ch@degree}}}\\
\ucas@label@ch@major & \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{\ucas@value@ch@major}}}\\
\multicolumn{2}{l}{\ucas@label@ch@institute} & \ulenhance[1.2pt]{\ulextend[318pt]{\ucas@value@ch@institute}}\\
\end{tabular}

\vspace*{\stretch{4}}
Expand Down
Binary file modified shanghaitech.pdf
Binary file not shown.

0 comments on commit 0499d6d

Please sign in to comment.