-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMathTemplate.sty
82 lines (60 loc) · 2.46 KB
/
MathTemplate.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
\ProvidesPackage{MathTemplate}
\usepackage{tikz}
\usetikzlibrary{matrix,arrows}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{enumitem} % to change appearance of enum and item environments
\usepackage{framed}
\usepackage{color}
\usepackage{multicol}
\usepackage{siunitx}
\usepackage{subfiles}
%\usepackage{yhmath}
% adjust the margins using the geometry package
\usepackage[left=0.75in, right=0.75in, top=0.75in, bottom=0.75in]{geometry}
\usepackage[parfill]{parskip}
%\usepackage{mathpazo}
%\usepackage{euler}
% customize the headers using the fancyhdr package
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{hyperref}
\usepackage{mathrsfs}
\usepackage{mathtools}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\newenvironment{hwproblem}[1]{{\large \bfseries Problem #1\,:} \begin{trivlist}\item[]\vspace{-0.5ex}}{\end{trivlist}\vspace{3ex}}
\newenvironment{hwproblemquestion}[1]{{\bfseries Question #1\,:} \begin{trivlist}\item[]\vspace{-1.5ex}}{\end{trivlist}\vspace{3ex}}
\newenvironment{lecexercise}[1]{{\large \bfseries Exercise #1\,:} \begin{trivlist}\item[]\vspace{-0.5ex}}{\end{trivlist}\vspace{3ex}}
\newenvironment{note}[1]{{\large \bfseries Note #1\,:} \begin{trivlist}\item[]\vspace{-0.5ex}}{\end{trivlist}\vspace{3ex}}
\newenvironment{hwsubpart}[1]{{\bfseries #1\,:} \begin{trivlist}\item[]\vspace{-0.5ex}}{\end{trivlist}\vspace{3ex}}
% create theorem style
\newtheoremstyle{break}% name
{}% Space above, empty = `usual value'
{}% Space below
{}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{.}% Punctuation after thm head
{\newline}% Space after thm head: \newline = linebreak
{}% Thm head spec
\theoremstyle{break}
\newtheorem{hwquestion}{Question}
\newtheorem{theorem}{Theorem}
\numberwithin{theorem}{subsection}
\newtheorem*{lemma*}{Lemma}
\newtheorem{lemma}{Lemma}
\numberwithin{lemma}{subsection}
\newtheorem{corollary}{Corollary}
\numberwithin{corollary}{subsection}
\newtheorem*{definition}{Definition}
\newtheorem*{note*}{Note}
\newtheorem*{remark}{Remark}
\newtheorem*{hint}{Hint}
\newtheorem*{example}{Example}
\numberwithin{equation}{subsection}
% customize enumerate and itemize environments
\setlist[itemize]{labelsep=1ex,itemsep=1.5ex,parsep=0ex,leftmargin=4ex,topsep=0.5ex}
\setlist[enumerate]{labelsep=1ex,itemsep=1.5ex,parsep=0ex,leftmargin=4ex,topsep=0.5ex}