-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeBrief.sty
129 lines (110 loc) · 5.13 KB
/
beamerthemeBrief.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
124
125
126
127
128
\RequirePackage{graphicx}
\RequirePackage{ctex}
\RequirePackage{xcolor}
\RequirePackage{float}
%字体主题为宋体
\usefonttheme[onlymath]{serif}
\let\songti\relax
\newCJKfontfamily\songti{SimSun}[AutoFakeBold]
\setbeamerfont{normal text}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{alerted text}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{title}{family={\rmfamily\heiti},size=\huge}
\setbeamerfont{subtitle}{size=\LARGE}
\setbeamerfont{part title}{size=\LARGE}
\setbeamerfont{section title}{size=\LARGE}
\setbeamerfont{subsection title}{size=\LARGE}
\setbeamerfont{author}{family={\rmfamily \kaishu},size=\Large}
\setbeamerfont{institute}{family={\rmfamily\heiti},size=\normalsize}
\setbeamerfont{date}{family={\rmfamily\kaishu},size=\normalsize}
\setbeamerfont{part name}{family={\rmfamily\songti},size=\LARGE,series=\bfseries}
\setbeamerfont{section name}{family={\rmfamily\songti},size=\LARGE,series=\bfseries}
\setbeamerfont{subsection name}{family={\rmfamily\songti},size=\LARGE,series=\bfseries}
\setbeamerfont{section in toc}{family={\rmfamily\songti},size=\large,series=\bfseries}
\setbeamerfont{subsection in toc}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{subsubsection in toc}{family={\rmfamily\songti},size=\small,series=\bfseries}
\setbeamerfont{section}{family={\rmfamily\songti},size=\Large,series=\bfseries}
\setbeamerfont{subsection}{family={\rmfamily\songti},size=\large,series=\bfseries}
\setbeamerfont{bibliography entry author}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{bibliography entry title}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{bibliography entry location}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{bibliography entry note}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{note page}{family={\rmfamily\songti},size=\small,series=\bfseries}
\setbeamerfont{section in head/foot}{family={\rmfamily\kaishu},size=\footnotesize}
\setbeamerfont{itemize/enumerate body}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{block title}{family={\rmfamily\songti},size=\Large,series=\bfseries}
\setbeamerfont{block body}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{block body alerted}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{block body example}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
\setbeamerfont{example text}{family={\rmfamily\songti},size=\normalsize,series=\bfseries}
%颜色主题为红色
\definecolor{normal red}{RGB}{134,59,99}
\setbeamercolor{alerted text}{fg=red!50!normal red}
\setbeamercolor{normal text}{fg=normal red!50!black}
\setbeamercolor{title}{fg=normal red!50!black}
\setbeamercolor{section in toc}{fg=normal red!50!black}
\setbeamercolor{subsection in toc}{fg=normal red!50!black}
\setbeamercolor{footline canvas}{fg=fg=normal red!50!black,bg=normal red!20!white}
\setbeamercolor{block body}{bg=normal red!10!white,fg=normal red!50!black}
\setbeamercolor{block title}{bg=normal red!20!white,fg=normal red!50!black}
\setbeamercolor{block alerted text}{fg=normal red!50!red}
%内外主题
\setbeamertemplate{title page}{
\vbox{
\begin{beamercolorbox}[dp=0.7ex,ht=2ex,wd=1\paperwidth,center]{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
\ifx\insertsubtitle\@empty
\else
\vspace{2ex}
\begin{beamercolorbox}[dp=0.7ex,ht=2ex,wd=1\paperwidth,center]{title}
\usebeamerfont{subtitle}\insertsubtitle
\end{beamercolorbox}
\fi
\begin{figure}
\centering
\includegraphics[width=10ex]{ZJURED.pdf}
\end{figure}
\ifx\insertauthor\@empty
\else
\vspace{1ex}
\begin{beamercolorbox}[dp=0.7ex,ht=2ex,wd=1\paperwidth,center]{title}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\fi
\ifx\insertinstitute\@empty
\else
\vspace{4ex}
\begin{beamercolorbox}[dp=0.7ex,ht=2ex,wd=1\paperwidth,center]{title}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\fi
\vspace{3ex}
\begin{beamercolorbox}[dp=0.7ex,ht=2ex,wd=1\paperwidth,center]{title}
\insertdate
\end{beamercolorbox}
}}
\setbeamertemplate{footline}{
\hbox{%
\usebeamerfont{section in head/foot}%
\begin{beamercolorbox}[ht=3ex,wd=1\paperwidth]{footline canvas}
\insertsectionnavigationhorizontal{0.8\linewidth}{}{}\hfill
\insertframenumber/\inserttotalframenumber\hspace{2ex}
\end{beamercolorbox}
}}
\setbeamertemplate{headline}{%
\vspace{1ex}%
\hbox{
\qquad\includegraphics[width=0.8cm]{ZJURED}%
\usebeamerfont{section}%
\begin{beamercolorbox}[dp=0.7ex,ht=3.5ex,wd=0.8\paperwidth]{headline}%
\hspace{1ex}\insertsection%
\ifx\insertsubsection\@empty
\else
{\usebeamerfont{subsection}\,\rule[0.7ex]{0.8cm}{0.04cm}\,\usebeamercolor{section}\insertsubsection}
\fi%
\end{beamercolorbox}
}}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{itemize/enumerate body}{\usebeamerfont{itemize/enumerate body}}
\setbeamertemplate{itemize items}{\color{normal red!40!black}$\bullet$}
\setbeamertemplate{enumearte items}{\color{normal red!40!black}}