Last active
October 6, 2016 23:41
-
-
Save mfaytak/a4126487f664174418e03e3771aec18b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{beamer} | |
\usetheme{default} | |
\usecolortheme{crane} | |
\usefonttheme{serif} | |
% the relevant packages for including sound files | |
\usepackage{multimedia} | |
\usepackage{graphicx} | |
\usepackage{attachfile} | |
\usepackage{hyperref} | |
\begin{document} | |
\begin{frame} | |
\frametitle{Here's a button that plays a sound} | |
% link to an audio file called "fish.wav" stored in same directory | |
% when the button is clicked the sound file should play | |
\begin{center} | |
\movie[label=fish]{}{fish.wav} % defines the file the movie points to | |
\hyperlinkmovie{fish}{\beamerbutton{``fish''}} % generate the button with the link around it | |
\end{center} | |
\end{frame} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added the minimal example. BYOAudioFile.