Skip to content

Commit 6d29769

Browse files
committed
feat: add common math environment with example.
todo: add docs.
1 parent 884a052 commit 6d29769

File tree

6 files changed

+151
-0
lines changed

6 files changed

+151
-0
lines changed

Diff for: bithesis.dtx

+27
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,8 @@
11341134
\RequirePackage{array}
11351135
\RequirePackage{amsmath}
11361136
\RequirePackage{amssymb}
1137+
\RequirePackage{amsthm}
1138+
\RequirePackage{unicode-math}
11371139
\RequirePackage{pdfpages}
11381140
\RequirePackage{listings}
11391141
\RequirePackage{enumitem}
@@ -1454,6 +1456,31 @@
14541456

14551457
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14561458

1459+
% 根据 GB 3102.11--93 以及 ISO 80000-2:2009 的规定,数学表达式中
1460+
% 表示变量的拉丁字母和希腊字母均应当使用斜体。
1461+
\unimathsetup{
1462+
math-style = ISO,
1463+
bold-style = ISO,
1464+
}
1465+
1466+
% 预定义用户常用的证明环境
1467+
\theoremstyle{plain}
1468+
\newtheorem{algorithm}{算法}[chapter]
1469+
\newtheorem{theorem}{定理}[chapter]
1470+
\newtheorem{lemma}[theorem]{引理}
1471+
\newtheorem{proposition}[theorem]{命题}
1472+
\newtheorem{corollary}[theorem]{推论}
1473+
\newtheorem{axiom}[theorem]{公理}
1474+
\theoremstyle{definition}
1475+
\newtheorem{definition}{定义}[chapter]
1476+
\newtheorem{conjecture}{猜想}[chapter]
1477+
\newtheorem{example}{例}[chapter]
1478+
\newtheorem{case}{情形}
1479+
\theoremstyle{remark}
1480+
\newtheorem{remark}{注}
1481+
\renewcommand{\qedsymbol}{\ensuremath{\QED}}
1482+
1483+
14571484
% user interface.
14581485
\DeclareDocumentCommand \BITSetup { m }
14591486
{ \keys_set:nn { bithesis } { #1 }}

Diff for: templates/graduate-thesis/bithesis.cls

+23
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@
338338
\RequirePackage{array}
339339
\RequirePackage{amsmath}
340340
\RequirePackage{amssymb}
341+
\RequirePackage{amsthm}
342+
\RequirePackage{unicode-math}
341343
\RequirePackage{pdfpages}
342344
\RequirePackage{listings}
343345
\RequirePackage{enumitem}
@@ -645,6 +647,27 @@
645647

646648
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
647649

650+
\unimathsetup{
651+
math-style = ISO,
652+
bold-style = ISO,
653+
}
654+
655+
\theoremstyle{plain}
656+
\newtheorem{algorithm}{算法}[chapter]
657+
\newtheorem{theorem}{定理}[chapter]
658+
\newtheorem{lemma}[theorem]{引理}
659+
\newtheorem{proposition}[theorem]{命题}
660+
\newtheorem{corollary}[theorem]{推论}
661+
\newtheorem{axiom}[theorem]{公理}
662+
\theoremstyle{definition}
663+
\newtheorem{definition}{定义}[chapter]
664+
\newtheorem{conjecture}{猜想}[chapter]
665+
\newtheorem{example}{例}[chapter]
666+
\newtheorem{case}{情形}
667+
\theoremstyle{remark}
668+
\newtheorem{remark}{注}
669+
\renewcommand{\qedsymbol}{\ensuremath{\QED}}
670+
648671
\DeclareDocumentCommand \BITSetup { m }
649672
{ \keys_set:nn { bithesis } { #1 }}
650673

Diff for: templates/graduate-thesis/chapters/chapter2.tex

+32
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,35 @@
2020
\chapter{具体研究内容}
2121

2222
具体研究内容是学位论文的主要部分,是研究结果及其依据的具体表述,是研究能力的集中体现,一般应包括第2章、第3章至结论前一章。具体研究内容应该结构合理,层次清楚,重点突出,文字简练、通顺。可包括以下各方面:研究对象、研究方法、仪器设备、材料原料、实验和观测结果、理论推导、计算方法和编程原理、数据资料和经过加工整理的图表、理论分析、形成的论点和导出的结论等。具体研究内容各章后可有一节“本章小结”(必要时)。
23+
24+
\begin{theorem}[留数定理]
25+
\label{thm:res}
26+
假设$U$是复平面上的一个单连通开子集,$a_1,\ldots,a_n$是复平面上有限个点,$f$是定义在$U\backslash \{a_1,\ldots,a_n\}$上的全纯函数,
27+
如果$\gamma$是一条把$a_1,\ldots,a_n$包围起来的可求长曲线,但不经过任何一个$a_k$,并且其起点与终点重合,那么:
28+
29+
\begin{equation}
30+
\label{eq:res}
31+
\ointop_{\gamma}f(z)\,\mathrm{d}z = 2\pi\mathbf{i}\sum^n_{k=1}\mathrm{I}(\gamma,a_k)\mathrm{Res}(f,a_k)
32+
\end{equation}
33+
34+
如果$\gamma$是若尔当曲线,那么$\mathrm{I}(\gamma, a_k)=1$,因此:
35+
36+
\begin{equation}
37+
\label{eq:resthm}
38+
\ointop_{\gamma}f(z)\,\mathrm{d}z = 2\pi\mathbf{i}\sum^n_{k=1}\mathrm{Res}(f,a_k)
39+
\end{equation}
40+
41+
在这里,$\mathrm{Res}(f, a_k)$表示$f$在点$a_k$的留数,$\mathrm{I}(\gamma,a_k)$表示$\gamma$关于点$a_k$的卷绕数。
42+
卷绕数是一个整数,它描述了曲线$\gamma$绕过点$a_k$的次数。如果$\gamma$依逆时针方向绕着$a_k$移动,卷绕数就是一个正数,
43+
如果$\gamma$根本不绕过$a_k$,卷绕数就是零。
44+
\end{theorem}
45+
46+
\begin{proof}
47+
首先,由……
48+
49+
其次,……
50+
51+
所以……
52+
\qedhere
53+
\end{proof}
54+

Diff for: templates/paper-translation/bithesis.cls

+23
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@
338338
\RequirePackage{array}
339339
\RequirePackage{amsmath}
340340
\RequirePackage{amssymb}
341+
\RequirePackage{amsthm}
342+
\RequirePackage{unicode-math}
341343
\RequirePackage{pdfpages}
342344
\RequirePackage{listings}
343345
\RequirePackage{enumitem}
@@ -645,6 +647,27 @@
645647

646648
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
647649

650+
\unimathsetup{
651+
math-style = ISO,
652+
bold-style = ISO,
653+
}
654+
655+
\theoremstyle{plain}
656+
\newtheorem{algorithm}{算法}[chapter]
657+
\newtheorem{theorem}{定理}[chapter]
658+
\newtheorem{lemma}[theorem]{引理}
659+
\newtheorem{proposition}[theorem]{命题}
660+
\newtheorem{corollary}[theorem]{推论}
661+
\newtheorem{axiom}[theorem]{公理}
662+
\theoremstyle{definition}
663+
\newtheorem{definition}{定义}[chapter]
664+
\newtheorem{conjecture}{猜想}[chapter]
665+
\newtheorem{example}{例}[chapter]
666+
\newtheorem{case}{情形}
667+
\theoremstyle{remark}
668+
\newtheorem{remark}{注}
669+
\renewcommand{\qedsymbol}{\ensuremath{\QED}}
670+
648671
\DeclareDocumentCommand \BITSetup { m }
649672
{ \keys_set:nn { bithesis } { #1 }}
650673

Diff for: templates/undergraduate-thesis-en/bithesis.cls

+23
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@
338338
\RequirePackage{array}
339339
\RequirePackage{amsmath}
340340
\RequirePackage{amssymb}
341+
\RequirePackage{amsthm}
342+
\RequirePackage{unicode-math}
341343
\RequirePackage{pdfpages}
342344
\RequirePackage{listings}
343345
\RequirePackage{enumitem}
@@ -645,6 +647,27 @@
645647

646648
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
647649

650+
\unimathsetup{
651+
math-style = ISO,
652+
bold-style = ISO,
653+
}
654+
655+
\theoremstyle{plain}
656+
\newtheorem{algorithm}{算法}[chapter]
657+
\newtheorem{theorem}{定理}[chapter]
658+
\newtheorem{lemma}[theorem]{引理}
659+
\newtheorem{proposition}[theorem]{命题}
660+
\newtheorem{corollary}[theorem]{推论}
661+
\newtheorem{axiom}[theorem]{公理}
662+
\theoremstyle{definition}
663+
\newtheorem{definition}{定义}[chapter]
664+
\newtheorem{conjecture}{猜想}[chapter]
665+
\newtheorem{example}{例}[chapter]
666+
\newtheorem{case}{情形}
667+
\theoremstyle{remark}
668+
\newtheorem{remark}{注}
669+
\renewcommand{\qedsymbol}{\ensuremath{\QED}}
670+
648671
\DeclareDocumentCommand \BITSetup { m }
649672
{ \keys_set:nn { bithesis } { #1 }}
650673

Diff for: templates/undergraduate-thesis/bithesis.cls

+23
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@
338338
\RequirePackage{array}
339339
\RequirePackage{amsmath}
340340
\RequirePackage{amssymb}
341+
\RequirePackage{amsthm}
342+
\RequirePackage{unicode-math}
341343
\RequirePackage{pdfpages}
342344
\RequirePackage{listings}
343345
\RequirePackage{enumitem}
@@ -645,6 +647,27 @@
645647

646648
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
647649

650+
\unimathsetup{
651+
math-style = ISO,
652+
bold-style = ISO,
653+
}
654+
655+
\theoremstyle{plain}
656+
\newtheorem{algorithm}{算法}[chapter]
657+
\newtheorem{theorem}{定理}[chapter]
658+
\newtheorem{lemma}[theorem]{引理}
659+
\newtheorem{proposition}[theorem]{命题}
660+
\newtheorem{corollary}[theorem]{推论}
661+
\newtheorem{axiom}[theorem]{公理}
662+
\theoremstyle{definition}
663+
\newtheorem{definition}{定义}[chapter]
664+
\newtheorem{conjecture}{猜想}[chapter]
665+
\newtheorem{example}{例}[chapter]
666+
\newtheorem{case}{情形}
667+
\theoremstyle{remark}
668+
\newtheorem{remark}{注}
669+
\renewcommand{\qedsymbol}{\ensuremath{\QED}}
670+
648671
\DeclareDocumentCommand \BITSetup { m }
649672
{ \keys_set:nn { bithesis } { #1 }}
650673

0 commit comments

Comments
 (0)