2016-03-22 12:10:18 +00:00
|
|
|
%%%
|
|
|
|
%%%
|
2016-03-31 17:49:20 +00:00
|
|
|
%%% Classe : cours_beamer.cls
|
2016-03-22 12:10:18 +00:00
|
|
|
%%% Version : 1.0
|
|
|
|
%%% Date : 08/12/14
|
|
|
|
%%% Auteur : Jeff LANCE
|
|
|
|
%%%
|
|
|
|
%%%
|
|
|
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
\ProvidesClass{cours_beamer}[2014/12/08 Slides de cours, v1.0]
|
|
|
|
|
|
|
|
|
|
|
|
%-- classe de base
|
2016-03-31 19:41:16 +00:00
|
|
|
% inutile de passer l'option [utf8] puisque chargee dans commun.sty
|
2016-03-22 12:10:18 +00:00
|
|
|
\LoadClass{beamer}
|
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
%-- extensions
|
|
|
|
% perso
|
|
|
|
\RequirePackage{couleurs}
|
|
|
|
\RequirePackage{commun}
|
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
%-- definitions
|
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
%-- paramètrages
|
2016-03-31 17:49:20 +00:00
|
|
|
\graphicspath{{images/}}
|
|
|
|
|
2016-03-22 12:10:18 +00:00
|
|
|
\usetheme{Madrid}
|
2016-03-31 19:41:16 +00:00
|
|
|
\useinnertheme{circles}
|
|
|
|
\useoutertheme{default}
|
2016-03-22 12:10:18 +00:00
|
|
|
\usefonttheme{serif}
|
|
|
|
\setbeamerfont{enumerate item}{family=\sffamily}
|
2016-03-31 19:41:16 +00:00
|
|
|
\setbeamertemplate{enumerate item}{\insertenumlabel.}
|
2016-03-22 12:10:18 +00:00
|
|
|
|
|
|
|
\setbeamertemplate{navigation symbols}{%
|
|
|
|
\insertframenavigationsymbol
|
|
|
|
\insertsectionnavigationsymbol
|
|
|
|
}
|
2016-03-31 19:41:16 +00:00
|
|
|
|
|
|
|
% \setbeamertemplate{headline}{} % pour supprimer l'entête
|
2016-03-22 12:10:18 +00:00
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
%% MACROS : DEBUT
|
|
|
|
\makeatletter
|
|
|
|
|
|
|
|
%-- Macros personnelles
|
2016-03-22 14:02:38 +00:00
|
|
|
% titre
|
2016-03-22 12:10:18 +00:00
|
|
|
\newcommand{\titre}[4]{%
|
|
|
|
\title{#1}
|
|
|
|
\subtitle{Cours}
|
|
|
|
\date{#2}
|
2016-03-31 19:41:16 +00:00
|
|
|
\author[]{#3}
|
2016-03-22 12:10:18 +00:00
|
|
|
\institute{#4}
|
|
|
|
}
|
|
|
|
|
2016-03-22 14:02:38 +00:00
|
|
|
% debut - fin
|
2016-03-22 12:10:18 +00:00
|
|
|
\newcommand{\debut}{%
|
|
|
|
\begin{frame}
|
|
|
|
\titlepage
|
|
|
|
\transduration{3}
|
|
|
|
\end{frame}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\fin}{%
|
2016-03-22 12:27:06 +00:00
|
|
|
\section{Sommaire}
|
2016-03-22 12:10:18 +00:00
|
|
|
\begin{frame}
|
2016-03-22 12:27:06 +00:00
|
|
|
\begin{center}{\Large Plan }\end{center}
|
2016-03-22 12:10:18 +00:00
|
|
|
\tableofcontents
|
|
|
|
\end{frame}
|
|
|
|
}
|
2016-03-22 14:02:38 +00:00
|
|
|
|
|
|
|
% blocks
|
2016-03-31 17:49:20 +00:00
|
|
|
\newenvironment<>{déf}[1][]{%begin
|
|
|
|
\setbeamercolor{block title}{fg=crimson,bg=pink!95!white}%
|
|
|
|
\begin{block}{Définition}{#1}}{\end{block}
|
|
|
|
}
|
2016-03-22 14:02:38 +00:00
|
|
|
%
|
2016-03-31 17:49:20 +00:00
|
|
|
\newenvironment<>{thm}[1][]{%begin
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=cerisepink!95!white}%
|
|
|
|
\begin{block}{Théorème}{#1}}{\end{block}
|
|
|
|
}
|
|
|
|
%
|
|
|
|
\newenvironment<>{rmq}[1][]{%begin
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=red!75!black}%
|
|
|
|
\begin{block}#1}{\end{block}
|
|
|
|
}
|
2016-03-22 14:02:38 +00:00
|
|
|
%
|
2016-03-31 17:49:20 +00:00
|
|
|
\newenvironment<>{exp}[1][]{%begin
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=green!75!black}%
|
|
|
|
\begin{block}#1}{\end{block}
|
|
|
|
}
|
2016-03-22 14:02:38 +00:00
|
|
|
%
|
2016-03-31 17:49:20 +00:00
|
|
|
\newcounter{exercicecounter}
|
|
|
|
\newenvironment<>{exo}[1][]{%begin
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=blue!75!black}%
|
|
|
|
\ifthenelse{ \equal{#1}{i} }
|
|
|
|
{
|
|
|
|
\def\cType{\roman}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
\ifthenelse{ \equal{#1}{I} }
|
|
|
|
{
|
|
|
|
\def\cType{\Roman}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
\ifthenelse{ \equal{#1}{a} }
|
|
|
|
{
|
|
|
|
\def\cType{\alph}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
\ifthenelse{ \equal{#1}{A} }
|
|
|
|
{
|
|
|
|
\def\cType{\Alph}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
\def\cType{\arabic}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\stepcounter{exercicecounter}
|
|
|
|
\begin{block}{Exercice \cType{exercicecounter}\ }}{\end{block}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-22 12:10:18 +00:00
|
|
|
%--%
|
|
|
|
|
|
|
|
|
|
|
|
% Macros modifiées
|
|
|
|
|
|
|
|
% - %
|
|
|
|
|
|
|
|
\makeatother
|
|
|
|
%% MACROS : FIN
|