forked from jiangsy/LAMDA-Beamer-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_chinese.tex
189 lines (158 loc) · 5.06 KB
/
main_chinese.tex
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
\documentclass[aspectratio=169]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{subfigure}
\usepackage{subfiles}
\usepackage{url}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{xcolor,colortbl}
\usepackage[backend=bibtex,sorting=none]{biblatex}
\usepackage[AutoFakeBold, AutoFakeSlant]{xeCJK}
\renewcommand{\figurename}{图}
\addbibresource{reference.bib} %BibTeX数据文件及位置
\definecolor{NJUPurple}{rgb}{0.41568, 0, 0.37255}
\colorlet{LightNJUPurple}{white!60!NJUPurple}
\colorlet{SuperLightNJUPurple}{white!90!NJUPurple}
\addbibresource{reference.bib} %BibTeX数据文件及位置
\definecolor{NJUPurple}{rgb}{0.41568, 0, 0.37255} % UBC Blue (primary)
\usecolortheme[named=NJUPurple]{structure}
%Information to be included in the title page:
\title{Beamer 模板}
\author{\href{mailto:}{LAMDAer}}
\institute{LAMDA, Nanjing University}
\date{\today}
%Logo in every slide
\logo{%
\makebox[0.98\paperwidth]{
\href{https://www.nju.edu.cn}{\includegraphics[height=0.75cm,keepaspectratio]{logos/nju_logo.jpg}}
\hfill%
\href{https://www.lamda.nju.edu.cn}{\includegraphics[height=0.75cm,keepaspectratio]{logos/lamda_logo.png}}%
}
}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor{block title}{fg=white,bg=NJUPurple!50}
\setbeamercolor{block body}{fg=black,bg=white}
\setbeamerfont{title}{shape=\bfseries,size=\Large}
\setbeamerfont{author}{shape=\bfseries}
\makeatletter
\setbeamertemplate{title page}{%
\vbox{}
\vfill
\vskip2cm%<- added
\begingroup
\centering
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\vfill%<- added
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\vskip-0.2cm%<- changed
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\vfill%<- added
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}%
\vskip0.5cm%<- changed
\endgroup
% \vfill%<- removed
}
\makeatother
%Contents before every section's starting slide
% https://tex.stackexchange.com/questions/193975/highlight-only-current-subsection-hide-subsections-of-other-sections
\AtBeginSection[]
{
\begin{frame}
\frametitle{目录}
\tableofcontents[
currentsection,
currentsubsection,
subsectionstyle=show/show/hide,
sectionstyle=show/shaded
]
\end{frame}
}
\AtBeginSubsection[]
{
\begin{frame}
\frametitle{目录}
\tableofcontents[
currentsection,
currentsubsection,
sectionstyle=show/shaded,
subsectionstyle=show/shaded/hide,
]
\end{frame}
}
% shape, colour of item, nested item bullets in itemize only
\setbeamertemplate{itemize item}[circle] \setbeamercolor{itemize item}{fg=NJUPurple}
\setbeamertemplate{itemize subitem}[circle] \setbeamercolor{itemize subitem}{fg=LightNJUPurple}
\setbeamertemplate{itemize subsubitem}[circle] \setbeamercolor{itemize subsubitem}{fg=SuperLightNJUPurple}
% font size of nested and nested-within-nested bulltes in both itemize and enumerate
% options are \tiny, \small, \scriptsize, \normalsize, \footnotesize, \large, \Large, \LARGE, \huge and \Huge
\setbeamerfont{itemize/enumerate subbody}{size=\scriptsize}
\setbeamerfont{itemize/enumerate subsubbody}{size=\scriptsize}
%%setting up some useful slide creation commands
%split slide
\newenvironment{splitframe}[5]
%[1] ==> 1 parameter passed through {}
%[2] ==> 2 parameters passed through {}{}
%[4] ==> 4 parameters passed through {}{}{}{}
{
\begin{frame}{#3}
\begin{columns}
\column{#1\linewidth}
\centering
#4
\column{#2\linewidth}
\centering
#5
\end{columns}
\centering
\vspace{\baselineskip} % adds one line space
}
%Inside the first pair of braces (ABOVE) is set what your new environment will do before the text within, then inside the second pair of braces (BELOW) declare what your new environment will do after the text. Note second pair can be empty braces too.
{
\end{frame}
}
\begin{document}
\frame{\titlepage}
% no hyperlinks in logos except for titlepage
\logo{%
\makebox[0.98\paperwidth]{
\includegraphics[height=0.75cm,keepaspectratio]{logos/nju_logo.jpg}
\hfill%
\includegraphics[height=0.75cm,keepaspectratio]{logos/lamda_logo.png}%
}
}
\begin{frame}
\frametitle{目录}
\tableofcontents[hidesubsections]
\end{frame}
\section{引言}
\begin{frame}
\frametitle{测试}
深度学习~\cite{lecun2015deep} ...
\end{frame}
\section{结论}
\begin{frame}
\frametitle{Test}
Deep Learning~\cite{lecun2015deep} ...
\end{frame}
\begin{frame}
\frametitle{参考文献}
\printbibliography
\end{frame}
\end{document}
\end{document}