-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
157 lines (139 loc) · 5.06 KB
/
main.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8
% LaTeX source for book ``代数学方法'' in Chinese
% Copyright 2018 李文威 (Wen-Wei Li).
% Permission is granted to copy, distribute and/or modify this
% document under the terms of the Creative Commons
% Attribution 4.0 International (CC BY 4.0)
% http://creativecommons.org/licenses/by/4.0/
% 《代数学方法》卷一: 基础结构 / 李文威
% 使用自定义的文档类 AJbook.cls. 自动载入 xeCJK. 需要额外档案如下:
% font-setup-HEP.tex/font-setup-open.tex, coverpage.tex, titles-setup.tex, mycommand.sty, myarrows.sty
% 文档类选项 (key/val 格式):
% mydraft = true (未定稿, 底部显示日期) 或 false (成品), 默认 false,
% mycolors = true (链接带颜色无框) 或 false (黑色无框), 默认 true,
% coverpage = 封面档档名, 默认为空 (此时不制作封面), 若为 *.pdf 的形式则直接引入 PDF 页面.
% fontsetup = 字体设置档档名,
% titlesetup = 章节格式设置档名.
% 需动用 imakeidx + xindy (两份索引), biblatex + biber (书目).
% 索引用土法进行中文排序: 如 \index{zhongwen@中文} 等.
\documentclass[
% draftmark = true,
colors = true,
% colors = false,
coverpage = coverpage.tex,
% coverpage = coverpage.pdf,
fontsetup = font-setup-open.tex,
% fontsetup = font-setup-HEP.tex,
titlesetup = titles-setup.tex
]{AJbook}
\usepackage[backend=bibtex, hyperref=auto, backref=true, backrefstyle=three]{biblatex}
\usepackage{mathrsfs}
\usepackage{bbm}
\usepackage{colortbl} %彩色表格需要加载的宏包
\usepackage{xcolor}
\usepackage{simpler-wick}
\usepackage{stmaryrd} \SetSymbolFont{stmry}{bold}{U}{stmry}{m}{n} % 避免警告 (stmryd 不含粗体故)
\usepackage{array}
\usepackage{makecell} % 便于制表
\usepackage{tikz-cd} % 使用 TikZ 绘图
\usetikzlibrary{positioning, patterns, calc, matrix, shapes.arrows, shapes.symbols}
\usepackage{braids}
\usepackage{tqft}
\usepackage{ytableau}
\usepackage{physics}
\usepackage{slashed}
\usepackage{float}
\usepackage{tikz}
\usepackage{tikz-feynman}
\usepackage{booktabs}
\definecolor{tyellow}{HTML}{FFD05B}
\definecolor{tyellowlight}{HTML}{FFE39D}
\definecolor{tyellowlighter}{HTML}{FFFBF0}
\definecolor{tyellowdark}{HTML}{D09B18}
\definecolor{tyellowdarker}{HTML}{715000}
\definecolor{tturq}{HTML}{3EAF7F}
\definecolor{tturqlight}{HTML}{86DAB6}
\definecolor{tturqlighter}{HTML}{EEFCF6}
\definecolor{tturqdark}{HTML}{118F59}
\definecolor{tturqdarker}{HTML}{004D2C}
\definecolor{tblue}{HTML}{3E83A1}
\definecolor{tbluelight}{HTML}{86BCD4}
\definecolor{tbluelighter}{HTML}{EEF8FC}
\definecolor{tbluedark}{HTML}{156283}
\definecolor{tbluedarker}{HTML}{033247}%定义颜色,没有管那些颜色用不到了
\usetikzlibrary{hobby, calc, intersections, decorations.markings, decorations.pathreplacing} %libraries
\tikzset{>=latex} %sets -> to render as -latex arrow tip
%https://tex.stackexchange.com/questions/54796/how-to-set-default-style-for-arrow-tips-in-tikz
% PGF plots 用于封面绘制
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\newcommand{\PRLsep}{\noindent\makebox[\linewidth]{\resizebox{0.3333\linewidth}{1pt}{$\bullet$}}\bigskip}% 生成PRL样式的分割线
% 设置章节深度
%\setcounter{secnumdepth}{1}
% 必要时仅引入部分档案
% \includeonly{}
%\usepackage{myarrows} % 使用自定义的可伸缩箭头
%\usepackage{mycommand} % 引入自定义的惯用的命令
% 生成索引: 选用 xindy + imakeidx
\usepackage[xindy, splitindex]{imakeidx}
\makeindex[
columns=2,
program=truexindy,
intoc=true,
options=-M texindy -I xelatex -C utf8,
title={名词索引暨英译}] % 名词索引
\makeindex[
columns=3,
program=truexindy,
intoc=true,
options=-M numeric-sort -M latex -M latex-loc-fmts -M makeindex -I xelatex -C utf8,
name=sym1,
title={符号索引}] % 符号索引
\usepackage[unicode, bookmarksnumbered]{hyperref} % 启动超链接和 PDF 文档信息所需
% 设置 PDF 文件信息
\hypersetup{
pdfauthor = {郑卜凡 Bufan Zheng)},
pdftitle = {R},
pdfkeywords = {Algebra},
CJKbookmarks = true}
% 用 bibLaTeX 生成参考文献
% 载入书目库: 文档类业已引入 biblatex + biber
\addbibresource{reference.bib}
\begin{document}
\frontmatter % 制作封面和目录.
\mainmatter % 正文开始:逐章引入 TeX 代码
\include{prelude}
\part{物理}
\include{chapter1}
\include{chapter2}
\include{chapter3}
\include{chapter4}
\include{chapter5}
\part{数学}
\include{chapter1-math}
\include{chapter2-math}
% 如有附录则在以下引入
\part{附录}
\appendix
\include{appendixA}
\include{appendixB}
\backmatter
% 使用 bibLaTeX 制作书目
\printbibliography[heading=bibintoc, title=参考文献]
% 制作索引: 先是符号索引, 继而是名词索引暨英译
% {\footnotesize
% \printindex[sym1]
% \indexprologue{中文术语按汉语拼音排序.}
% \printindex
% % 如有需要, 加入表格和图片索引
% \cleardoublepage
% \phantomsection
% \addcontentsline{toc}{chapter}{\listfigurename}
% \listoffigures
% \cleardoublepage
% \phantomsection
% \addcontentsline{toc}{chapter}{\listtablename}
% \listoftables
% }
\end{document}