-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotoSerifCJKsc_external.sty
31 lines (24 loc) · 1.09 KB
/
NotoSerifCJKsc_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{NotoSerifCJKsc_external}[2018/05/20 NotoSerifCJKsc_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/NotoSerifCJKsc/, Mapping=tex-text}
\setCJKmainfont[
BoldFont=NotoSerifCJKsc-Bold.otf,
ItalicFont=NotoSerifCJKsc-Regular.otf,
SmallCapsFont=NotoSerifCJKsc-Bold.otf
]{NotoSerifCJKsc-Regular.otf}
\setCJKsansfont{NotoSerifCJKsc-Bold.otf}
\setCJKmonofont{NotoSerifCJKsc-Regular.otf}
\setCJKfamilyfont{zhsong}{NotoSerifCJKsc-Regular.otf}
\setCJKfamilyfont{zhhei}{NotoSerifCJKsc-Bold.otf}
\setCJKfamilyfont{zhfs}{NotoSerifCJKsc-Regular.otf}
\setCJKfamilyfont{zhkai}{NotoSerifCJKsc-Regular.otf}
\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}} % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}} % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
\endinput