I'm writing my linguistics thesis in which I plan on embedding a number of sound files. I use the same code to embed each file, the only difference being the name of the MP3 file.
Is it possible to define a shortcut to reduce the length of the code I use each time I embed a file? I currently embed sound files with the following code.
Code: Select all
\includemedia{
transparent,
addresource=<file name>,
flashvars={source=<file name> &autoPlay=true &hideBar=true}
}{\speaker{}}{APlayer.swf}
{\speaker{}}
is a predefined shortcut for the icon I use as the <poster text>. I use the same poster text for each sound file.Ideally I'd like to be able have something like
\embed{<filename>}
. But any solutions that significantly reduce the length of my code would be welcomed.