forked from ExerciseBook/whucs-beamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeCoventry.sty
123 lines (99 loc) · 4.09 KB
/
beamerthemeCoventry.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
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule,
\usepackage{caption}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{mathtools, bm}
% --------------------Chinese Support--------------------------
\usepackage{ctex}
\usepackage{xeCJK}
\usepackage{fontspec}
\setCJKmainfont{Microsoft YaHei}
% --------------------Biber Support----------------------------
\usepackage[backend=biber]{biblatex}
\addbibresource{bib.bib}
\makeatletter
\let\@@magyar@captionfix\relax
\makeatother
\usefonttheme{professionalfonts}
\DeclareOptionBeamer{width}
{\PassOptionsToPackage{width=#1}{beamerouterthemesidebar}}
\DeclareOptionBeamer{hideothersubsections}
{\PassOptionsToPackage{hideothersubsections=#1}{beamerouterthemesidebar}}
\DeclareOptionBeamer{hideallsubsections}
{\PassOptionsToPackage{hideallsubsections=#1}{beamerouterthemesidebar}}
\ProcessOptionsBeamer
\mode<presentation>
\useoutertheme[height=0pt,left]{sidebar}
\usecolortheme{seahorse}
\setbeamercolor*{titlelike}{parent=structure}
\useinnertheme{rectangles}
\setbeamertemplate{frametitle}[default][left]
% ---------------Global Color Settings----------------------------
%\definecolor{whucolor}{RGB}{0 114 198}%Blue
\definecolor{whucolor}{RGB}{22 89 154}%WHUCSBlue
%\definecolor{whucolor}{RGB}{1 168 156}%Cyan
%\definecolor{whucolor}{RGB}{0 128 0}%Green
%\definecolor{whucolor}{RGB}{249 105 14}%Orange
%\definecolor{whucolor}{RGB}{102 51 153}%Purple
%\definecolor{whucolor}{RGB}{150 40 26}%Red
% ----------------------------------------------------------------
\addtobeamertemplate{sidebar left}{}{{\hspace{0.15cm}\includegraphics[width=1.3cm]{whu.png}}\vspace{0.4cm}}
\setbeamercolor{sidebar}{bg=whucolor}
\setbeamercolor{author in sidebar}{bg=white,fg=white!20}
\setbeamerfont{author in sidebar}{series=\itshape}
\setbeamerfont{title}{size = {\fontsize{26}{36}}, series=\bfseries}
\setbeamerfont{author}{size = {\fontsize{20}{40}}}
\setbeamerfont{institute}{size = {\fontsize{15}{40}}}
\setbeamerfont{date}{size = {\fontsize{18}{20}}}
\setbeamerfont{frametitle}{size = {\fontsize{20}{20}}, series=\bfseries}
\setbeamercolor{title in sidebar}{bg=white,fg=white}
\setbeamerfont{title in sidebar}{series=\bfseries}
\setbeamercolor{structure}{fg=whucolor}
\setbeamerfont{structure}{size = {\fontsize{16}{16}}, series=\bfseries}
\setbeamercolor{section in sidebar}{fg=white}
\setbeamercolor{subsection in sidebar}{fg=white}
%\usepackage[T1]{fontenc}
%\usepackage[default, osfigures]{opensans}
\usepackage{transparent}
\usebackgroundtemplate{
% ---------------------aspectratio=1610-----------------------
%\hspace*{0.235\paperwidth}
%{\includegraphics[width=0.6\paperwidth]{whucs}}
% ------------------------------------------------------------
% ---------------------aspectratio=169------------------------
\hspace*{0.26\paperwidth}
{\includegraphics[width=0.55\paperwidth]{whucs}}
% ------------------------------------------------------------
% ---------------------aspectratio=43-------------------------
%\hspace*{0.18\paperwidth}
%{\includegraphics[width=0.725\paperwidth]{whucs}}
% ------------------------------------------------------------
}
\setbeamertemplate{itemize item}[circle]
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{enumerate item}[circle]
\setbeamertemplate{enumerate subitem}[circle]
\setbeamercolor{block title}{bg=whucolor,fg=white}
\setbeamercolor{block title example}{fg=whucolor}
\makeatletter
\setbeamercolor{myfootlinetext}{fg=whucolor}
\newdimen\mywidth%
\setlength{\mywidth}{\paperwidth}%
\addtolength{\mywidth}{-\beamer@sidebarwidth}%
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\beamer@sidebarwidth,ht=1ex,dp=1ex,right]{sidebar}%
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\mywidth,ht=1ex,dp=1ex,right]{myfootlinetext}%
\usebeamerfont{date in head/foot}\hfill\insertshortauthor{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
\mode
<all>