New answers tagged

3

It is not clear to me, what is the purpose of the file template1.tex. But the syntax can be fixed. Package filecontents can be loaded before \documentclass via \RequirePackage: \RequirePackage{filecontents} \begin{filecontents*}{template1.tex} \documentclass{beamer} \begin{document} \begin{frame}{A frame} Foo \end{frame} \end{document} ...



Top 50 recent answers are included