-
Notifications
You must be signed in to change notification settings - Fork 10
/
slides.cls
121 lines (100 loc) · 3.24 KB
/
slides.cls
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
\ProvidesClass{slides}
\LoadClass[11pt,xcolor=svgnames,aspectratio=169]{beamer}
% packages
\usepackage{lean_progress}
\usepackage[utf8]{inputenc}
\usepackage[portuges,brazil]{babel}
\usepackage{datetime}
\usepackage{appendixnumberbeamer}
\usepackage[accumulated]{beamerseminar}
\usepackage{genealogytree}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{inconsolata}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage[export]{adjustbox}
\usepackage[scale=2]{ccicons}
\usepackage{pgfplots}
\usepgfplotslibrary{dateplot}
\usepackage{xspace}
\usepackage{minted}
\usepackage{mdframed}
\usepackage{enumerate}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\usepackage{fontspec}
% Setup
\usetikzlibrary{calc}
\usefonttheme{professionalfonts}
\hypersetup{
colorlinks=true,
linkcolor=black,
filecolor=black,
urlcolor=blue,
}
% New commands
\newcommand{\generatetoc}{
\begin{frame}{Sumário}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
}
\newcommand{\rawcode}[1]{\texttt{#1}}
\newcommand{\code}[2]{\mintinline{#1}{#2}}
\newcommand{\file}[1]{\texttt{\underline{#1}}}
\renewcommand{\theFancyVerbLine}{\tiny \texttt{\textcolor{gray}{\arabic{FancyVerbLine}}}}
\newcommand{\inputcode}[2]{\begin{mdframed}[shadow=true,shadowsize=3pt,shadowcolor=gray]\inputminted[fontsize=\scriptsize,linenos,numbersep=4pt]{#1}{#2}\end{mdframed}}
\newcommand{\inputsnippet}[4]{\begin{mdframed}[shadow=true,shadowsize=3pt,shadowcolor=gray]\inputminted[fontsize=\scriptsize,linenos,firstline=#2,lastline=#3,numbersep=2pt]{#1}{#4}\end{mdframed}}
\newcommand{\inputsyntax}[2]{\vspace{0.1in} \inputminted[fontsize=\scriptsize]{#1}{#2} \vspace{0.1in}}
\newcommand{\vv}[1]{\vec{\mkern0mu#1}}
\newcommand{\Mod}[2]{#1\ (\mbox{mod}\ #2)}
\newcommand{\dist}{\mathrm{dist}}
\DeclareMathSymbol{\mlq}{\mathord}{operators}{``}
\DeclareMathSymbol{\mrq}{\mathord}{operators}{`'}
\renewcommand*{\ALG@name}{Algoritmo}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\newcommand{\forto}{\ \mbox{\bf to}\ }
\newcommand{\algand}{\ \mbox{\bf and}\ }
\definecolor{SBlue}{HTML}{4C82AF}
\newcommand{\newAPLsymbol}[7]{
\setlength{\aboverulesep}{0pt}
\setlength{\belowrulesep}{0pt}
\begin{table}
\centering
\begin{tabularx}{0.9\textwidth}{ccX}
\toprule
\rowcolor{SBlue}
\textcolor{white}{\textbf{Símbolo}} & \textcolor{white}{\textbf{Aridade}} & \textcolor{white}{\textbf{Descrição}} \\
\midrule
\\
\vspace*{1pt}{\huge \texttt{#1}} & \multirow{2}{*}{#3} & \multirow{2}{=}{#4} \\
(\textit{#2}) \\
\\
\midrule
\rowcolor{SBlue}
\textcolor{white}{\textbf{Unicode}} &
\textcolor{white}{\textbf{TAB}} &
\textcolor{white}{\textbf{APL}} \\
\midrule
\\
\texttt{#5} & \texttt{#6} & \texttt{#7} \\
\\
\bottomrule
\end{tabularx}
\end{table}
}
\newcommand\inputmintinline[3][]{%
\begingroup\everyeof{}%
\CatchFileDef\temp{#3}{}%
\scantokens\expandafter{%
\expandafter\processinputmintinline\expandafter{\temp}{#1}{#2}%
}\unskip
\endgroup
}
\newcommand{\processinputmintinline}[3]{\mintinline[#2]{#3}{#1}}