-
Notifications
You must be signed in to change notification settings - Fork 0
/
theslides.cls
111 lines (85 loc) · 2.82 KB
/
theslides.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{theslides}[2023/07/26 Minerva project's slide class.]
% pictures and colors
\RequirePackage[rgb]{xcolor}
\RequirePackage[dvips,xetex]{graphicx}
\RequirePackage{tikz}
\RequirePackage{calculator}
% package options
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\DeclareOption{spanish}{
\PassOptionsToPackage{\CurrentOption}{thebasis}
}
\DeclareOption{english}{
\PassOptionsToPackage{\CurrentOption}{thebasis}
}
\ProcessOptions\relax
\LoadClass[xcolor=rgb, usenames, dvipsnames, notheorems]{beamer}
%\geometry{top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm}
% tables
\RequirePackage{booktabs}
% custom packages
\RequirePackage{thebasis} % Common class configuration.
\RequirePackage{thetheorems} % Theorem configuration.
% bibliography
\RequirePackage[%
backend=bibtex,
bibstyle=numeric,
citestyle=numeric-comp,
sorting=nyt,
sortcites=true,
isbn=false,
url=false,
doi=false,
maxnames=999,
eprint=false]{biblatex}
\AtEveryBibitem{%
\clearlist{language}%
}
% beamer colours
\setbeamercolor{title}{fg = black}
\setbeamercolor{titlelike}{fg = black}
\setbeamercolor{structure}{fg = black}
\setbeamercolor{section in toc}{fg = black, bg = yellow}
\setbeamercolor{section in toc shaded}{fg = black}
\setbeamercolor{bibliography entry note}{fg = black}
% beamer fonts
\setbeamerfont{title}{series = \scshape, parent = structure}
\setbeamerfont{frametitle}{series = \scshape, parent = structure}
\setbeamerfont{section in toc}{series = \scshape, parent = structure}
\setbeamerfont{footline}{size = \fontsize{10}{11}\selectfont}
% beamer templates
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}[frame number]{}
%\setbeamertemplate{bibliography item}{\textbullet}
\setbeamertemplate{theorems}[numbered]
\setbeamertemplate{itemize items}{\textbullet}
\setbeamertemplate{frametitle continuation}{}
%% remove additional spacing before and after block environment
%\addtobeamertemplate{block begin}{\vskip -\bigskipamount}{}
%\addtobeamertemplate{block end}{}{\vskip -\smallskipamount}
% \addtobeamertemplate{block begin}{%
% \setbeamercolor*{item}{fg=white}%
% }{}
% beamer setup
\AtBeginSection[]{
\begin{frame}[noframenumbering,plain]
\tableofcontents[currentsection,hideallsubsections]
\end{frame}
}
\AtBeginSubsection[]{
\begin{frame}[noframenumbering,plain]
\tableofcontents[currentsection, subsectionstyle=show/shaded/hide]
\end{frame}
}
\RequirePackage{tcolorbox}
\newtcbox{\alertbox}[1][black]{on line, arc=0pt, colback = black, boxsep = 0pt, left = 1pt, right = 1pt, top = 1pt, bottom = 1pt, boxrule = 0pt, nobeforeafter}
\newtcbox{\whitebox}[1][white]{arc=0pt, colback = white}
\renewcommand{\alert}[1]{
\hspace{-2pt}\alertbox{\textcolor{white}{#1}}\hspace{-2pt}
}
% remove date
\date{}
% code
\RequirePackage{listings}