I would like to include a second beamer presentation for supplementary material (SM) into the main file. I use the \includepdf command from the pdfpages package but I lost the functionality of the sections in the sidebar. How can I keep it?
Here's my code:
main file:
\documentclass[dvipsnames]{beamer}
\usetheme{Copenhagen}
\usepackage{pdfpages}
\begin{document}
\section{a}
\begin{frame} \frametitle{a}
something...
\end{frame}
\section{b}
\begin{frame} \frametitle{b}
something...
\end{frame}
\cleardoublepage \phantomsection
{\setbeamercolor{background canvas}{bg=}
\includepdf[pages=-]{SM}
}
\end{document}
SM file:
\documentclass[dvipsnames]{beamer}
\usetheme{Hannover}
\begin{document}
\section{sm 1}
\begin{frame} \frametitle{supplementary material 1}
supplementary material...
\end{frame}
\section{sm 2}
\begin{frame} \frametitle{supplementary material 2}
supplementary material...
\end{frame}
\end{document}
pdfpagesdirectly, see http://tex.stackexchange.com/questions/14620/how-to-preserve-hyperlinks-in-included-pdf. The underlying problem might be the same. – cryingshadow Dec 14 '15 at 00:24\includepdf. The format and layout of the pages in the current document has no effect, basically. You can overlay stuff, if necessary e.g. to add a header or footer in a regular document. But this is not going to work well in something like Beamer, I don't think. Why not use\includegraphics? – cfr Dec 14 '15 at 01:38