I would like to write each slide of a presentation into its own file,
so that I can compile and view each slide, one at a time.
But, I still need to combine all of them to make my presentation.
What's is the way to do that?
I try the following, but it doesn't compile.
includedoc
doesn't seems to be there in Beamer.
file: 1.tex
\documentclass{beamer}
\begin{document}
\begin{frame}
Content
\end{frame}
\end{document}
file: slide.tex
\documentclass{beamer}
\begin{document}
\includedoc{1}
\end{document}
Best Answer
Method 1
Use
docmute
package in the main input file.docmute
package will import everything between\begin{document}
and\end{document}
of the imported file (child.tex
in the following example). You can still compile thechild.tex
as a standalone presentation.Method 2
Using
standalone
document class with optionbeamer
for the child (imported) input file and using packagestandalone
in the main input file.Note: using the first method seems to be simpler!