-
Notifications
You must be signed in to change notification settings - Fork 13
/
scp.tex
87 lines (63 loc) · 1.83 KB
/
scp.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
\documentclass[a4paper, openany, tikz]{book}
% {pc} for normal pdf as a4paper
% {kindle} for 6' pdf for kinder, less page margin, para skip, chapter skip, with hyperlink border, etc.
% {op3} for OnePlus 3 mobile phone, screen aspect ratio 16:9
\def\targetdevice{pc}
% {notofira} for Noto Sans CJK + Noto Sans Mono CJK + Noto Sans + Fira Code
% {sarasa} for Sarasa Gothic SC + Sarasa Mono SC + Noto Sans + Iosevka Term
%
% Notice: Chinese & Japanese char of Sarasa font is based on Source Han Sans (another name of Noto Sans CJK),
% So these two configures should be differ only in English mono characters
\def\targetfonts{sarasa}
% make aux file different in different job
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@include}{\@input{#1.aux}}{\@input{#1-\jobname.aux}}{}{%
\errmessage{First patch of \noexpand\@include failed.}%
}
\patchcmd{\@include}{\@partaux #1.aux}{\@partaux#1-\jobname.aux}{}{%
\errmessage{Second patch of \noexpand\@include failed.}%
}
\makeatother
\include{preamble/index}
\include{editors}
\includeonly{
cover,
part00/index,
part01/index,
part02/index,
tale/index,
authors/index,
compilation/index,
appendices/index,
changelog,
}
\hypersetup{
pdftitle={SCP基金会内部人员手册},
pdfauthor={SCP基金会中国分部}
}
\begin{document}
% 对话框初始设置
\tcbsetforeverylayer{
arc=0pt, outer arc=0pt,
left=10pt, right=10pt, top=10pt, bottom=10pt,
after skip=12pt,
parbox=false, breakable,
}
% 这两个宏用于文档未翻译的模板,会在各 chapter 中重新定义使用
\newcommand{\DOCNAME}{}
\newcommand{\DOCSLUG}{}
\frontmatter
\include{cover}
\tableofcontents
\mainmatter
\include{part00/index}
\include{part01/index}
\include{part02/index}
\include{authors/index}
\include{tale/index}
\include{compilation/index}
\backmatter
\include{appendices/index}
\include{changelog}
\end{document}