Skip to content

Instantly share code, notes, and snippets.

@5p4k
Created October 24, 2015 10:06
Show Gist options
  • Save 5p4k/fa45b0cfa8d1ffe2dceb to your computer and use it in GitHub Desktop.
Save 5p4k/fa45b0cfa8d1ffe2dceb to your computer and use it in GitHub Desktop.
Basic beamer template
\documentclass{beamer}
\usepackage[utf8]{inputenc}
% Just for sampling
\usepackage{lipsum}
% Font warning suppression
\usepackage{ulem}
\usepackage{lmodern}
% Overlay pauses
\setbeamercovered{dynamic}
% Printing fits a page
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper, landscape]
% Center beamer frame
\setbeamersize{text margin left=3mm, text margin right=3mm}
% Section and total *frame* number in the footer
\setbeamertemplate{footline}{%
\raisebox{\baselineskip}{\insertsection}%
\hfill%
\raisebox{\baselineskip}{\insertframenumber/\inserttotalframenumber}%
}
% No navigation symbols. Seriously, who even uses these?
\beamertemplatenavigationsymbolsempty
% Standard boxes colors
\usecolortheme{orchid}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{A minimal beamer theme}
\author{Pietro Saccardi}
\institute{GitHub Gists}
\date{\today}
\begin{document}
% Suppress warnings
\normalem
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{TOC}
\tableofcontents
\end{frame}
\section{Recap}
\begin{frame}{Catilinarie}
\begin{block}{Titled block}
\begin{itemize}
\item \alert<1>{Quousque tandem abutere},
\item Catilina,
\pause
\item \alert<2>{patientia nostra?}
\pause
\item Quem ad finem sese effrenata iactabit audacia?
\end{itemize}
\end{block}
\end{frame}
\section{Lorem ipsum}
\begin{frame}{De finibus bonorum et malorum}
\begin{alertblock}{Lorem 2}
\pause
\lipsum[2]
\end{alertblock}
\end{frame}
\section{Quid novi?}
\begin{frame}{Neque porro quisquam est qui do\dots}
\begin{exampleblock}{\dots lorem ipsum quia dolor\dots}
\lipsum[1]
\end{exampleblock}
\end{frame}
\begin{frame}
\centering\Huge Questions?
\end{frame}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment