-
Notifications
You must be signed in to change notification settings - Fork 3
/
preamble1_color.tex
54 lines (44 loc) · 1.4 KB
/
preamble1_color.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
\usepackage{tcolorbox}
\usepackage{tikz}
\usepackage{graphicx}
\usetikzlibrary{calc}
\tcbuselibrary{most}
% Define the colours to match the CSS above
\definecolor{background}{HTML}{F8F9F9}
\definecolor{border}{HTML}{006400}
\definecolor{titlecol}{HTML}{006400}
\definecolor{titlecolsol}{HTML}{DCDCDC}
% Create our custom box
\newtcolorbox{customBlock}{
colback = background,
colframe = border,
boxsep=5pt,
arc=3pt}
\newtcolorbox{excerciseblock}[2]{title=#1}
\newtcolorbox[auto counter,number within=section,
number freestyle={\noexpand\thesection.\noexpand\arabic{\tcbcounter}},
]{exercisebox}[2][]{title=Lab~#2~ Exercise \thetcbcounter #1}
\definecolor{block-green}{cmyk}{0.80, 0.13, 0.14, 0.04}
%\newtcolorbox[auto counter,number within=section,
%number freestyle={\noexpand\thesection.\noexpand\arabic{\tcbcounter}},
%]{solutionbox}[3][]{colbacktitle=#2,title=Lab~#3~ Solution exercise \thetcbcounter #1}
\newtcolorbox[colbacktitle=block-green,auto counter,number within=section,
number freestyle={\noexpand\thesection.\noexpand\arabic{\tcbcounter}},
]{solutionbox}[2][]{title=Lab~#2~ Solution exercise \thetcbcounter #1}
% Create our custom box
\newtcolorbox{ti}{
colback = background,
colframe = border,
boxsep=0pt,
%bottom=0pt,
%bottomrule=pt,
after skip=0pt,
arc=0pt}
\newtcolorbox{body}{
colback = background,
colframe = border,
boxsep=0pt,
%top=0pt,
%toprule=0pt,
before skip=0pt,
arc=0pt}