Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
241 lines (218 sloc) 5.83 KB
\documentclass[professionalfonts, 11pt, dvipsnames]{beamer}
\usepackage[T1]{fontenc}
\usepackage[cm-default,no-math]{fontspec}
\usepackage{parskip}
\setlength{\parindent}{0pt}
%%% FONTS
\usepackage[slantfont,boldfont]{xeCJK}
\usepackage{xltxtra,fontspec,xunicode}
%%%%%%%% Windows
\setCJKmainfont[BoldFont=SimHei]{SimSun}
\setCJKsansfont{SimSun}
\setCJKmonofont{SimHei}
% \setmainfont[BoldFont=Noto Sans]{Noto Serif}
% \setsansfont{Noto Sans}
% \setmonofont{Noto Mono}
%%%%%%%%% Noto Fonts
% \setCJKmainfont[BoldFont=Noto Sans CJK SC]{Noto Serif CJK SC}
% \setCJKsansfont{Noto Sans CJK SC}
% \setCJKmonofont{Noto Sans Mono CJK SC}
% \setmainfont[BoldFont=Noto Sans]{Noto Serif}
% \setsansfont{Noto Sans}
% \setmonofont{Noto Mono}
%%% FIGURES
\usetheme{Antibes}
\makeatletter
\def\Hline{%
\noalign{\ifnum0=`}\fi\hrule \@height 0.8pt \futurelet
\reserved@a\@xhline}
\makeatother
%%% HEADER
\makeatletter
\setbeamercolor{title in head/foot}{fg=white,bg=black}
\setbeamertemplate{headline}
{%
\begin{beamercolorbox}[wd=1.01\paperwidth,colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=1.01\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}
\begin{beamercolorbox}[wd=1.01\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
\usebeamerfont{section in head/foot}%
\ifbeamer@tree@showhooks
\setbox\beamer@tempbox=\hbox{\insertsectionhead}%
\ifdim\wd\beamer@tempbox>1pt%
\hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
\hskip1pt%
\fi%
\else%
\hskip6pt%
\fi%
\insertsectionhead
\usebeamerfont{subsection in head/foot}%
\ifbeamer@tree@showhooks
\setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
\ifdim\wd\beamer@tempbox>1pt%
\ \raise1.9pt\hbox{\vrule width 5pt height0.4pt}%
\hskip1pt%
\fi%
\else%
\hskip12pt%
\fi%
\insertsubsectionhead
\end{beamercolorbox}
}
\makeatother
%%% FOOTER
\makeatother
\setbeamertemplate{footline}
{
\dimen0=1.1\paperwidth
\newcount\p
\newcount\q
\p=\insertframenumber
\q=\inserttotalframenumber
\advance\p by -1
\advance\q by -1
\ifnum\q=0
\q=1
\fi
\multiply\dimen0 by \the\p
\divide\dimen0 by \the \q
%\multiply\dimen0 by \insertframenumber
%\divide\dimen0 by \inserttotalframenumber
\edef\progressbarwidth{\the\dimen0}
\leavevmode%
\setbeamercolor{progress outer}{fg=white, bg=white}
\setbeamercolor{progress bar}{bg=pink!90!white}
\begin{beamercolorbox}[wd=1.1\paperwidth,ht=0.25ex,dp=1ex]{progress outer}
\begin{beamercolorbox}[wd=\progressbarwidth,ht=0.25ex,dp=1ex]{progress bar}
\end{beamercolorbox}%
\end{beamercolorbox}%
}
\makeatletter
\usecolortheme{beaver}
\usepackage{mathpazo}
\usepackage{longtable}
\setbeamertemplate{navigation symbols}{
\setbeamercolor{footline}{fg=pink!90!white}
\usebeamerfont{footline}%
\usebeamercolor[fg]{footline}%
\fontsize{2.8em}{0.8em}\selectfont
\rotatebox{90}{\insertframenumber}
\hspace{-0.8em}
}
%\setbeamertemplate{footline}[page number]
\setbeamercolor{structure}{fg=white!20!gray}
% \renewcommand{\kanjifamilydefault}{\gtdefault} % Gothic font for Japanese
\mathversion{bold}
\setbeamercovered{dynamic} % slightly displaying not highlight
\usepackage{graphicx}
\usepackage{amsmath, amssymb, cite, url}
\usepackage{etex}
$if(natbib)$
\usepackage{natbib}
\bibliographystyle{plainnat}
$endif$
$if(biblatex)$
\usepackage{biblatex}
$if(biblio-files)$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
$if(fancy-enums)$
\usepackage{enumerate}
$endif$
$if(tables)$
\usepackage{ctable}
\usepackage{float} % provides the H option for float placement
$endif$
% Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title:
% \AtBeginPart{\frame{\partpage}}
% \AtBeginSection{\frame{\sectionpage}}
% \AtBeginSubsection{\frame{\subsectionpage}}
% \AtBeginSubsubsection{\frame{\subsubsectionpage}}
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
\setlength{\parindent}{0pt}
% \setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(lang)$
\usepackage[$lang$]{babel}
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title{$title$}
$endif$
$if(author)$
\author{$for(author)$$author$$sep$ \and $endfor$}
$endif$
$if(date)$
\date{$date$}
$endif$
\InputIfFileExists{macro.tex}{}{}
% macro
\def\BeginColumn#1{\begin{columns}\column{#1\textwidth}}
\def\Column#1{\column{#1\textwidth}}
\def\EndColumn{\end{columns}}
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\begin{document}
$if(title)$
\frame{\titlepage}
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
\begin{frame}
\tableofcontents[hideallsubsections]
\end{frame}
$endif$
$body$
$if(natbib)$
$if(biblio-files)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$
$for(include-after)$
$include-after$
$endfor$
\end{document}