-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
zh_CN-Adobefonts_external.sty
31 lines (24 loc) · 1.09 KB
/
zh_CN-Adobefonts_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{zh_CN-Adobefonts_external}[2015/05/25 zh_CN-Adobefonts_internal 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/zh_CN-Adobe/, Mapping=tex-text}
\setCJKmainfont[
BoldFont=AdobeHeitiStd-Regular.otf,
ItalicFont=AdobeKaitiStd-Regular.otf,
SmallCapsFont=AdobeHeitiStd-Regular.otf
]{AdobeSongStd-Light.otf}
\setCJKsansfont{AdobeHeitiStd-Regular.otf}
\setCJKmonofont{AdobeFangsongStd-Regular.otf}
\setCJKfamilyfont{zhsong}{AdobeSongStd-Light.otf}
\setCJKfamilyfont{zhhei}{AdobeHeitiStd-Regular.otf}
\setCJKfamilyfont{zhfs}{AdobeFangsongStd-Regular.otf}
\setCJKfamilyfont{zhkai}{AdobeKaitiStd-Regular.otf}
\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}} % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}} % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
\endinput