%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[serif,mathserif,xcolor=dvipsnames,hyperref={colorlinks=true,linkcolor=black,citecolor=black,filecolor=blue,urlcolor=blue,unicode}]{beamer}

\RequirePackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\RequirePackage[AutoFakeBold,AutoFakeSlant]{xeCJK}
\RequirePackage{CJKfntef}
\setmainfont{Times New Roman} % Default main font
\setromanfont{Times New Roman} % Default roman font
\setCJKmainfont{標楷體} % \setCJKmainfont[BoldFont= 粗體字型]{正常字型}，若要改成其他字型，請先確認電腦有哪些字型
\setCJKfamilyfont{kaiv}[Vertical=RotatedGlyphs]{標楷體}%別名
%\setCJKfamilyfont{kaiv}{BiauKai:script=hani:language=ZHT:vertical:+vert}
\setmonofont{Courier New} % 等寬字型
\XeTeXlinebreaklocale "zh" % 針對中文自動換行
\XeTeXlinebreakskip = 0pt plus 1pt % 字與字之間加入0pt至1pt的間距，確保左右對整齊
\parindent 0em % 段落縮進
\linespread{1.2}%行距

\RequirePackage{preamble/beamer-nccuguava}
\RequirePackage{preamble/beamer-guava}
\input{preamble/beamer-style}%投影片的樣式設定

%可以在幻燈片中顯示時鐘
\usepackage[font=Times,timeinterval=1, colorwarningfirst=blue, fillcolorwarningfirst=blue!60!yellow, fillcolorwarningsecond=blue!10!yellow, ]{tdclock}

%載入開頭頁
%\input{beamertitlepageChinese}%中文標題
\input{beamertitlepage}%英文標題


%\logo{\includegraphics[width=0.08\textwidth]{figure/ncculogo.png}}
%\logo{\vbox{\hbox to 1cm{\hfil\pgfuseimage{figure/ncculogo.png}}\vskip0.1cm\hbox{\pgfuseimage{figure/ncculogo.png}}}}
%\logo{\vbox{\hbox to 1cm{\hfil\includegraphics[width=0.08\textwidth]{figure/ncculogo.png}}\vskip0.1cm\hbox{\includegraphics[width=0.08\textwidth]{figure/ncculogo.png}}}}
\usepackage{animate}

\begin{document}

%Outline不用修改，直接從Main Talk之後開始修改
%=================================================================================
\frame{\titlepage}

%\section<presentation>*{Outline}
\begin{frame}
  \frametitle{Outline}
  \tableofcontents[part=1]
\end{frame}
%=================================================================================
\part<presentation>{Main Talk}
%=================================================================================

\input{beamermaintalk}
\end{document}