10

According to

http://pandoc.org/demos.html

I see the command for turning an md file into a beamer pdf file.

pandoc -t beamer SLIDES -o example8.pdf

When I change the extension to tex instead of pdf,

pandoc -t beamer SLIDES -o example8.tex

the body of the tex file gets produced but there is no preamble. (No \begin{document}, etc)

Is there a way to get the tex file for beamer with the headings? It's not that big of a deal, but it would be convenient.

0

1 Answer 1

14

Pandoc has you covered! It is set up to produce document "fragments" by default, but there's the -s or --standalone flag, which will give you a whole .tex file. So something like

pandoc -s -t beamer SLIDES -o example8.tex

should do the trick.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .