HKU Beamber Template
Author
Nick Zheng
Last Updated
9 months ago
License
Creative Commons CC BY 4.0
Abstract
A beamer teamplate with the theme of the University of Hong Kong (HKU)
\documentclass[10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{xeCJK}
\usepackage{graphicx}
\usepackage {mathtools}
\usepackage{utopia} %font utopia imported
\usetheme{CambridgeUS}
\usecolortheme{dolphin}
% set colors
\definecolor{myNewColorA}{RGB}{153,208,109}
\definecolor{myNewColorB}{RGB}{109,188,47}
\definecolor{myNewColorC}{RGB}{76,132,33}
\setbeamercolor*{palette primary}{bg=myNewColorC}
\setbeamercolor*{palette secondary}{bg=myNewColorB}
\setbeamercolor*{palette tertiary}{bg=myNewColorA}
\setbeamercolor*{titlelike}{fg=myNewColorB}
\setbeamercolor*{title}{bg=myNewColorA}
\setbeamercolor*{item}{fg=myNewColorA}
\setbeamercolor*{caption name}{fg=myNewColorA}
\setbeamercolor{frametitle}{fg=myNewColorC}
\usefonttheme{professionalfonts}
\usepackage{natbib}
\usepackage{hyperref}
\hypersetup{colorlinks,
citecolor=myNewColorC,
linkcolor=.,
menucolor=white,
filecolor=pink,
anchorcolor=yellow
}
%------------------------------------------------------------
\titlegraphic{\includegraphics[height=2cm]{hku-logo-eps.eps}}
\setbeamerfont{title}{size=\large}
\setbeamerfont{subtitle}{size=\small}
\setbeamerfont{author}{size=\small}
\setbeamerfont{date}{size=\small}
\setbeamerfont{institute}{size=\small}
\title[The University of Hong Kong]{A Good Title is Attractive}
\subtitle{But How to Make a Good Title?}
\author[Nick Zheng]{Nick Zheng}
\institute[somebody@gmail.com]{ The University of Hong Kong
Business School}
\date[\today]{\today}
%\date[Hong Kong 2024.1]
%{Hong Kong 2024.1}
%------------------------------------------------------------
%This block of commands puts the table of contents at the
%beginning of each section and highlights the current section:
\AtBeginSection[]
{
\begin{frame}
\frametitle{Contents}
\tableofcontents[currentsection]
\end{frame}
}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
%------------------------------------------------------------
\begin{document}
%The next statement creates the title page.
\frame{\titlepage}
\begin{frame}
\frametitle{Contents}
\tableofcontents
\end{frame}
%------------------------------------------------------------
\section{Introduction}
\begin{frame}{Introduction}
The Fama-French five-factor model \citep{fama_five-factor_2015}.
\end{frame}
\section{Conclusion}
\begin{frame}{Conclusion}
The Fama-French five-factor model \citep{fama_five-factor_2015}.
\end{frame}
\section*{Acknowledgement}
\begin{frame}
\textcolor{myNewColorC}{\Huge{\centerline{Thank you!}}}
\end{frame}
\section*{Reference}
\begin{frame}{Reference}
\scriptsize
\bibliographystyle{apalike}
\bibliography{ref}
\end{frame}
\end{document}