TransWikia.com

Using media9 to embed audio but it breaks cross-references and bibliography

TeX - LaTeX Asked by Kate Lynn Lindsey on July 19, 2021

I’m using media9 to embed .mp3 files into my PDF. My compiler is XeLaTeX. The audio files are embedding fine and play in my Adobe reader, however when I use the media9 package, my cross-references (using label and ref{}) and bibliography (using natbib and cite{}) stop working.

Here’s an example of my code. It includes a cross-reference to a table and an example of an embedded audio file into a table. The code calls up an .mp3 audio file called IdiBone.mp3 and a .pdf image file called speaker.pdf.

Can someone help me get media9 and my cross-references to work? Thank you.

documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tipa}
usepackage{phonrule}
usepackage{media9}
usepackage{graphicx}
graphicspath{ {./images/} }
usepackage{natbib}
usepackage{tablefootnote}
usepackage{fontspec}
setmainfont{Charis SIL}

usepackage{gb4e} % Always declare this one last

begin{document}

begin{itemize}
    item Two varieties (Idi and Taeme) have labialized velar stops /kʷ ɡʷ/ (see Table ref{tab:correspondences} a,c).
end{itemize}

begin{table}[h]
    centering
    begin{tabular}{ll}
        hline & Idi}  hline
        a. & kʷɪʈ includemedia[
  addresource=IdiBone.mp3,
  transparent,
  flashvars={
    source=IdiBone.mp3
   &autoPlay=true&hideBar=true
  },
]{includegraphics[height=1.44ex]{speaker.pdf}}{APlayer.swf}
end{tabular}
    caption{Cognate sets for labiovelars preceding vowels}
    label{tab:correspondences}
end{table}

end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP