Skip to content

Commit

Permalink
font: Add fandol as defalut font option
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <ce.gao@outlook.com>
  • Loading branch information
gaocegege committed Jan 27, 2017
1 parent e2b2316 commit d08f7a0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,23 @@ SJTUThesis可以在本地编译,也可以在线编译。

#### TeX 发行版

SJTUThesis 需要使用 XeTeX 引擎编译。2016年的 [TeXLive](https://www.tug.org/texlive/)[MacTeX](https://www.tug.org/mactex/) 发行版都能编译此模板。Windows 下的 CTeX(2.9.2) 也能顺利编译此模板。**Windows用户**推荐使用 [Babun](http://babun.github.io/) 作为命令行终端。Babun 已默认安装有这些工具:git(版本控制)、GNUmake(编译控制)、perl(字数统计)。
SJTUThesis 需要使用 XeTeX 引擎编译。Linux 用户可以安装 [TeX Live](https://www.tug.org/texlive/),MacOS 用户可以安装 [MacTeX](https://www.tug.org/mactex/),Windows 用户可以安装 [CTeX 套装(包含完整版 MiKTeX)](http://www.ctex.org/CTeXDownload)

注:**Windows用户**推荐使用 [Babun](http://babun.github.io/) 作为命令行终端。Babun 已默认安装有这些工具:git(用于版本控制)、GNUmake(用于编译控制)、perl(用于字数统计)。

#### 字体

中英文分别依赖 Adobe 的四套简体中文字体和 TeX Gyre Termes 西文字体。Tex Gyre Termes 可从 [CTAN](http://www.ctan.org/tex-archive/fonts/tex-gyre/fonts/opentype/public/tex-gyre) 下载四种不同字型。出于版权考虑,需要大家自行解决 AdobeSongStd, AdobeKaitiStd, AdobeHeitiStd, AdobeFangsongStd 四款中文字体的授权问题。
SJTUThesis 使用 [CTeX](https://www.ctan.org/pkg/ctex?lang=en) 提供中文支持,共需要五种字体,分别是一套英文字体,和宋体、仿宋、黑体、楷体四种中文字体。在不同的操作系统上,有不同的字体选择。

##### 中文字体选择

在中文字体中,Fandol 开放字体和 Adobe 付费字体是全系统支持的(Linux、macOS、Windows 等)。其中 Fandol 是开源在 GPL 许可证下的,不涉及字体版权问题,可在 [https://www.ctan.org/pkg/fandol](https://www.ctan.org/pkg/fandol) 自行下载安装。

Adobe 字体是由 Adobe 推出的中文字体,需要 Adobe 授权使用。因为版权问题,若要使用请大家自行解决 AdobeSongStd, AdobeKaitiStd, AdobeHeitiStd, AdobeFangsongStd 四个中文字体的授权问题。

##### 英文字体选择

SJTUThesis 使用 TeX Gyre Termes 作为英文字体,Tex Gyre Termes 可从 [CTAN](http://www.ctan.org/tex-archive/fonts/tex-gyre/fonts/opentype/public/tex-gyre) 下载四种不同字型。

### 获取模板

Expand All @@ -38,7 +50,7 @@ git pull upstream master

SJTUThesis提供了多个稳定版供您使用,这些版本的输出结果具有相近的外观,但依赖不同的TeXLive发行版和参考文献处理程序。

| TeXLive发行版 | 参考文献风格 | SJTUThesis版本 |
| TeXLive发行版 | 参考文献风格 | SJTUThesis版本 |
|---------------|---------------|----------------|
| 2016 | GB7714 | [0.9.5][0.9.5] |

Expand Down
5 changes: 2 additions & 3 deletions tex/intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ \subsection{准备工作}

\begin{itemize}[noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt]
\item {\TeX}系统:所使用的{\TeX}系统要支持 \XeTeX 引擎,且带有ctex 2.x宏包,以2015年的\emph{完整}TeXLive、MacTeX发行版为佳。
\item 中英文字体:操作系统中需要安装\footnote{在Windows、Mac OS X 以及 Linux 上安装额外的字体,可以参考\href{https://www.searchfreefonts.com/articles/how-to-install-fonts.htm}{“How to install fonts?”}。
}TeX Gyre Termes字体\footnote{\url{http://www.gust.org.pl/projects/e-foundry/tex-gyre/termes}}和四款Adobe中文字体
\item 中英文字体:操作系统中需要安装\footnote{在Windows、Mac OS X 以及 Linux 上安装额外的字体,可以参考\href{https://www.searchfreefonts.com/articles/how-to-install-fonts.htm}{“How to install fonts?”}。}TeX Gyre Termes字体\footnote{\url{http://www.gust.org.pl/projects/e-foundry/tex-gyre/termes}}和四款Fandol中文开放授权字体\footnote{\url{https://www.ctan.org/pkg/fandol}},或者四款Adobe中文付费字体
\footnote{请从合法渠道获得Adobe字体。}:AdobeSongStd、AdobeKaitiStd、AdobeHeitiStd、AdobeFangsongStd。
\item TeX技能:尽管提供了对模板的必要说明,但这不是一份“ \LaTeX 入门文档”。在使用前请先通读其他入门文档。
\item 针对Windows用户的额外需求:学位论文模本分别使用git和GNUMake进行版本控制和构建,建议从Cygwin\footnote{\url{http://cygwin.com}}安装这两个工具。
Expand All @@ -50,7 +49,7 @@ \subsection{模板选项}

\begin{itemize}[noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt]
\item 学位类型:bachelor(学位)、master(硕士)、doctor(博士),是必选项。
\item 中国字体:adobefonts(Adobe中文字体)、winfonts(使用Windows下的中文字体,该选项未在Linux/Mac下测试)。
\item 中国字体:fandolfonts(Fandol开源字体)、adobefonts(Adobe中文付费字体)、winfonts(使用Windows下的中文字体,该选项未在Linux/Mac下测试)。
\item 正文字号:cs4size(小四)、c5size(五号)。
\item 盲审选项:使用review选项后,论文作者、学号、导师姓名、致谢、发表论文和参与项目将被隐去。
\end{itemize}
Expand Down
8 changes: 4 additions & 4 deletions thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
%%==================================================

% 双面打印
\documentclass[doctor, fontset=adobe, openright, twoside]{sjtuthesis}
% \documentclass[bachelor, fontset=adobe, openany, oneside, submit]{sjtuthesis}
% \documentclass[master, fontset=adobe, review]{sjtuthesis}
\documentclass[doctor, fontset=fandol, adobe, openright, twoside]{sjtuthesis}
% \documentclass[bachelor, fontset=fandol, adobe, openany, oneside, submit]{sjtuthesis}
% \documentclass[master, fontset=fandol, adobe, review]{sjtuthesis}
% \documentclass[%
% bachelor|master|doctor, % 必选项
% fontset=adobe|windows, % 只测试了adobe
% fontset=adobe|windows|fandol, % 只测试了adobe
% oneside|twoside, % 单面打印,双面打印(奇偶页交换页边距,默认)
% openany|openright, % 可以在奇数或者偶数页开新章|只在奇数页开新章(默认)
% zihao=-4|5,, % 正文字号:小四、五号(默认)
Expand Down

0 comments on commit d08f7a0

Please sign in to comment.