When using subfiles
package for beamer documents, I got wrong header bars in frames of sub files. My main file is as follows:
% main.tex
\documentclass{beamer}
\usepackage{subfiles}
\begin{document}
\subfile{sub}
\end{document}
And the sub file is as follows:
% sub.tex
\documentclass[main]{subfiles}
\begin{document}
\begin{frame}
\frametitle{Hello}
Hello World!
\end{frame}
\end{document}
The result of sub.pdf
is wrong. What's the problem with subfiles
package?
Best Answer
Instead of
subfiles
(which I think usesstandalone
) you can directly usestandalone
and its support tobeamer
presentations. Try with:and