% !TEX TS-program = xelatex
% !TEX encoding = UTF-8 Unicode
%%
 % Example presentation for LaTeX Beamer 3.07 or later   2010-05-12
 % Meant to provide a clean Mid Sweden University template
 % Enabled with \usetheme{Miun}
 %
 % Copyright (C) 2010 David Krapohl <david.krapohl@miun.se>
 % 
 % Feel free to use, modify and redistribute.
 %
 % Dual-licensed under
 %  1) Creative Commons Attribution-Noncommercial-ShareAlike 3.0 License
 %     http://creativecommons.org/licenses/by-nc-sa/3.0/
 %
 %  2) GNU General Public License 3.0 or later
 %     http://www.fsf.org/licensing/licenses/gpl.html
 
\documentclass[hyperref={pdfpagemode=FullScreen},professionalfonts]{beamer}
% \logo{\pgfuseimage{logo}} % enable if you want the logo in bottom right corner
% hyperref option: suggest fullpage after loading the pdf


\usepackage{ifxetex}

\ifxetex
	\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
	\defaultfontfeatures{Mapping=tex-text} % to support TeX conventions like ``---''
	\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
	\usepackage{xltxtra} % Extra customizations for XeLaTeX
\else
	\usepackage[T1]{fontenc}
	\usepackage[utf8]{inputenc}
\fi

\usepackage{relsize,fancyvrb}
% tikz is only needed if you draw pictures with it
\usepackage{tikz}
	\usetikzlibrary{arrows,shapes,patterns,snakes,shadows}

% Use the Miun theme!
\mode<presentation>
{
  \usetheme{miun2011}
  % or ...
 % \setbeamercovered{transparent}
  }

\usepackage[english]{babel}
% or whatever language you prefer

\ifxetex
	%\usepackage{palatino} %use this one if you want Palatino as serif font (equations)
	\setsansfont{Gill Sans} % Headlines (Corporate desing font)
	\usepackage{amsmath}
	\usepackage{mathrsfs}
	\setmainfont[Numbers=OldStyle]{TeX Gyre Pagella}
\else
	% use default (Charis SIL) for body
	\usepackage{palatino} %use this one if you want Palatino as serif font (equations)
\fi
\usepackage{booktabs}


%% startpage variables-------------------------------------------------------------------

\title%[Short Paper Title] % (optional, use only with long paper titles)
{Miun Beamer Theme}

\subtitle{\LaTeX presentations at Miun\\ \tiny{inofficial template}} % (optional)

\author%[] (optional, use only with lots of authors)
{Author}
% - Use the \inst{?} command only if the authors have different
%   affiliation.

\institute%[Mid Sweden University] % (optional, but mostly needed)
{Department of Information Technology and Media\\
 Mid Sweden University}
% - Use the \inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.

\date{13 December, Sundsvall} %if empty: \today

\subject{Talks}
% ----------------------------------------------------------------------------------------------%
\begin{document}
\setbeamercolor{background canvas}{bg=miunblue}
\begin{frame}
  \titlepage
\end{frame}
%====================================================================%
%====================================================================%
\setbeamercolor{background canvas}{bg=}
\begin{frame}{Outline}{\ldots or table of contents}
%appears automatically if you use sections between frames
\tableofcontents
\vfill
\end{frame}

%====================================================================%
\section{Itemize}
%====================================================================%
\begin{frame}{Itemize}{With overlays appearing on click}
%  You can create overlays\dots
  \begin{itemize}
  \item
    using overlay specifications:
    \begin{itemize}
    \item<3->
      First item.
    \item<4->
      Second item.
    \end{itemize}
  \item
    using the general \texttt{uncover} command:
    \begin{itemize}
      \uncover<5->{\item
        First item.}
      \uncover<6->{\item
        Second item.}
    \end{itemize}
  \end{itemize}
\end{frame}
%====================================================================%
\subsection{Enumerate lists and columns} % can be used for table of contents
%====================================================================%

\begin{frame}{More about items}{Enumerate lists -- in columns}
Not in column
	\begin{columns}[t]
		\begin{column}{0.4\textwidth}
			\begin{enumerate}
				\item first item
				\item second item
				\item \ldots
			\end{enumerate}
		\end{column}
	\begin{column}{0.4\textwidth}
		Some random equations:		
		\only<2>{
			\begin{equation*}
				\mathsf{E = mc^2}
			\end{equation*}
   }
		\only<3->{
		\begin{equation*}
			\mathsf{F= ma}
		\end{equation*}
		}
		
		\end{column}
	\end{columns}
\end{frame}

%====================================================================%
\section{Images} % can be used for table of contents
%====================================================================%

\begin{frame}{Graphics}{A simple plot included as pdf}
\begin{center}
\includegraphics[width=0.75\textwidth]{sineplot}
\end{center}

\pause % appears as well after a click!

% create overlays with the tikz language:
\begin{tikzpicture}[overlay]
\draw[->,ultra thick] (5,0.5) node[right] {it goes back to 0 here!} to[in=0,out=180] (4,3.9);
\end{tikzpicture}
\end{frame}

%====================================================================%
\section{Tables} % can be used for table of contents
%====================================================================%
\begin{frame}{Tables}{Can be useful}
	\begin{center}
		\alert<2-| alert@2>{highlight things!}\\
		\vspace{5mm}

		\begin{tabular}{llr}
		\hline
		\multicolumn{2}{c}{Item} \\
		\cline{1-2}
		Animal & Description & Price (EUR) \\
		\hline
		Gnat  & per gram & 130.65 \\
		      & each     &  0.1 \\
		\alert<2-| alert@2>{Gnu}   & \alert<2-| alert@2>{stuffed}  & \alert<2-| alert@2>{920.50} \\
		Emu   & stuffed  & 330.33 \\
		Armadillo & frozen & 80.99 \\
		\hline
	\end{tabular}
	\end{center}

\end{frame}
%====================================================================%
\section{Blocks} % can be used for table of contents
%====================================================================%

\begin{frame}{Using Blocks}{Three simple examples}
	\begin{block}{Block Headline}
	\LaTeX\ can be used to make presentations
	\end{block}
	
	\begin{alertblock}{Alertblock Headline}
	Very important information: Use the Beamer package!
	\end{alertblock}
	
	\begin{exampleblock}{Exampleblock Headline}
	Some equation: $\int_0^\infty e^{-x^2} dx=\frac{\sqrt{\pi}}{2}$
	\end{exampleblock}
	
	% There is also a varbock environment that lets you set a width
	%	\begin{varblock}[0.5\textwidth]{Header}
	%		% content
	%		% this box would be 50% of the normal text width (default is 100%)
	%	\end{varwidth}
\end{frame}
%====================================================================%
%====================================================================%
\begin{frame}{Some random video}
\begin{center}
\vbox to -120bp{
       {\hbox to 60bp{
       \special{pdf:ann width 260bp height 180bp
       <</Subtype /Movie /Border [0 0 0] /T (movie dummy)
       /Movie <</F (n900.avi) /Aspect [1 1]
       /Poster true>>
       /A <</ShowControls true>> >>}
       }
       }
       } %
\end{center}       
\end{frame}

\begin{frame}{}

	\begin{center}
	\colorbox{miunblue}{\color{white}{\huge\bfseries Thank you}}\\
	\rotatebox{2.5}{\colorbox{miunblue}{\color{white}{\large Questions?}}}	
	\end{center}

\end{frame}

%====================================================================%
%====================================================================%
\end{document}
