-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmystyle.sty
More file actions
192 lines (155 loc) · 4.54 KB
/
mystyle.sty
File metadata and controls
192 lines (155 loc) · 4.54 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
\usepackage[top=30mm, bottom=30mm, inner=36mm, outer=18mm, footskip = 15mm]{geometry}
%\usepackage[paperwidth=169mm, paperheight=239mm, top=30mm, bottom=30mm, voffset=-1in + 15mm, inner=36mm, outer=18mm, footskip = 15mm]{geometry}
% Use this to show margins
%\usepackage{showframe}
%\usepackage{layouts}
\usepackage[toc,page]{appendix}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{color}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{epstopdf}
\usepackage{pdfpages}
\epstopdfsetup{update}
\usepackage{float}
\usepackage{caption}
\usepackage{rotating}
\usepackage{array}
\usepackage{textcomp}
\usepackage{bbm}
\usepackage{fancyref}
\usepackage{xcolor}
\usepackage{rotating}
\usepackage[noadjust]{cite} % basic fos bibliography [1]-[5]
\usepackage{bm}
\usepackage{mathtools}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{subfigure}
\usepackage{array}
\usepackage{longtable}
\usepackage{hhline}
\usepackage{indentfirst}
\usepackage{framed}
\usepackage[hidelinks, pdfencoding=auto, psdextra]{hyperref}
\usepackage{refcount}
\usepackage{bookmark}
\usepackage{cleveref}
\usepackage{autonum}
\usepackage[many]{tcolorbox}
\tcbuselibrary{breakable}
\usepackage{pgfplots}
\usepackage{pstricks}
\usepackage{pspicture}
\usepackage{tikz}
\usetikzlibrary{calc,positioning,shapes,shadows,arrows,fit}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{fancyhdr}
%\pagestyle{fancy}
%\usepackage{auto-pst-pdf}
\usepackage{verbatim}
\setlength{\parindent}{0mm} % Do not indent the 1st line of a paragraph.
% CHAPTERS
\usepackage{fix-cm}
\usepackage{titlesec}
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{0pt}}
\titleformat{\chapter}[hang]{\flushright
\fontseries{b}\fontsize{80}{100}\selectfont}{\fontseries{b}\fontsize{100}{130}\selectfont \textcolor{gray75}\thechapter\hsp}{0pt}{\\ \Huge\bfseries}[]
\widowpenalty=9000
\clubpenalty=9000
\usepackage[all,defaultlines=3]{nowidow}
% Inline equations do not split with this
\binoppenalty=\maxdimen
\relpenalty=\maxdimen
\usepackage{environ}
\NewEnviron{gg_box}{%
\begin{tcolorbox}[colback=black!5, colframe=white!80!, breakable]
%\begin{tcolorbox}[colback=white!10, colframe=black!30!, breakable]
\BODY
\end{tcolorbox}
}
\NewEnviron{bw_box}{%
\begin{tcolorbox}[colback=white!10, colframe=black!80!, arc=0pt,outer arc=0pt, breakable]
\BODY
\end{tcolorbox}
}
\NewEnviron{gw_box}{%
\begin{tcolorbox}[colback=white!10, colframe=black!10!, breakable]
\BODY
\end{tcolorbox}
}
\NewEnviron{bg_box}{%
\begin{tcolorbox}[colback=black!10, colframe=black!80!, arc=0pt,outer arc=0pt, breakable]
\BODY
\end{tcolorbox}
}
%\usepackage{fontspec}
%\setmainfont{cmr12}
%\usepackage{algorithm}
%\usepackage{algpseudocode}
%\usepackage{algcompatible}
%\usepackage{pifont}
%\usepackage[]{algorithm2e}
%\usepackage{stmaryrd}
%\usepackage{subcaption}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section] %definition
\newtheorem{remark}{Remark}[section] % remark
\newtheorem{theorem}{Theorem}[section] % theorem
\newtheorem{example}{Example}[section] % example
\newtheorem{assumption}{Assumption}[section] % example
\newtheorem{problem}{Problem}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{property}{Property}[section]
%\newtheorem{theorem}{Theorem}[section] % theorem
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash}m{#1}}
\makeatletter
\def\BState{\State\hskip-\ALG@thistlm}
\makeatother
\newcommand{\note}[1]{{\color{red} #1}}
\newcommand{\mat}[1]{\bm{\mathit{#1}}}
\newcommand{\vect}[1]{\bm{\mathbf{#1}}}
% Concludes proof
\renewcommand{\qedsymbol}{\hfill$\blacksquare$}
%\hypersetup{colorlinks=false, linkbordercolor={0 0 1}}
\newcommand{\newevenside}{
\ifthenelse{\isodd{\thepage}}{\newpage}{
\newpage
\phantom{placeholder} % doesn't appear on page
\thispagestyle{empty} % if want no header/footer
\newpage
}
}
\usepackage{setspace}
\doublespacing
%\mathtoolsset{showonlyrefs=true}
% Redefines cleardoublepage so as to remove headers/footers
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\begin{center}
%This page intentionally left
\end{center}
\vspace{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
\raggedbottom
% allows a break to occur anywhere
\allowdisplaybreaks
\urldef{\githuburl}\url{https://github.com/li9i/KTH_thesis_simulations}
% insert blank page . . .
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
%. . . by calling \afterpage{\blankpage}