-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplain-sty.tex
63 lines (46 loc) · 1.81 KB
/
plain-sty.tex
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
\startenvironment plain-sty
\mainlanguage[cn]
\language[cn]
\setscript[hanzi]
\setupbodyfontenvironment[default][em=italic]
\setuppapersize[A4][A4]
% 书签
\setupinteraction[state=start]
\placebookmarks[chapter, section]
\setupinteractionscreen[option=bookmark]
\setupinteraction[state=start, focus=standard, color=black, contrastcolor=black]
\usemodule[simplefonts][size=14.4pt]
\setcjkmainfont[twsung]
\setcjksansfont[wenquanyizenhei]
\setcjkmonofont[twkai]
%\usemodule[zhfonts]
%\setupzhfonts[serif][regular=adobesongstd]
%\setupzhfonts[sans][regular=adobeheitistd]
%\setupzhfonts[mono][regular=adobefangsongstd]
%\setupzhfonts[latin,serif][regular=lmroman10regular, bold=lmroman10bold, italic=lmroman10italic, bolditalic=lmroman10bolditalic]
%\setupzhfonts[latin,sans][regular=lmsans10regular, bold=lmsans10bold, italic=lmsans10oblique, bolditalic=lmsans10boldoblique]
%\setupzhfonts[latin,mono][regular=lmmono10regular, bold=lmmonolt10bold, italic=lmmono10italic, bolditalic=lmmonolt10boldoblique]
% 脚注 http://www.ntg.nl/pipermail/ntg-context/2012/069675.html
\startsetups footnote:hanzi
\setscript[hanzi]
\stopsetups
\setupnote[footnote][setups={footnote:hanzi}]
% 或者写脚注时总是这样写 \footnote{\setscript[hanzi]中文脚注}
% 标点压缩
%\usemodule[zhfonts][style=none]
%\setupfootnotes[style={\zhfonts[none]}]
\setuphead[title][align=middle, style=\ssbfb]
%\setuphead[subject][align=middle, style=\ssbfb]
\setuphead[chapter][number=no, align=middle, style=\ssbfb]
% 首行缩进
\setupindenting[yes, big, first]
\setupheads[indentnext=yes]
% 行距
\setupinterlinespace[line=1.6em]
% 段间距
\setupwhitespace[small]
\setuppagenumbering[location=footer, style=\tfx]
% 不显示页码 \setuppagenumering[location=]
% Get a warning if the glyph is missing
\enabletrackers[fonts.missing]
\stopenvironment