-
Notifications
You must be signed in to change notification settings - Fork 17
/
beamerthemeArguelles.sty
85 lines (73 loc) · 2.5 KB
/
beamerthemeArguelles.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
% arguelles v2.4.2
% author: Michele Piazzai
% https://github.com/piazzai
% license: MIT
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeArguelles}[2024/06/11 Argüelles]
\mode<presentation>
\newif\if@optSans
\@optSansfalse
\DeclareOption{sans}{\@optSanstrue}
\newif\if@optFrameno
\@optFramenofalse
\DeclareOption{frameno}{\@optFramenotrue}
\newif\if@optSplitnav
\@optSplitnavfalse
\DeclareOption{splitnav}{\@optSplitnavtrue}
\ProcessOptions
% split navigation
\if@optSplitnav
\useoutertheme[subsection=false]{miniframes}
\setbeamertemplate{mini frame in other section}{}
\RequirePackage{etoolbox}
\let\beamer@section@set@min@width=\relax
\patchcmd{\insertnavigation}{\hskip-1.875ex plus-1fill}{}{}{}
\patchcmd{\sectionentry}{\hskip1.875ex plus 1fill}{}{}{}
\patchcmd{\sectionentry}{\hyperlink{Navigation#3}{{\usebeamertemplate{section in head/foot shaded}}}}{}{}{}
\patchcmd{\slideentry}{\usebeamertemplate{mini frame in other subsection}}{\usebeamertemplate{mini frame in other subsection of current section}}{}{}
\patchcmd{\slideentry}{\usebeamertemplate{mini frame in other subsection}}{\usebeamertemplate{mini frame in other section}}{}{}
\patchcmd{\slideentry}{\usebeamertemplate{mini frame in other subsection of current section}}{\usebeamertemplate{mini frame in other subsection}}{}{}
\fi
% package dependencies
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[osf]{Alegreya}
\RequirePackage[osf]{AlegreyaSans}
\RequirePackage[euler-hat-accent]{eulervm}
\RequirePackage[bb=px]{mathalpha}
\RequirePackage[nopatch=footnote]{microtype}
\RequirePackage{fontawesome5}
\RequirePackage{opencolor}
\RequirePackage{enumitem}
\RequirePackage{parskip}
\RequirePackage{tikz}
\RequirePackage[skins]{tcolorbox}
% tikz libraries
\usetikzlibrary{calc}
% components
\useinnertheme{Arguelles}
\useoutertheme{Arguelles}
\usecolortheme{Arguelles}
\usefonttheme{Arguelles}
% sans font
\if@optSans
\usefonttheme[onlymath]{serif}
\newcommand\mediumfont{\AlegreyaSansMedium}
\else
\usefonttheme{serif}
\newcommand\mediumfont{\AlegreyaMedium}
\fi
% frame numbers
\if@optFrameno
\defbeamertemplate*{footline}{Arguelles}{
\usebeamerfont{footline section}\hfill\raisebox{.025\paperheight}{
\insertframenumber\hspace{.01\paperwidth}
}
}
\fi
\AtBeginEnvironment{proof}{\let\@addpunct\@gobble}
\newcommand\Section[1]{\section{\texorpdfstring{\lowercase{#1}}{#1}}}
\newcommand\End{\appendix}
\renewcommand{\appendixname}{End}
\mode<all>
\endinput