How to automatically create 4:3 AND 16:9 versions of my LaTeX Beamer slides?

If the body of your talk is in talk.tex then you just need

talk43.tex

\documentclass[aspectratio=43]{beamer}\input{talk}

talk169.tex

\documentclass[aspectratio=169]{beamer}\input{talk}

then use a commandline of

pdflatex talk43;pdflatex talk169

Referencing Two pdf versions from one single .TEX file?, you can use, for example:

\ifdefined\aspectRatio
\else
    \def\aspectRatio{169}
\fi
\documentclass[aspectratio=\aspectRatio]{beamer}
\usepackage{lipsum}
\begin{document}
\begin{frame}
\lipsum[1]
\end{frame}
\end{document}

and then, assuming your file is beamer-test.tex run either of the following commands:

pdflatex beamer-test
pdflatex "\def\aspectRatio{43}\input{beamer-test.tex}"
pdflatex "\def\aspectRatio{169}\input{beamer-test.tex}"

You can automate the pdf naming convention by using arara, as I detailed in my answer to the post above.

See also, for example,

  • Can one TeX file output to multiple PDF files?
  • Multiple PDF generation with one tex file

Tags:

Pdftex

Beamer