-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreamble.tex
More file actions
84 lines (70 loc) · 2.04 KB
/
preamble.tex
File metadata and controls
84 lines (70 loc) · 2.04 KB
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File: preamble.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[top = 1.5cm]{geometry}
% Set fonts commands
\newcommand{\song}{\CJKfamily{song}}
\newcommand{\hei}{\CJKfamily{hei}}
\newcommand{\kai}{\CJKfamily{kai}}
\newcommand{\fs}{\CJKfamily{fs}}
\newcommand{\me}[2]{\author{{\bfseries 姓名:}\underline{#1}\hspace{2em}{\bfseries 学号:}\underline{#2}}}
% Always keep this.
\newcommand{\noplagiarism}{
\begin{center}
\fbox{\begin{tabular}{@{}c@{}}
请独立完成作业,不得抄袭。\\
若参考了其它资料,请给出引用。\\
鼓励讨论,但需独立书写解题过程。
\end{tabular}}
\end{center}
}
% Each hw consists of three parts:
% (1) this homework
\newcommand{\beginthishw}{\part{线性代数纲要}}
% (2) corrections (Optional)
\newcommand{\begincorrection}{\part{订正}}
% (3) any feedback (Optional)
\newcommand{\beginfb}{\part{反馈}}
% For math
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
% Define theorem-like environments
\usepackage[amsmath, thmmarks]{ntheorem}
\theoremstyle{break}
\theorembodyfont{\song}
\theoremseparator{}
\newtheorem*{problem}{章节}
\theorempreskip{2.0\topsep}
\theoremheaderfont{\kai\bfseries}
\theoremseparator{:}
% \newtheorem*{remark}{注}
\theorempostwork{\bigskip\hrule}
\newtheorem*{solution}{概念}
\theorempostwork{\bigskip\hrule}
\newtheorem*{revision}{订正}
\theoremstyle{plain}
\newtheorem*{cause}{错因分析}
\newtheorem*{remark}{注}
\theoremstyle{break}
\theorempostwork{\bigskip\hrule}
\theoremsymbol{\ensuremath{\Box}}
\newtheorem*{proof}{注意点}
\renewcommand\figurename{图}
\renewcommand\tablename{表}
% For figures
% for fig with caption: #1: width/size; #2: fig file; #3: fig caption
\newcommand{\fig}[3]{
\begin{figure}[htp]
\centering
\includegraphics[#1]{#2}
\caption{#3}
\end{figure}
}
% for fig without caption: #1: width/size; #2: fig file
\newcommand{\fignocaption}[2]{
\begin{figure}[htp]
\centering
\includegraphics[#1]{#2}
\end{figure}
}