create both tex and pdf outputs using pandoc