-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackagebundle.sty
91 lines (75 loc) · 2.32 KB
/
packagebundle.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
83
84
85
86
87
88
89
90
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{packagebundle}
%[2022/02/09 v0.1 A custom-made LaTeX package for stylish math writing]
\RequirePackage[margin=1.25in]{geometry}
\RequirePackage[bookmarksdepth=4]{hyperref}
\RequirePackage{pdfpages}
\RequirePackage{xcolor}
\RequirePackage{enumitem}
\setlist[enumerate]{itemsep=-1mm}
\RequirePackage[toc, page]{appendix}
%\RequirePackage[backend=biber]{biblatex}
\RequirePackage[sc, small, center]{titlesec}
% small caps, small titles, center alignment
\titlespacing*{\chapter}{0pt}{0pt}{20pt}
\RequirePackage{etoolbox}
\RequirePackage{mathtools}
\RequirePackage{amssymb}
\RequirePackage{amsthm}
\RequirePackage{amsfonts}
\RequirePackage{pict2e}
\RequirePackage{tikz}
\RequirePackage{upgreek}
%\swapnumbers
\setlength{\topsep}{8pt}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{propdef}[theorem]{Proposition/Definition}
\newtheorem{theodef}[theorem]{Theorem/Definition}
\newtheorem{conjecture}[theorem]{Conjecture}
\theoremstyle{defintion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\newtheorem*{note}{Note}
%%%%%%%%%%%%%%%%%%%%%%%%%%% proof redefined
\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
%\vspace{-\topsep}% remove the space after the theorem
\pushQED{\qed}%
\normalfont
\topsep0pt \partopsep0pt % no space before
\trivlist
\item[\hskip\labelsep
\itshape
#1\@addpunct{.}]\ignorespaces
}{%
\popQED\endtrivlist\@endpefalse
\addvspace{6pt plus 6pt} % some space after
}
\makeatother
\hypersetup{
colorlinks=false,
linkcolor=blue,
filecolor=magenta,
urlcolor=blue
}
\linespread{1}
\newcommand{\tab}{\hspace*{2em}}
\newcommand{\R}{\ensuremath{\mathbb{R}} }
\newcommand{\C}{\ensuremath{\mathbb{C}} }
\newcommand{\F}{\ensuremath{\mathbb{F}} }
\newcommand{\N}{\ensuremath{\mathbb{N}} }
\newcommand{\Z}{\ensuremath{\mathbb{Z}} }
\newcommand{\Q}{\ensuremath{\mathbb{Q}} }
\newcommand{\Wlog}{Without loss of generality}
\newcommand{\wrt}{with respect to}
\newcommand{\st}{such that}
\endinput