blob: 56854d0e7e416fddae2c5c6c708aaf13e0725c7c (
plain) (
blame)
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
|
% Horizontal rule.
\newcommand{\hr}{\noindent\rule[0.5ex]{\linewidth}{0.5pt}}
% Ensure upright text in math events.
\NewCommandCopy{\vartext}{\text}
\renewcommand{\text}[1]{\vartext{\textnormal{#1}}}
% Upright type for Euler's number and imaginary number.
\newcommand{\e}{\ensuremath{\mathrm{e}}}
\renewcommand{\i}{\ensuremath{\mathrm{i}}}
\renewcommand{\j}{\ensuremath{\mathrm{j}}}
% Use bold for vectors.
\renewcommand{\vec}{\symbf}
% Use blackboard bold.
\let\mathbb\relax
\DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n}
\newcommand{\N}{\ensuremath{\mathbb{N}}}
\newcommand{\Z}{\ensuremath{\mathbb{Z}}}
\newcommand{\Q}{\ensuremath{\mathbb{Q}}}
\newcommand{\R}{\ensuremath{\mathbb{R}}}
\newcommand{\C}{\ensuremath{\mathbb{C}}}
% Does not exist.
\newcommand{\DNE}{\ensuremath{\text{DNE}}}
% Trigonometric and hyperbolic functions.
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arccot}{arccot}
\DeclareMathOperator{\arcsec}{arcsec}
\DeclareMathOperator{\arccsc}{arccsc}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\let\@epsilon\epsilon
\let\@theta\theta
\let\@phi\phi
\AtBeginDocument{
\RenewCommandCopy{\epsilon}{\varepsilon}
\RenewCommandCopy{\varepsilon}{\@epsilon}
\RenewCommandCopy{\theta}{\vartheta}
\RenewCommandCopy{\vartheta}{\@theta}
\RenewCommandCopy{\phi}{\varphi}
\RenewCommandCopy{\varepsilon}{\@epsilon}
\undef\@epsilon
\undef\@theta
\undef\@phi
\RenewCommandCopy{\angle}{\measuredangle}
}
|