forked from hardenedlinux/linux-exploit-development-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfonts-external.sty
More file actions
27 lines (21 loc) · 736 Bytes
/
fonts-external.sty
File metadata and controls
27 lines (21 loc) · 736 Bytes
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
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{fonts_external}[2016/10/09 fonts external package]
\RequirePackage{fontspec}
\RequirePackage{xeCJK}
\defaultfontfeatures{Path = fonts-external/, Mapping=tex-text}
\setCJKmainfont[
BoldFont=msyhbd.ttc,
ItalicFont=msyhl.ttc,
SmallCapsFont=msyh.ttc
]{msyh.ttc}
\setCJKsansfont{msyh.ttc}
\setCJKmonofont{consola.ttf}
\setCJKfamilyfont{zhsong}{simsun.ttc}
\setCJKfamilyfont{zhhei}{simhei.ttf}
\setCJKfamilyfont{zhfs}{simfang.ttf}
\setCJKfamilyfont{zhkai}{simkai.ttf}
\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}} % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}} % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
\endinput