2012-06-15 16:54:02 +02:00
|
|
|
# -*- mode: snippet -*-
|
2012-06-20 19:07:54 +02:00
|
|
|
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-04-27
|
2012-08-15 15:21:25 +02:00
|
|
|
# key: beamer
|
2012-06-15 16:54:02 +02:00
|
|
|
# group: skeleton
|
|
|
|
# name: \documentclass{beamer} ...
|
|
|
|
# --
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2013-01-08 23:57:55 +01:00
|
|
|
\documentclass[svgnames]{beamer} % xcolor=latex,table
|
2012-06-15 16:54:02 +02:00
|
|
|
\usepackage[utf8]{inputenc}
|
2013-01-06 11:38:21 +01:00
|
|
|
\usepackage[T1]{fontenc}
|
2013-01-08 23:57:55 +01:00
|
|
|
\usepackage{amsmath,amssymb,amsfonts}
|
|
|
|
\usepackage{geometry}
|
2013-01-06 11:38:21 +01:00
|
|
|
\usepackage{lmodern}
|
2013-01-08 23:57:55 +01:00
|
|
|
\usepackage{marvosym}
|
|
|
|
\usepackage{textcomp}
|
|
|
|
\DeclareUnicodeCharacter{20AC}{\EUR{}}
|
2012-11-14 21:56:37 +01:00
|
|
|
\DeclareUnicodeCharacter{2264}{\leqslant}
|
|
|
|
\DeclareUnicodeCharacter{2265}{\geqslant}
|
2013-01-08 23:57:55 +01:00
|
|
|
%%=============================================================================
|
|
|
|
%% Properties
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
\title{${1:Title}}
|
|
|
|
\subtitle{${2:Subtitle}}
|
2012-08-15 15:21:25 +02:00
|
|
|
\author{${3:\textcolor{structure.fg!60!white}{P.~Neidhardt}}}
|
2012-06-15 16:54:02 +02:00
|
|
|
\institute{\textcolor{sidebarSection}{${4:Institute}}}
|
|
|
|
|
2012-11-14 21:56:37 +01:00
|
|
|
%%==============================================================================
|
|
|
|
%% Aliases
|
2013-01-08 23:57:55 +01:00
|
|
|
|
2012-11-14 21:56:37 +01:00
|
|
|
\usepackage{xspace}
|
|
|
|
|
2012-06-15 16:54:02 +02:00
|
|
|
\let\latexbak\LaTeX
|
|
|
|
\renewcommand{\LaTeX}{{\rm \latexbak}}
|
|
|
|
|
|
|
|
\let\texbak\TeX
|
|
|
|
\renewcommand{\TeX}{{\rm \texbak}}
|
|
|
|
|
|
|
|
\def\unix{\textsc{Unix}}
|
|
|
|
|
|
|
|
|
2012-11-14 21:56:37 +01:00
|
|
|
%%==============================================================================
|
2012-06-15 16:54:02 +02:00
|
|
|
%% Beamer config
|
|
|
|
|
|
|
|
%% Remove navigation bar.
|
|
|
|
\beamertemplatenavigationsymbolsempty
|
|
|
|
|
|
|
|
%% Colors
|
|
|
|
\colorlet{sidebarSection}{orange!100!black}
|
|
|
|
\colorlet{sidebarSub}{yellow!100!black}
|
|
|
|
|
|
|
|
%% Themes
|
|
|
|
\usecolortheme{whale}
|
|
|
|
|
|
|
|
%% Background
|
|
|
|
\setbeamertemplate{background canvas}[vertical shading][top=white,bottom=white]
|
|
|
|
|
|
|
|
%% Bars
|
|
|
|
\setbeamercolor{frametitle}{bg=black, fg=white}
|
|
|
|
\useoutertheme[height=0pt]{sidebar}
|
2012-10-25 08:55:46 +02:00
|
|
|
\setbeamertemplate{sidebar canvas left}[horizontal shading][left=black,right=black]
|
2012-06-15 16:54:02 +02:00
|
|
|
\setbeamercolor{author in sidebar}{fg=red}
|
|
|
|
\setbeamercolor{section in sidebar shaded}{fg= sidebarSection}
|
|
|
|
\setbeamercolor{subsection in sidebar shaded}{fg= sidebarSub}
|
|
|
|
\setbeamercolor{subsection in sidebar}{fg=white}
|
|
|
|
\setbeamercolor{title}{fg=white,bg=black}
|
|
|
|
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true,shadow=true]
|
|
|
|
|
|
|
|
%% Blocks
|
|
|
|
\setbeamertemplate{blocks}[rounded] [shadow=true]
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=structure.fg!80!black}
|
2012-11-14 21:56:37 +01:00
|
|
|
\setbeamercolor{block body}{fg=black,bg=structure.bg!95!black}
|
|
|
|
\setbeamercolor{block title alerted}{fg=white,bg=DarkRed}
|
|
|
|
\setbeamercolor{block body alerted}{fg=black,bg=structure.bg!95!black}
|
|
|
|
\setbeamercolor{block title example}{fg=white,bg=DarkGreen}
|
|
|
|
\setbeamercolor{block body example}{fg=black,bg=structure.bg!95!black}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%% Footline
|
|
|
|
\setbeamertemplate{footline}[page number]
|
|
|
|
|
|
|
|
%% Lists
|
|
|
|
%% default, triangle, circle, square, ball
|
2012-11-14 21:56:37 +01:00
|
|
|
%\setbeamertemplate{itemize item}[ball]
|
2012-06-15 16:54:02 +02:00
|
|
|
|
2012-11-14 21:56:37 +01:00
|
|
|
%% Auto add frametitle and framesubtitle according to section and subsection.
|
|
|
|
%% See below to toggle the effect.
|
|
|
|
\addtobeamertemplate{frametitle}{
|
|
|
|
\let\insertframetitle\insertsectionhead}{}
|
|
|
|
\addtobeamertemplate{frametitle}{
|
|
|
|
\let\insertframesubtitle\insertsubsectionhead}{}
|
|
|
|
|
|
|
|
%%==============================================================================
|
2013-01-08 23:57:55 +01:00
|
|
|
%% Graphics
|
|
|
|
|
|
|
|
%% Load TikZ after xcolor.
|
|
|
|
% \usepackage[svgnames]{xcolor}
|
|
|
|
% \usepackage{graphicx}
|
|
|
|
% \usepackage{tikz}
|
|
|
|
|
|
|
|
% \newcommand{\fancybox}[1]{
|
|
|
|
% \begin{tikzpicture}
|
|
|
|
% \node[draw,rounded corners]{#1};
|
|
|
|
% \end{tikzpicture}
|
|
|
|
% }
|
|
|
|
|
|
|
|
%%=============================================================================
|
|
|
|
%% Listings
|
|
|
|
|
|
|
|
% \usepackage{listings}
|
|
|
|
|
|
|
|
%% Source code.
|
|
|
|
% \lstdefinestyle{customc}{
|
|
|
|
% % numbers=left,
|
|
|
|
% belowcaptionskip=1\baselineskip,
|
|
|
|
% breaklines=true,
|
|
|
|
% frame=L,
|
|
|
|
% xleftmargin=\parindent,
|
|
|
|
% % framexleftmargin=\parindent,
|
|
|
|
% language=C,
|
|
|
|
% showstringspaces=false,
|
|
|
|
% basicstyle=\footnotesize\ttfamily,
|
|
|
|
% keywordstyle=\bfseries\color{green!40!black},
|
|
|
|
% commentstyle=\itshape\color{purple!40!black},
|
|
|
|
% identifierstyle=\color{blue},
|
|
|
|
% stringstyle=\color{orange},
|
|
|
|
% numberstyle=\ttfamily
|
|
|
|
% }
|
|
|
|
|
|
|
|
% \lstset{escapechar=@,style=customc}
|
|
|
|
|
2012-11-14 21:56:37 +01:00
|
|
|
%%==============================================================================
|
2013-01-08 23:57:55 +01:00
|
|
|
%% Babel
|
|
|
|
|
2012-06-15 16:54:02 +02:00
|
|
|
\usepackage[frenchb]{babel}
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\begin{document}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
\begin{frame}
|
|
|
|
\titlepage{}
|
|
|
|
\end{frame}
|
|
|
|
|
2012-11-14 21:56:37 +01:00
|
|
|
%% Toggle auto insertion of frametitle and framesubtitle.
|
|
|
|
\makeatletter
|
|
|
|
%% \CheckCommand*\beamer@checkframetitle{\@ifnextchar\bgroup\beamer@inlineframetitle{}}
|
|
|
|
\renewcommand*\beamer@checkframetitle{
|
|
|
|
\global\let\beamer@frametitle\relax\@ifnextchar\bgroup\beamer@inlineframetitle{}
|
|
|
|
}
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
\section{Frame}
|
|
|
|
\subsection{Classic frame}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
2013-01-08 23:57:55 +01:00
|
|
|
\begin{frame}
|
2012-11-14 21:56:37 +01:00
|
|
|
\begin{alertblock}{Alert block}
|
|
|
|
Boom!
|
|
|
|
\end{alertblock}
|
2013-01-08 23:57:55 +01:00
|
|
|
\end{frame}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
2012-11-14 21:56:37 +01:00
|
|
|
\subsection{With source code}
|
2013-01-08 23:57:55 +01:00
|
|
|
\begin{frame}[shrink,fragile]
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
\begin{lstlisting}[caption=Hello world!]
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
printf("Hello world\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
\end{lstlisting}
|
2013-01-08 23:57:55 +01:00
|
|
|
\end{frame}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\end{document}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|