-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.tex
71 lines (61 loc) · 2.07 KB
/
style.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
\definecolorpalette{sampleColorPalette} {
\definecolor{blue}{HTML}{4CC7F4}
\definecolor{pink}{HTML}{FCA2BC}
\definecolor{lightbg}{HTML}{EFEFEF}
\definecolor{colorThree}{named}{cyan}
}
\definecolorstyle{sampleColorStyle} {
\definecolor{colorOne}{named}{blue}
\definecolor{colorTwo}{named}{yellow}
\definecolor{colorThree}{named}{orange}
}{
% Background Colors
\colorlet{backgroundcolor}{white}
\colorlet{framecolor}{white}
% Title Colors
\colorlet{titlefgcolor}{white}
\colorlet{titlebgcolor}{\titlebgcolor}
% Block Colors
\colorlet{blocktitlebgcolor}{white}
\colorlet{blocktitlefgcolor}{black}
\colorlet{blockbodybgcolor}{white}
\colorlet{blockbodyfgcolor}{black}
% Innerblock Colors
\colorlet{innerblocktitlebgcolor}{white}
\colorlet{innerblocktitlefgcolor}{black}
\colorlet{innerblockbodybgcolor}{white}
\colorlet{innerblockbodyfgcolor}{black}
% Note colors
\colorlet{notefgcolor}{black}
\colorlet{notebgcolor}{lightbg}
\colorlet{noteframecolor}{white}
}
\definelayouttheme{sample}{
\usecolorstyle[colorPalette=sampleColorPalette]{sampleColorStyle}
\usebackgroundstyle{sample}
\usetitlestyle{titlestyle}
\useblockstyle{sample}
\useinnerblockstyle{sample}
\usenotestyle{sample}
}
\definebackgroundstyle{sample}{
\draw[inner sep=0pt, line width=0pt, color=red, fill=backgroundcolor]
(bottomleft) rectangle (topright);
}
\definetitlestyle{titlestyle}{
width=\textwidth, roundedcorners=0, linewidth=2pt, innersep=50pt,
titletotopverticalspace=20mm, titletoblockverticalspace=10mm
}{
\begin{scope}[line width=\titlelinewidth, rounded corners=\titleroundedcorners]
\draw[color=blocktitlebgcolor, fill=titlebgcolor]
(\titleposleft,\titleposbottom) rectangle (\titleposright,\titlepostop);
\end{scope}
}
\definenotestyle{sample}{
targetoffsetx=0pt, targetoffsety=0pt, angle=45, radius=8cm,
width=25cm, connection=true, rotate=0, roundedcorners=0, linewidth=1pt,
innersep=20pt
}{
\draw[draw=notebgcolor,fill=notebgcolor,rotate=\noterotate]
(notecenter.south west) rectangle (notecenter.north east);
}