-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRenminUniv.sty
executable file
·144 lines (120 loc) · 5.33 KB
/
RenminUniv.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
\RequirePackage{tikz}
\usepackage[most]{tcolorbox}
\mode<presentation>
\newif\ifbeamer@secheader
\beamer@secheaderfalse
%\DeclareOptionBeamer{secheader}{\beamer@secheadertrue}
\ProcessOptionsBeamer
\useoutertheme[footline=authorinstitutetitle,subsection=false]{smoothbars}
\makeatletter % [add curpage/total page at the bottom](http://tex.stackexchange.com/questions/100838/beamer-dresden-theme-miniframes-appeareance-and-frame-number-insertion)
\newcommand{\frameofframes}{/}
\newcommand{\setframeofframes}[1]{\renewcommand{\frameofframes}{#1}}
\setbeamertemplate{footline}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle}%
\hfill%
{\usebeamerfont{frame number}\usebeamercolor[fg]{frame number}\insertframenumber~\frameofframes~\inserttotalframenumber}
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
\makeatother
\useinnertheme{circles}
%\useoutertheme{default}
%\useinnertheme[shadow=true]{rounded}
% \xdefinecolor{tsinghua}{rgb}{0.8,0.102,0.102} %RGB#82318E
\xdefinecolor{tsinghua}{RGB}{151,31,48} %RGB#82318E
\setbeamercolor{footline}{bg=tsinghua}
\setbeamercolor{frametitle}{bg=tsinghua,fg=white}
\setbeamercolor{title}{bg=tsinghua}
\setbeamerfont{frametitle}{size=\large}
%\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{bibliography item}[text]
%\setbeamertemplate{caption}[numbered]
% 改变caption文字
\setbeamertemplate{caption}{\raggedright fig \insertcaptionnumber: \insertcaption\par}
\setbeamercolor{palette primary}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor{palette secondary}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}
\setbeamercolor{palette quaternary}{fg=white,bg=structure.fg!50!black}
%\setbeamercolor*{sidebar}{use=structure,bg=structure.fg}
\setbeamercolor{titlelike}{parent=palette primary}
%% try
\setbeamercolor{block title}{bg=tsinghua,fg=white}
\setbeamercolor*{block title example}{use={normal text,example text},bg=,fg=tsinghua}
%自定义变红加粗命令
\newcommand{\rb}[1]{{\color{red}{\textbf{#1}}}}
%自定义命令移除headline中的空心点(bullets)
\newcommand{\removeBullets}{\setbeamertemplate{headline}
{%
\begin{beamercolorbox}{section in head/foot}
\insertsectionnavigationhorizontal{\textwidth}{}{}
\end{beamercolorbox}%
}}
\newtcolorbox{titleBox}[1][]{enhanced, colframe=tsinghua,%边框颜色
colback=tsinghua!20!, %内容背景颜色
coltitle=white, %标题字体颜色
coltext=black, %内容字体颜色
%toprule=0pt, %内容部分上边框粗细
%rightrule=0pt, %内容部分右边框粗细
fonttitle={\bfseries \kaishu}, %字体
attach boxed title to top
center={yshift=0pt}, %调整标题的上下位置,left可以替换为center和right
colbacktitle=tsinghua, %标题背景颜色
title=#1}
%自定义block
\newenvironment{titleBlock}{\begin{titleBox}}{\end{titleBox}} %可以通过这种形式设置除block,example block之外的block
%%%%
%\newenvironment{block1}{\begin{mybox}}{\end{mybox}} %可以通过这种形式设置除block,example block之外的block
%%%%
\newtcolorbox{mybox}[1][]{enhanced, colframe=tsinghua, %边框颜色
colback=tsinghua!20!, %内容背景颜色
coltitle=white, %标题字体颜色
coltext=black, %内容字体颜色
toprule=0pt, %内容部分上边框粗细
rightrule=0pt, %内容部分右边框粗细
fonttitle={\bfseries \kaishu}, %字体
attach boxed title to top
left={yshift=-6pt}, %调整标题的上下位置,left可以替换为center和right
colbacktitle=tsinghua, %标题背景颜色
title=#1}
\setbeamertemplate{block begin}{\begin{mybox}[\insertblocktitle]}
\setbeamertemplate{block end}{\end{mybox}}
%
\setbeamercolor{fine separation line}{}
\setbeamercolor{item projected}{fg=white}
\setbeamercolor{palette sidebar primary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar quaternary}{use=structure,fg=structure.fg}
\setbeamercolor{palette sidebar secondary}{use=structure,fg=structure.fg}
\setbeamercolor{palette sidebar tertiary}{use=normal text,fg=normal text.fg}
%\setbeamercolor{palette sidebar quaternary}{fg=white}
\setbeamercolor{section in sidebar}{fg=brown}
\setbeamercolor{section in sidebar shaded}{fg=grey}
\setbeamercolor{separation line}{}
\setbeamercolor{sidebar}{bg=tsinghua}
\setbeamercolor{sidebar}{parent=palette primary}
\setbeamercolor{structure}{fg=tsinghua}
\setbeamercolor{subsection in sidebar}{fg=brown}
\setbeamercolor{subsection in sidebar shaded}{fg=grey}
\AtBeginSection[]{
\begin{frame}
\tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
\end{frame}
}
\AtBeginSubsection[]{
\begin{frame}
\tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
\end{frame}
}
\mode
<all>