-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyutils.sty
59 lines (50 loc) · 1.07 KB
/
myutils.sty
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{myutils}[2023/09/13 my common utility commands]
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsthm}
\RequirePackage{color, soul}
\RequirePackage{framed}
\RequirePackage{cancel}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\comp}{^\prime}
\newcommand{\fin}{\hl{finish}}
\providecommand{\todo}[2][\$]{\hl{#1} \marginpar{#2}}
% Placeholder
\newenvironment{placeholder}[1][Placeholder]{%
\begin{framed}
\begin{center}
{{\bf #1\\}}
\end{center}
}{%
\end{framed}
}
\newcommand{\splace}[1]{
\begin{framed}
\begin{center}
#1
\end{center}
\end{framed}
}
% Section Outline
\newenvironment{outline}[1][Outline]{%
\begin{framed}
\begin{center}
{{\bf #1}}
\end{center}
}{%
\end{framed}
}
% Box theorem
\newtheorem*{thm}{Theorem}
\newenvironment{bthm}[1][]{%
\begin{framed}
\begin{thm}[#1]
}{%
\end{thm}
\end{framed}
}