Add call to media9 and macro to include media files.
This commit is contained in:
parent
7c0985035b
commit
06abd8d320
@ -21,15 +21,19 @@
|
|||||||
% perso
|
% perso
|
||||||
\RequirePackage{couleurs}
|
\RequirePackage{couleurs}
|
||||||
\RequirePackage{commun}
|
\RequirePackage{commun}
|
||||||
|
% autres
|
||||||
|
\RequirePackage{media9}
|
||||||
%-- %
|
%-- %
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%-- definitions
|
%-- definitions
|
||||||
%-- %
|
%-- %
|
||||||
|
|
||||||
|
|
||||||
%-- paramètrages
|
%-- paramètrages
|
||||||
\graphicspath{{images/}}
|
\graphicspath{{images/}}
|
||||||
|
\addmediapath{{videos/}}
|
||||||
|
|
||||||
\usetheme{Madrid}
|
\usetheme{Madrid}
|
||||||
\useinnertheme{circles}
|
\useinnertheme{circles}
|
||||||
@ -50,11 +54,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
% sections
|
% sections
|
||||||
% \setbeamertemplate{section in toc}[sections numbered]{
|
% \setbeamertemplate{section}{
|
||||||
% \leftskip=3em%
|
% \def\cType{\Roman}
|
||||||
% \Roman{section}.%
|
% \cType{section}.%
|
||||||
% \inserttocsection\par
|
% \inserttocsection\par
|
||||||
% }
|
% }
|
||||||
|
% \renewcommand{\thesection}{
|
||||||
|
% \def\cType{\Roman}
|
||||||
|
% \cType{section}.
|
||||||
|
% }
|
||||||
|
% \renewcommand{\thesubsection}{\arabic{subsection})}
|
||||||
|
|
||||||
% mdframed
|
% mdframed
|
||||||
\pgfdeclarehorizontalshading{partiebkg}{100bp}{
|
\pgfdeclarehorizontalshading{partiebkg}{100bp}{
|
||||||
@ -150,7 +159,15 @@
|
|||||||
\end{center}
|
\end{center}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
}
|
}
|
||||||
|
%
|
||||||
|
\NewDocumentCommand \frametit { }{%
|
||||||
|
\ifnum \value{partiecounter}>0
|
||||||
|
\frametitle{\textbf{\Roman{partiecounter}. \insertsection}}
|
||||||
|
\fi
|
||||||
|
\ifnum \value{sspartiecounter}>0
|
||||||
|
\framesubtitle{\textbf{\arabic{sspartiecounter}) \insertsubsection}}
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
% blocks
|
% blocks
|
||||||
\NewDocumentEnvironment{déf}{ G{Définition} }{%begin
|
\NewDocumentEnvironment{déf}{ G{Définition} }{%begin
|
||||||
@ -226,13 +243,26 @@
|
|||||||
\end{block}
|
\end{block}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% pour inclure des medias
|
||||||
|
\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}%
|
||||||
|
}
|
||||||
%--%
|
%--%
|
||||||
|
|
||||||
|
|
||||||
% Macros modifiées
|
% Macros modifiées
|
||||||
% \renewcommand{\thesection}{\Roman{section}.}
|
|
||||||
% \renewcommand{\thesubsection}{\arabic{section})}
|
|
||||||
% - %
|
% - %
|
||||||
|
|
||||||
\makeatother
|
\makeatother
|
||||||
|
Loading…
x
Reference in New Issue
Block a user