forked from emersonmello/modelos-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeamerthemeIFSC-LEVE.sty
More file actions
239 lines (206 loc) · 9.9 KB
/
Copy pathbeamerthemeIFSC-LEVE.sty
File metadata and controls
239 lines (206 loc) · 9.9 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
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
% IFSC presentation theme
% 2017-03-11 - Emerson Ribeiro de Mello - mello@ifsc.edu.br
\ProvidesPackage{beamerthemeIFSC-LEVE}[2017]
% -------------------------------------------------------------------------------------------%
% Pacotes
% -------------------------------------------------------------------------------------------%
\RequirePackage{pgf}
\RequirePackage{graphicx}
\RequirePackage{listings,color,upquote}
\RequirePackage{array}
\RequirePackage{multirow}
\RequirePackage{url,color,ae}
\RequirePackage{soul}
\urlstyle{sf}
% -------------------------------------------------------------------------------------------%
% -------------------------------------------------------------------------------------------%
% Configurações do tema
% -------------------------------------------------------------------------------------------%
% footer
\pgfdeclareimage[width=\paperwidth]{footer}{figs/rodape}
% colours
\definecolor{kugreen}{RGB}{50,93,61}
\definecolor{kugreenlys}{RGB}{132,158,139}
\definecolor{kugreenlyslys}{RGB}{173,190,177}
\definecolor{kugreenlyslyslys}{RGB}{214,223,216}
\definecolor{AlTitle}{RGB}{255, 190, 190}
\definecolor{AlBody}{RGB}{213,24,0}
\definecolor{ExTitle}{RGB}{201, 217, 217}
\usecolortheme[named=kugreen]{structure}
\setbeamercolor{block title}{fg = white, bg = kugreen}
\setbeamercolor{block body}{bg = kugreen!15!white}
\setbeamercolor{block title alerted}{bg = AlTitle}
\setbeamercolor{block body alerted}{bg = AlBody!5!white}
\setbeamercolor{block title example}{bg = ExTitle}
\setbeamercolor{block body example}{bg = ExTitle!15!white}
\setbeamertemplate{blocks}[rounded]
% colours IFSC 2018
%\definecolor{ifsc2018}{RGB}{13,79,77}
%\definecolor{ifsc2018azulfundo}{RGB}{15,95,92}
%\definecolor{ifsc2018fundoclaro}{RGB}{238,241,236}
%\definecolor{ifsc2018verdeconfirma}{RGB}{47,158,64}
%\setbeamercolor{background canvas}{bg=ifsc2018fundoclaro}
%\setbeamercolor{block title}{fg = white, bg = ifsc2018}
%\setbeamercolor{block body}{bg = ifsc2018!15!ifsc2018fundoclaro}
\setbeamersize{text margin left=5pt,text margin right=5pt}
\setbeamertemplate{navigation symbols}{}
\addtobeamertemplate{frametitle}{}{\color{kugreen}
\pgfline{\pgfpoint{1mm}{-2mm}}{\pgfpoint{10.8cm}{-2mm}}}
\setbeamerfont{title}{series=\bfseries}
\useinnertheme{rectangles}
\setbeamertemplate{headline}[text line]{}
\newcommand{\Linha}{%
\raisebox{-3mm}[0pt][0pt]{%
\begin{pgfpicture}{0mm}{0mm}{0mm}{0mm}
\pgfsetlinewidth{1mm}
\color{kugreen}
\pgfline{\pgfpoint{1.2mm}{-2mm}}{\pgfpoint{10cm}{-2mm}}
\end{pgfpicture}}
}
\addtobeamertemplate{title page}{\Linha}
\setbeamertemplate{footline}{
\pgfuseimage{footer}%
\color{white}
\pgftext[at=\pgfpoint{-35pt}{5pt},center,bottom]{\insertframenumber/\inserttotalframenumber}
}
% -------------------------------------------------------------------------------------------%
% -------------------------------------------------------------------------------------------%
% Opções para o sumário
% -------------------------------------------------------------------------------------------%
\def\sectionname{}
\def\insertsectionnumber{}
\def\subsectionname{}
\def\insertsubsectionnumber{}
\setbeamertemplate{section page}
{
\begin{centering}
\begin{beamercolorbox}[sep=12pt,center]{part title}
\usebeamerfont{section title}\insertsection\par
\end{beamercolorbox}
\end{centering}
}
\AtBeginSection{\frame{\sectionpage}\addtocounter{framenumber}{-1} }% \vspace{1cm}
%\tableofcontents[hideothersubsections,sectionstyle=hide/hide,subsectionstyle=hide/show]}}
%\AtBeginSection{\frame{\sectionpage \vspace{1cm}}
%\tableofcontents[currentsubsection,hideothersubsections,sectionstyle=show/hide,subsectionstyle=show/shaded]
%}
\AtBeginSubsection{\frame{\subsectionpage}\addtocounter{framenumber}{-1} }
\AtBeginSubsubsection{\frame{\subsubsectionpage}\addtocounter{framenumber}{-1} }
% -------------------------------------------------------------------------------------------%
% -------------------------------------------------------------------------------------------%
% Comandos pessoais
% -------------------------------------------------------------------------------------------%
% Esse comando deve ser usado dentro do ambiente itemize para aumentar o espaço entre os items
\newcommand{\espaco}[1]{
\setlength\itemsep{#1}
} % ex: \espaco{1.5em}
% Criando um slide com um espaçamento maior entre os items de todas as listas de itens:
% https://tex.stackexchange.com/questions/16793/global-setting-of-spacing-between-items-in-itemize-environment-for-beamer
\makeatletter
\define@key{beamerframe}{wide}[10pt]{%
\def\beamer@cramped{\itemsep #1\topsep0.5pt\relax}}
\makeatother
% -------------------------------------------------------------------------------------------%
% -------------------------------------------------------------------------------------------%
% Opções para o pacote listings
% -------------------------------------------------------------------------------------------%
% Altera o nome padrão do rótulo usado no comando \autoref{}
\renewcommand{\lstlistingname}{Código}
% Altera o rótulo a ser usando no elemento pré-textual "Lista de código"
\renewcommand{\lstlistlistingname}{Lista de códigos}
\definecolor{hellgelb}{rgb}{1,1,0.9}
\definecolor{colKeys}{rgb}{0,0,0}
\definecolor{colIdentifier}{rgb}{0,0,0.9}
\definecolor{colComments}{rgb}{.4,.4,.4}
\definecolor{colString}{rgb}{0,0,0.6}
\definecolor{colBack}{rgb}{1,1,0.9}
\definecolor{colKeys}{rgb}{0,0,0}
\definecolor{colIdentifier}{rgb}{0,0,0.9}
\definecolor{colComments}{rgb}{.4,.4,.4}
\definecolor{colString}{rgb}{0,0,0.6}
\lstset{ %
aboveskip=\bigskipamount,
backgroundcolor=\color{colBack}, % choose the background color; you must add \usepackage{color} or
basicstyle=\ttfamily\footnotesize, % the size of the fonts that are used for the code
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=n, % sets the caption-position to none
columns=flexible,
commentstyle=\color{colComments}, % comment style
deletekeywords={...}, % if you want to delete keywords from the given language
escapechar={@*}, % if you want to add LaTeX within your code
extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
linewidth=0.98\linewidth,
tab=$\to$,
float=tbph,
xleftmargin=10pt,
frame=single, % adds a frame around the code
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
identifierstyle=\color{colIdentifier},
keywordstyle=\color{colKeys}, % keyword style
% otherkeywords={*,...}, % if you want to add more keywords to the set
firstnumber=last,
numbers=left, % where to put the line-numbers; possible values are (none, left, right)
numbersep=5pt, % how far the line-numbers are from the code
numberstyle=\tiny,
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
showtabs=false, % show tabs within strings adding particular underscores
% stepnumber=2, % the step between two line-numbers. If it's 1, each line will be numbered
stringstyle=\color{colString}, % string literal style
tabsize=2, % sets default tabsize to 2 spaces
title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title
}
% Permitindo caracteres acentuados dentro do ambiente lstlisting
\lstset{%
inputencoding=utf8,
extendedchars=true,
literate=%
{é}{{\'{e}}}1
{è}{{\`{e}}}1
{ê}{{\^{e}}}1
{ë}{{\¨{e}}}1
{É}{{\'{E}}}1
{Ê}{{\^{E}}}1
{û}{{\^{u}}}1
{ù}{{\`{u}}}1
{â}{{\^{a}}}1
{à}{{\`{a}}}1
{á}{{\'{a}}}1
{ã}{{\~{a}}}1
{Á}{{\'{A}}}1
{Â}{{\^{A}}}1
{Ã}{{\~{A}}}1
{ç}{{\c{c}}}1
{Ç}{{\c{C}}}1
{õ}{{\~{o}}}1
{ó}{{\'{o}}}1
{ú}{{\'{u}}}1
{Ú}{{\'{U}}}1
{ô}{{\^{o}}}1
{Õ}{{\~{O}}}1
{Ó}{{\'{O}}}1
{Ô}{{\^{O}}}1
{î}{{\^{i}}}1
{Î}{{\^{I}}}1
{í}{{\'{i}}}1
{Í}{{\~{Í}}}1
}
\lstdefinestyle{shell}{language=csh,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{shellp}{language=csh,basicstyle=\ttfamily\scriptsize}
\lstdefinestyle{php}{language=php,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{phpp}{language=php,basicstyle=\ttfamily\scriptsize}
\lstdefinestyle{ansic}{language=c,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{ansicp}{language=c,basicstyle=\ttfamily\scriptsize}
\lstdefinestyle{java}{language=java,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{javap}{language=java,basicstyle=\ttfamily\scriptsize}
\lstdefinestyle{matlab}{language=matlab,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{matlabp}{language=matlab,basicstyle=\ttfamily\scriptsize}
\lstdefinestyle{python}{language=python,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{pythonp}{language=python,basicstyle=\ttfamily\scriptsize}
\lstdefinestyle{xml}{language=xml,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{xmlp}{language=xml,basicstyle=\ttfamily\scriptsize}
\lstdefinestyle{sql}{language=sql,basicstyle=\ttfamily\footnotesize}
\lstdefinestyle{sqlp}{language=sql,basicstyle=\ttfamily\scriptsize}
%---------------------------------------------------------------------------------------------------------------%