-
Notifications
You must be signed in to change notification settings - Fork 13
/
NotoSansSC_external.sty
31 lines (24 loc) · 1.04 KB
/
NotoSansSC_external.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{NotoSansSC_external}[2018/05/20 NotoSansSC_external Package]
\RequirePackage{fontspec}
\RequirePackage{xeCJK}
% https://github.com/boathit/CTEX/blob/master/texmf/tex/latex/ctex/fontset/ctex-xecjk-adobefonts.def
% ctex-xecjk-adobefonts.def: Adobe 的 xeCJK 字体设置,为 Adobe 的四套字体
% vim:ft=tex
\defaultfontfeatures{Path = fonts/NotoSansSC/, Mapping=tex-text}
\setCJKmainfont[
BoldFont=NotoSansSC-Bold.otf,
ItalicFont=NotoSansSC-Regular.otf,
SmallCapsFont=NotoSansSC-Bold.otf
]{NotoSansSC-Regular.otf}
\setCJKsansfont{NotoSansSC-Bold.otf}
\setCJKmonofont{NotoSansSC-Regular.otf}
\setCJKfamilyfont{zhsong}{NotoSansSC-Regular.otf}
\setCJKfamilyfont{zhhei}{NotoSansSC-Bold.otf}
\setCJKfamilyfont{zhfs}{NotoSansSC-Regular.otf}
\setCJKfamilyfont{zhkai}{NotoSansSC-Regular.otf}
\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}} % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}} % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
\endinput