add beamer-pdf and latex-pdf support.