-
Notifications
You must be signed in to change notification settings - Fork 0
/
format.tex
31 lines (25 loc) · 855 Bytes
/
format.tex
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
\usepackage{titlesec}
\usepackage[many]{tcolorbox}
% Adjust spacing after the chapter title
\titlespacing*{\chapter}{0cm}{-2.0cm}{0.50cm}
\titlespacing*{\section}{0cm}{0.50cm}{0.25cm}
% Indent
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
% --- Theorems, lemma, corollary, postulate, definition ---
% \numberwithin{equation}{section}
\newtcbtheorem[]{problem}{Problem}%
{enhanced,
colback = black!5, %white,
colbacktitle = black!5,
coltitle = black,
boxrule = 0pt,
frame hidden,
borderline west = {0.5mm}{0.0mm}{black},
fonttitle = \bfseries\sffamily,
breakable,
before skip = 3ex,
after skip = 3ex
}{problem}
\tcbuselibrary{skins, breakable}
% --- You can define your own color box. Just copy the previous \newtcbtheorm definition and use the colors of yout liking and the title you want to use.