Beamer

##Various Snippets

%=========================================================================== % modify the way the frame break is displayed \setbeamertemplate{frametitle continuation}{(\insertcontinuationcount)} %=========================================================================== \usepackage[compatibility=false]{caption} \captionsetup[figure]{labelformat=empty}% redefines the caption setup of the figures environment in the beamer class. \usepackage{subcaption} %=========================================================================== % fix the numbers not showing in the bibliohraphy section. no idea why... \setbeamertemplate{bibliography item}[text] %=========================================================================== %remove the ugly navigation bar \beamertemplatenavigationsymbolsempty %=========================================================================== % commnds that allow to add slides thats are not counted at the end of the show \newcommand{\backupbegin}{ \newcounter{finalframe} \setcounter{finalframe}{\value{framenumber}} } \newcommand{\backupend}{ \setcounter{framenumber}{\value{finalframe}} } %=========================================================================== %fix cleveref hyperlink in beamer \usepackage{cleveref} \let\chyperref\cref % Save the orginal command under a new name \renewcommand{\cref}[1]{\hyperlink{#1}{\chyperref{#1}}} % Redefine the \cref command and explicitely add the hyperlink.

##Videos Latex can produce pdf with linked/embedded videos. Depending on your pdf reader/presenter, this can be tricky.

###Acrobat Reader

\usepackage[controls]{animate} \begin{figure} \animategraphics[width=6cm]{3}{basename_}{28}{63} \end{figure}

###Okular et pdfpc

\usepackage{multimedia} \movie[ height = 6cm, width = 6cm, showcontrols, poster ] {}{GB_irrad_these_2.avi} % codec: theora, pas de mpeg

For Okular, you may want to change the backend of Phonon (which is used by Okular to play videos) to the VLC one.

sudo apt install phonon-backend-vlc

On newer versions of Ubuntu, the crucial package is phonon4qt5-backend-vlc

###pdfpc

% linked video playng inside pdf % use avi container with theora codec, or mpeg4 mp4/avi % need gstreamer plugin ugly and bad % can also use the multimedia package \newcommand{\inlineMovie}[4][autostart&loop] { \href{run:#2?#1}{\includegraphics[#4]{#3}} } \begin{frame}[t]{title} %\inlineMovie[loop&autostart&start=5&stop=12]{file.avi}{thumbnail.jpg}{height=0.7\textheight} \inlineMovie[loop]{file.avi}{thumbnail.jpg}{height=0.7\textheight} \end{frame}