-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
59 lines (52 loc) · 1.27 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
% !TEX program = xelatex
% !TEX encoding = UTF-8
\providecommand{\ROOT}{.}
\documentclass[UTF8, a4paper, zihao=-4, linespread=1.5]{ctexrep}
% 章节标题中不显示章节编号
\ctexset{
chapter = {
numbering = false,
},
section = {
numbering = false,
},
subsection = {
numbering = false,
},
}
% 页面格式
\pagestyle{plain}
% 页边距
\usepackage[left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm]{geometry}
% 超链接
\usepackage{hyperref}
\hypersetup{colorlinks = true}
% amsmath
\usepackage{amsmath, amssymb, amsfonts, mathrsfs}
\allowdisplaybreaks[1]
\usepackage{relsize}
\usepackage{subfiles}
\newcommand{\onlyinsubfile}[1]{#1}
\newcommand{\notinsubfile}[1]{}
\begin{document}
\renewcommand{\onlyinsubfile}[1]{}
\renewcommand{\notinsubfile}[1]{#1}
% 目录中仅显示 chapter 和 section
\setcounter{tocdepth}{1}
% 目录中链接颜色设置为黑色
\hypersetup{linkcolor=black}
\tableofcontents
% 目录页不显示页码
\pagestyle{empty}
\hypersetup{linkcolor=red}
\newpage
\pagestyle{plain}
\setcounter{page}{1}
% 课程
\chapter{泛函分析}
\subfile{\ROOT/泛函分析/main.tex}
\chapter{偏微分方程}
\subfile{\ROOT/偏微分方程/main.tex}
\chapter{数理统计}
\subfile{\ROOT/数理统计/main.tex}
\end{document}