-
Notifications
You must be signed in to change notification settings - Fork 0
/
livroaberto.sty
220 lines (166 loc) · 6.09 KB
/
livroaberto.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
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
\RequirePackage{colortbl}
\RequirePackage{ifthen}
\RequirePackage[export]{adjustbox}
\RequirePackage{xparse}% For RenewDocumentEnvironment
\RequirePackage{tcolorbox} %Allow those nice environments
\RequirePackage{titling} % needed to manage with the title
\RequirePackage{eso-pic }% to the cover style
\RequirePackage{fouriernc} % Use the New Century Schoolbook font to the cover
\RequirePackage{tikz}
\usetikzlibrary{intersections, positioning, fit, backgrounds, shapes, fadings,
decorations.pathmorphing, graphs, quotes, angles, calc, through, backgrounds}
%\definecolor{default}{RGB}{203,231,100}
%\definecolor{primary}{RGB}{28,19,15}
\definecolor{secondary}{RGB}{240,234,224}
\definecolor{secondarytitulo}{RGB}{220,214,204}
%\definecolor{light}{RGB}{240,234,224}
%\definecolor{cloudcolor}{RGB}{203,231,100}
\definecolor{professor}{RGB}{248,248,255}
\definecolor{professortitulo}{RGB}{228,228,235}
\tcbuselibrary{skins,breakable}
\newcommand{\sphinxlogo}{}
\renewcommand{\releasename}{ensino médio - versão \version}
\makeindex
\newcommand{\listofauthors}{{\scshape\large EDUARDO WAGNER \\ EZEQUIEL CHEQUES \\ FABIO SIMAS \\FLÁVIA LANDIM \\ GLADSON ANTUNES \\ HUMBERTO BORTOLOSSI \\ LHAYLLA CRISSAFF \\ MARCOS PAULO ARAÚJO \\ MICHEL CAMBRAINHA \\ VANESSA MATOS}}
\newcommand{\listofreferees}{{\scshape\large CYDARA RIPOLL \\ LETÍCIA RANGEL}}
\renewcommand{\version}{0.1}
\newtcolorbox{primarybox}[2][]{
colback=professor,
arc=0mm,
% drop fuzzy shadow,
title=\normalsize\uppercase{#2}\phantom{\huge{Ag}},
left=3mm,
coltitle=black,
right=3mm,
top=2mm,
bottom=3mm,
before=,
fonttitle=\sf,
colbacktitle=professortitulo,
width=\linewidth,
enhanced,
frame hidden,
titlerule=.01pt,
#1
}
\newtcolorbox{secondarybox}[2][]{
colback=secondary,
arc=4mm,
% drop fuzzy shadow,
title=\normalsize\uppercase{#2}\phantom{\huge{Ag}},
left=5mm,
coltitle=black,
right=5mm,
top=2mm,
bottom=5mm,
before=,
fonttitle=\large\bf\sf,
colbacktitle=secondarytitulo,
width=\linewidth,
enhanced,
frame hidden,
titlerule=.01pt,
coltext=black,
#1
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RenewDocumentEnvironment{sphinxadmonition}{+m+m} %redefining the sphinx default environment for .. admonition::
{
\ifthenelse{\equal{#2}{Para o professor}} % if Para o professor, use the style below
{
\begin{primarybox}[breakable]{#2}
}
{
\ifthenelse{\equal{#2}{Resposta}}% if Resposta, use the style below
{
\begin{primarybox}[breakable]{#2}
}
{
\begin{secondarybox}[breakable]{#2}% if something else, use this style
}
}
}
{
\ifthenelse{\equal{#2}{Para o professor}} % should close the environment in the right way
{
\end{primarybox}
}
{
\ifthenelse{\equal{#2}{Resposta}}% if Resposta, use the style below
{
\end{primarybox}
}
{
\end{secondarybox}
}
}
}
% Title definitions
\newcommand{\sphinxlogo}{}
%\renewcommand{\releasename}{ensino médio - versão \version}
\makeindex
\newcommand{\listofauthors}{{\scshape\large EDUARDO WAGNER \\ EZEQUIEL CHEQUES \\ FABIO SIMAS \\FLÁVIA LANDIM \\ GLADSON ANTUNES \\ HUMBERTO BORTOLOSSI \\ LHAYLLA CRISSAFF \\ MARCOS PAULO ARAÚJO \\ MICHEL CAMBRAINHA \\ VANESSA MATOS}}
\newcommand{\listofreferees}{{\scshape\large CYDARA RIPOLL \\ LETÍCIA RANGEL}}
%\renewcommand{\version}{0.1}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\renewcommand{\maketitle}{
\begin{titlepage} % Suppresses headers and footers on the title page
\begin{tikzpicture}[overlay,remember picture]
\draw[line width=4pt]
($ (current page.north west) + (1cm,-1cm) $)
rectangle
($ (current page.south east) + (-1cm,1cm) $);
\draw[line width=1.5pt]
($ (current page.north west) + (1.2cm,-1.2cm) $)
rectangle
($ (current page.south east) + (-1.2cm,1.2cm) $);
\end{tikzpicture}
\tikz[remember picture,overlay] \node[opacity=0.1,inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth]{livro-aberto}};
\centering % Centre everything on the title page
\scshape % Use small caps for all text on the title page
\vspace*{\baselineskip} % White space at the top of the page
%------------------------------------------------
% Title
%------------------------------------------------
\rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % Thick horizontal rule
\rule{\textwidth}{0.4pt} % Thin horizontal rule
\vspace{0.75\baselineskip} % Whitespace above the title
{\LARGE LIVRO ABERTO \\ DE\\ MATEMÁTICA\\} % Title
\vspace{0.75\baselineskip} % Whitespace below the title
\rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % Thin horizontal rule
\rule{\textwidth}{1.6pt} % Thick horizontal rule
\vspace{2\baselineskip} % Whitespace after the title block
%------------------------------------------------
% Subtitle
%------------------------------------------------
ensino médio - versão 0.1 % Subtitle or further description
\vspace*{5\baselineskip} % Whitespace under the subtitle
%------------------------------------------------
% Editor(s)
%------------------------------------------------
\begin{minipage}{.5\textwidth}
{\centering autores}
\vspace{0.65\baselineskip} % Whitespace before the editors
\listofauthors % Editor list
\vspace{0.5\baselineskip}
\end{minipage}\hfill
\begin{minipage}{.35\textwidth}
revisão
\vspace{0.5\baselineskip} % Whitespace before the editors
\listofreferees
\end{minipage}
\vspace{5\baselineskip} % Whitespace below the editor list
\textit{Instituto de Matemática Pura e Aplicada \\ Rio de Janeiro} % Editor affiliation
\vfill % Whitespace between editor names and publisher logo
%------------------------------------------------
% Publisher
%------------------------------------------------
patrocínio
\includegraphics[width=2cm]{itau} % Publisher logo
\vspace{1\baselineskip} % Whitespace under the publisher logo
\today % Publication year
{\large OBMEP} % Publisher
\end{titlepage}
}