Skip to content

Commit

Permalink
Revert math font solution
Browse files Browse the repository at this point in the history
Revert math font solution to mathspec, for aesthetic effects.
  • Loading branch information
Wang Wen committed Oct 15, 2019
1 parent 5a59e7d commit 0bee8c1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ xelatex main.tex

论文主体的写作参考一般的LaTeX教程(如中文版的[lshort](https://www.ctan.org/pkg/lshort-zh-cn)),可以自由添加章节,章节内添加所需要的内容,分小节,插入公式、表格和图片。

### 数学环境

数学环境的字体加粗可以使用`\bm`或者`\pmb`命令。由于 Times New Roman 字体的拉丁字母字形修长,偶尔会出现字符粘连的情况。这种情况下可以使用占位符波浪号调整距离,如`$f^{~l}$``$\hat{f~}$`

### 致谢

致谢部分由命令`\thesisacknowledgement`开始,实际上是开始了一个无编号的章节。
Expand All @@ -72,6 +76,10 @@ xelatex main.tex

使用BibTeX录入参考文献由`\thesisloadbibliography`命令导入数据库,参考文献风格自动设置为`thesis-uestc`。这个命令有一个可选参数,在为`nocite`的情况下会在文档中列出数据库中的所有条目,无论是否引用,其他情况下只列出引用过的条目。有些编辑器会识别`\bibliography`命令导入的数据库文件,并提供更好的编辑支持,所以模板也支持原生的`\bibliography`命令导入文献列表,只需要导入之前指定参考文献风格(`\bibliographystyle{thesis-uestc}`)即可。

模版的文献条目处理完全兼容 IEEE Xplore 和 Google Scholar 数据库。获得参考文献条目信息只需要在文章页面点击Download Citation,选择BibTeX格式,将文本复制到 bib 文件即可。

当引用中文文献,而文献作者超过三位时,后面的作者会用`et al`省略。如果想使用“等”字省略,可以在作者条目在第三个作者姓名后面加上“等”字,再后面的作者去掉。

### 附录

附录部分由命令`\thesisappendix`开始,之后每一章都会被当作是一个附录,使用大写拉丁字母编号。如果只需要单独一个附录则使用`\thesissingleappendix`命令,在后面添加小节,附录本身没有编号。
Expand Down
Binary file modified example.pdf
Binary file not shown.
15 changes: 8 additions & 7 deletions thesis-uestc.cls
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,37 @@
\RequirePackage{amssymb}
\RequirePackage{amsthm}
\RequirePackage{lmodern}
\RequirePackage{mathptmx}
\RequirePackage{bm}
\RequirePackage{fontspec}
\RequirePackage[nopostdot]{glossaries}
\RequirePackage{mathspec}

\RequirePackage{xeCJK}
\RequirePackage{ifplatform}

\ifwindows
\setmainfont{Times New Roman}
\setallmainfonts{Times New Roman}
\setCJKmainfont[AutoFakeBold=true]{SimSun}
\newCJKfontfamily{\heiti}{SimHei}
\newfontfamily{\heiti@letter}{SimHei}
\else
\ifmacosx
\setmainfont{Times New Roman}
\setallmainfonts{Times New Roman}
\setCJKmainfont[AutoFakeBold=true]{Songti SC}
\newCJKfontfamily{\heiti}{STHeiti}
\newfontfamily{\heiti@letter}{STHeiti}
\else
\setCJKmainfont[AutoFakeBold=true]{simsun.ttc}
\newCJKfontfamily{\heiti}{simhei.ttf}
\newfontfamily{\heiti@letter}{simhei.ttf}
\setmainfont[
\setallmainfonts[
BoldFont=timesbd.ttf,
ItalicFont=timesi.ttf,
BoldItalicFont=timesbi.ttf,
]{times.ttf}
\fi
\fi

\newcommand{\bm}{\pmb}

\RequirePackage{zhnumber}
\RequirePackage{pifont}

Expand All @@ -84,7 +85,7 @@
%\let\RequirePackage\original@RequirePackage
%\let\usepackage\RequirePackage
%\makeatother
\RequirePackage[nopostdot]{glossaries}

\renewcommand*{\glossarypreamble}{\vspace{-9pt}}

\newacronymstyle{acronym-uestc}{
Expand Down

0 comments on commit 0bee8c1

Please sign in to comment.