2016-03-22 12:10:18 +00:00
|
|
|
|
%%%
|
|
|
|
|
%%%
|
2016-03-31 17:49:20 +00:00
|
|
|
|
%%% Classe : cours_beamer.cls
|
2016-05-10 12:22:19 +00:00
|
|
|
|
%%% Version : 1.5
|
2016-03-22 12:10:18 +00:00
|
|
|
|
%%% Date : 08/12/14
|
|
|
|
|
%%% Auteur : Jeff LANCE
|
|
|
|
|
%%%
|
|
|
|
|
%%%
|
|
|
|
|
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
2016-05-10 12:22:19 +00:00
|
|
|
|
\ProvidesClass{cours_beamer}[2014/12/08 Slides de cours, v1.5]
|
2016-03-22 12:10:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%-- classe de base
|
2016-03-31 19:41:16 +00:00
|
|
|
|
% inutile de passer l'option [utf8] puisque chargee dans commun.sty
|
2016-05-10 12:22:19 +00:00
|
|
|
|
\LoadClassWithOptions{beamer}
|
2016-03-22 12:10:18 +00:00
|
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%-- extensions
|
|
|
|
|
% perso
|
|
|
|
|
\RequirePackage{couleurs}
|
|
|
|
|
\RequirePackage{commun}
|
2016-05-10 21:21:20 +00:00
|
|
|
|
\RequirePackage{shortcuts}
|
2016-05-10 19:23:32 +00:00
|
|
|
|
% autres
|
|
|
|
|
\RequirePackage{media9}
|
2016-03-22 12:10:18 +00:00
|
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%-- definitions
|
|
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%-- paramètrages
|
2016-03-31 17:49:20 +00:00
|
|
|
|
\graphicspath{{images/}}
|
2016-05-10 19:23:32 +00:00
|
|
|
|
\addmediapath{{videos/}}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
|
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}
|
2016-05-10 12:22:19 +00:00
|
|
|
|
|
|
|
|
|
% enumerate
|
2016-03-31 20:21:58 +00:00
|
|
|
|
\setbeamerfont{enumerate item}{family=\rmfamily}
|
|
|
|
|
\setbeamertemplate{enumerate item}{\textbf{\insertenumlabel.}}
|
2016-03-22 12:10:18 +00:00
|
|
|
|
|
2016-05-10 12:22:19 +00:00
|
|
|
|
% itemize
|
|
|
|
|
\setbeamertemplate{itemize item}[triangle]
|
|
|
|
|
\setbeamertemplate{itemize subitem}[circle]
|
|
|
|
|
|
2016-03-22 12:10:18 +00:00
|
|
|
|
\setbeamertemplate{navigation symbols}{%
|
|
|
|
|
\insertframenavigationsymbol
|
|
|
|
|
\insertsectionnavigationsymbol
|
|
|
|
|
}
|
2016-03-31 19:41:16 +00:00
|
|
|
|
|
2016-05-10 13:33:50 +00:00
|
|
|
|
% sections
|
2016-05-10 19:23:32 +00:00
|
|
|
|
% \setbeamertemplate{section}{
|
|
|
|
|
% \def\cType{\Roman}
|
|
|
|
|
% \cType{section}.%
|
2016-05-10 13:33:50 +00:00
|
|
|
|
% \inserttocsection\par
|
|
|
|
|
% }
|
2016-05-10 19:23:32 +00:00
|
|
|
|
% \renewcommand{\thesection}{
|
|
|
|
|
% \def\cType{\Roman}
|
|
|
|
|
% \cType{section}.
|
|
|
|
|
% }
|
|
|
|
|
% \renewcommand{\thesubsection}{\arabic{subsection})}
|
2016-05-10 13:33:50 +00:00
|
|
|
|
|
2016-05-10 12:22:19 +00:00
|
|
|
|
% mdframed
|
|
|
|
|
\pgfdeclarehorizontalshading{partiebkg}{100bp}{
|
|
|
|
|
color(0bp)=(white!40);color(100bp)=(black!0)
|
|
|
|
|
}
|
|
|
|
|
%
|
|
|
|
|
\pgfdeclarehorizontalshading{sspartiebkg}{100bp}{
|
|
|
|
|
color(0bp)=(white!40);color(100bp)=(black!0)
|
|
|
|
|
}
|
|
|
|
|
\mdfdefinestyle{partie}{
|
|
|
|
|
outerlinewidth=1em, outerlinecolor=white,%
|
|
|
|
|
% leftmargin=-1em, rightmargin=-1em,%
|
|
|
|
|
middlelinewidth=1.2pt, linecolor=red,roundcorner=5pt,%
|
|
|
|
|
apptotikzsetting={
|
|
|
|
|
\tikzset{
|
|
|
|
|
mdfbackground/.append style={
|
|
|
|
|
shading=partiebkg
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%
|
|
|
|
|
\mdfdefinestyle{sspartie}{
|
|
|
|
|
outerlinewidth=1em, outerlinecolor=white,%
|
|
|
|
|
% leftmargin=-1em, rightmargin=-1em,%
|
|
|
|
|
middlelinewidth=1.2pt, linecolor=blue,roundcorner=0pt,%
|
|
|
|
|
apptotikzsetting={
|
|
|
|
|
\tikzset{
|
|
|
|
|
mdfbackground/.append style={
|
|
|
|
|
shading=partiebkg
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-22 12:10:18 +00:00
|
|
|
|
%-- %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%% MACROS : DEBUT
|
|
|
|
|
\makeatletter
|
|
|
|
|
|
|
|
|
|
%-- Macros personnelles
|
2016-05-10 21:32:32 +00:00
|
|
|
|
% \titre
|
|
|
|
|
% defini le titre du document
|
2016-03-22 12:10:18 +00:00
|
|
|
|
\newcommand{\titre}[4]{%
|
|
|
|
|
\title{#1}
|
|
|
|
|
\subtitle{Cours}
|
|
|
|
|
\date{#2}
|
2016-04-05 11:26:35 +00:00
|
|
|
|
\author{#3}
|
2016-03-22 12:10:18 +00:00
|
|
|
|
\institute{#4}
|
|
|
|
|
}
|
|
|
|
|
|
2016-05-10 12:22:19 +00:00
|
|
|
|
|
2016-05-10 21:28:32 +00:00
|
|
|
|
% \debut | \fin
|
|
|
|
|
% renvoie les slides d'intro et de cloture du document
|
2016-03-22 12:10:18 +00:00
|
|
|
|
\newcommand{\debut}{%
|
|
|
|
|
\begin{frame}
|
|
|
|
|
\titlepage
|
|
|
|
|
\end{frame}
|
|
|
|
|
}
|
2016-05-10 12:22:19 +00:00
|
|
|
|
%
|
2016-03-22 12:10:18 +00:00
|
|
|
|
\newcommand{\fin}{%
|
2016-05-10 22:22:52 +00:00
|
|
|
|
\section*{Plan}
|
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
|
|
|
|
|
2016-05-10 12:22:19 +00:00
|
|
|
|
|
2016-05-10 21:28:32 +00:00
|
|
|
|
% \partie | \sspartie
|
|
|
|
|
% definie un slide de titre pour une (sous)section
|
2016-05-10 12:22:19 +00:00
|
|
|
|
\newcounter{partiecounter}
|
2016-05-10 21:04:42 +00:00
|
|
|
|
\newcounter{sspartiecounter}
|
|
|
|
|
|
2016-05-10 12:22:19 +00:00
|
|
|
|
\NewDocumentCommand \partie { G{Partie} } {%
|
|
|
|
|
\def\cType{\Roman}
|
|
|
|
|
\stepcounter{partiecounter}
|
2016-05-10 21:04:42 +00:00
|
|
|
|
\setcounter{sspartiecounter}{0}
|
2016-05-10 12:22:19 +00:00
|
|
|
|
\section{#1}
|
|
|
|
|
\begin{frame}
|
|
|
|
|
\begin{center}
|
|
|
|
|
\begin{mdframed}[style=partie]
|
|
|
|
|
\centering \textcolor{red}{\textbf{ \cType{partiecounter}. #1}}
|
|
|
|
|
\end{mdframed}
|
|
|
|
|
\end{center}
|
|
|
|
|
\end{frame}
|
|
|
|
|
}
|
|
|
|
|
%
|
|
|
|
|
\NewDocumentCommand \sspartie { G{Sous-Partie} } {%
|
|
|
|
|
\def\cType{\arabic}
|
|
|
|
|
\stepcounter{sspartiecounter}
|
|
|
|
|
\subsection{#1}
|
|
|
|
|
\begin{frame}
|
|
|
|
|
\begin{center}
|
|
|
|
|
\begin{mdframed}[style=sspartie]
|
|
|
|
|
\centering \textcolor{blue}{\textbf{ \cType{sspartiecounter}) #1}}
|
|
|
|
|
\end{mdframed}
|
|
|
|
|
\end{center}
|
|
|
|
|
\end{frame}
|
|
|
|
|
}
|
2016-05-10 21:28:32 +00:00
|
|
|
|
|
|
|
|
|
% \ftitre
|
|
|
|
|
% definie le titre des frames de section et de sous-section en fonction
|
|
|
|
|
% des (sous)sections actuellement definies
|
|
|
|
|
\NewDocumentCommand \ftitre { }{%
|
2016-05-10 19:23:32 +00:00
|
|
|
|
\ifnum \value{partiecounter}>0
|
|
|
|
|
\frametitle{\textbf{\Roman{partiecounter}. \insertsection}}
|
|
|
|
|
\fi
|
|
|
|
|
\ifnum \value{sspartiecounter}>0
|
|
|
|
|
\framesubtitle{\textbf{\arabic{sspartiecounter}) \insertsubsection}}
|
|
|
|
|
\fi
|
|
|
|
|
}
|
2016-05-10 12:22:19 +00:00
|
|
|
|
|
2016-03-22 14:02:38 +00:00
|
|
|
|
% blocks
|
2016-05-10 21:32:32 +00:00
|
|
|
|
% definition de divers blocks personnels : definition, theoreme, exemple,
|
|
|
|
|
% exercice (avec numerotation), remarque
|
2016-05-10 12:22:19 +00:00
|
|
|
|
\NewDocumentEnvironment{déf}{ G{Définition} }{%begin
|
|
|
|
|
\setbeamercolor{block title}{fg=crimson,bg=pink!95!white}
|
|
|
|
|
\begin{block} {#1}
|
|
|
|
|
}{%end
|
2016-05-12 19:55:28 +00:00
|
|
|
|
\end{block}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
2016-03-22 14:02:38 +00:00
|
|
|
|
%
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\NewDocumentEnvironment{thm}{ G{Théorème} }{%begin
|
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=cerisepink!95!white}
|
|
|
|
|
\begin{block} {#1}
|
|
|
|
|
}{%end
|
|
|
|
|
\end{block}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
|
|
|
|
%
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\newenvironment<>{pre}[1][]{%begin
|
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=airforceblue!75!black}%
|
|
|
|
|
\begin{block}{Preuve}{#1}
|
|
|
|
|
}{%end
|
|
|
|
|
\end{block}
|
|
|
|
|
}
|
|
|
|
|
%
|
|
|
|
|
\NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin
|
2016-03-31 17:49:20 +00:00
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=red!75!black}%
|
2016-04-07 20:21:56 +00:00
|
|
|
|
\begin{block} {#1}
|
2016-04-05 14:52:16 +00:00
|
|
|
|
}{%end
|
|
|
|
|
\end{block}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
2016-03-22 14:02:38 +00:00
|
|
|
|
%
|
2016-04-07 20:21:56 +00:00
|
|
|
|
\NewDocumentEnvironment{exe}{ G{Exemple} }{%begin
|
2016-03-31 17:49:20 +00:00
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=green!75!black}%
|
2016-04-07 20:21:56 +00:00
|
|
|
|
\begin{block} {#1}
|
2016-04-05 14:52:16 +00:00
|
|
|
|
}{%end
|
|
|
|
|
\end{block}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
2016-03-22 14:02:38 +00:00
|
|
|
|
%
|
2016-03-31 17:49:20 +00:00
|
|
|
|
\newcounter{exercicecounter}
|
2016-04-07 20:21:56 +00:00
|
|
|
|
\NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin
|
2016-03-31 17:49:20 +00:00
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=blue!75!black}%
|
2016-04-07 20:21:56 +00:00
|
|
|
|
\ifthenelse{ \NOT \equal{#1}{0} }{
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\ifthenelse{ \equal{#1}{i} }
|
2016-03-31 17:49:20 +00:00
|
|
|
|
{
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\def\cType{\roman}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
|
|
|
|
{
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\ifthenelse{ \equal{#1}{I} }
|
2016-03-31 17:49:20 +00:00
|
|
|
|
{
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\def\cType{\Roman}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
|
|
|
|
{
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\ifthenelse{ \equal{#1}{a} }
|
2016-03-31 17:49:20 +00:00
|
|
|
|
{
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\def\cType{\alph}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
|
|
|
|
{
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\ifthenelse{ \equal{#1}{A} }
|
|
|
|
|
{
|
|
|
|
|
\def\cType{\Alph}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
\def\cType{\arabic}
|
|
|
|
|
}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-05 14:52:16 +00:00
|
|
|
|
\stepcounter{exercicecounter}
|
2016-04-07 20:21:56 +00:00
|
|
|
|
\begin{block}{#2 \cType{exercicecounter}\ }
|
2016-04-05 14:52:16 +00:00
|
|
|
|
}{
|
2016-04-07 20:21:56 +00:00
|
|
|
|
\begin{block}{#2\ }
|
2016-04-05 14:52:16 +00:00
|
|
|
|
}
|
|
|
|
|
}{%end
|
|
|
|
|
\end{block}
|
2016-03-31 17:49:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-05-10 21:32:32 +00:00
|
|
|
|
% \includemovie
|
|
|
|
|
% permet d'inclure une video dans une frame
|
2016-05-10 19:23:32 +00:00
|
|
|
|
\newcommand{\includemovie}[3]{%
|
|
|
|
|
\includemedia[%
|
|
|
|
|
width=#1,height=#2,%
|
|
|
|
|
activate=pagevisible,%
|
|
|
|
|
deactivate=pageclose,%
|
|
|
|
|
addresource=#3,%
|
|
|
|
|
flashvars={%
|
|
|
|
|
source=#3 % same path as in addresource!
|
|
|
|
|
&autoPlay=false % default: false; if =true, automatically starts playback after activation (see option ‘activation)’
|
|
|
|
|
&loop=false % if loop=true, media is played in a loop
|
|
|
|
|
&controlBarAutoHideTimeout=0 % time span before auto-hide
|
|
|
|
|
}%
|
|
|
|
|
]{}{VPlayer.swf}%
|
|
|
|
|
}
|
2016-05-10 21:04:42 +00:00
|
|
|
|
|
2016-03-22 12:10:18 +00:00
|
|
|
|
%--%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% Macros modifiées
|
2016-05-10 19:23:32 +00:00
|
|
|
|
|
2016-03-22 12:10:18 +00:00
|
|
|
|
% - %
|
|
|
|
|
|
|
|
|
|
\makeatother
|
|
|
|
|
%% MACROS : FIN
|