-
Notifications
You must be signed in to change notification settings - Fork 1
/
bookstyle.tex
executable file
·48 lines (39 loc) · 1.59 KB
/
bookstyle.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
%!TEX root = haiku.tex
\setlength{\headheight}{15pt}
\newcounter{haikucounter}
\renewcommand{\thehaikucounter}{\arabic{haikucounter}}
\newenvironment{haiku}{
\refstepcounter{haikucounter}
\centering\thehaikucounter\\[1ex]\begin{parse lines}{##1\newline}
}%
{\end{parse lines}}
\setcounter{secnumdepth}{-1}
\setcounter{tocdepth}{1}
% \newfontfamily\fontfamilyname{Times}
% \setmainfont{Times}
\newfontfamily{\FS}[Scale=MatchLowercase, Path=fonts/]{NotoSerifCJKsc-Regular.otf}
% \newfontfamily{\FS}[Scale=MatchLowercase, Path=fonts/]{NotoSerifCJKsc-Regular.otf}
\newfontfamily{\FK}[Scale=MatchUppercase, Path=fonts/]{kaiti.ttf}
\newfontfamily{\FT}[Scale=MatchLowercase, Path=fonts/]{fangsong.otf}
\newfontfamily{\FF}[Path=fonts/]{HanyiSentyVimalkirti.ttf} % 汉仪新蒂维摩诘经体
% \newfontfamily{\FH}[Scale=MatchUppercase, Path=fonts/]{kyoukasho.otf} % 教科書体
\newfontfamily{\FH}[Scale=MatchUppercase, Path=fonts/]{NotoSerifCJKjp-SemiBold.otf}
\newfontfamily{\FM}[Scale=MatchUppercase, Path=fonts/]{NotoSerifCJKjp-Regular.otf}
\graphicspath{{figures/}}
\renewcommand{\contentsname}{\FK 目录}
\renewcommand{\bookname}{}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\defaultfontfeatures{Mapping=tex-text}
% Chinese indent
\makeatletter
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue
\makeatother
\setlength{\parindent}{2em}
\setlength{\footnotemargin}{1em}
\renewcommand{\hangfootparskip}{0pt}
\renewcommand{\thefootnote}{\arabic{footnote}}
\renewcommand\thefootnote{\ding{\numexpr171+\value{footnote}}}
\definecolor{fondpaille}{RGB}{230,230,207}
\pagecolor{fondpaille}