2

I am using for my lecture a one-content solution with two main files of documentclasses beamer/scrbook+beamerarticle. Now I want to make use of the command \includeonlylecture but it seems to not work. Here a minimal example:

\documentclass{scrbook}
\usepackage{beamerarticle}

\includeonlylecture{v2}

\begin{document}

\lecture{V1}{v1}
\begin{frame}
    \frametitle{Heading V1}
\end{frame}


\lecture{V2}{v2}
\begin{frame}
    \frametitle{Heading V2}
\end{frame}

\end{document}

The output still is

enter image description here

Arne
  • 1,305

1 Answers1

3

You can use \includeonly if your are in article mode:

%\documentclass{beamer}

\documentclass{scrbook} \usepackage{beamerarticle}

\begin{filecontents}[overwrite]{v1.tex} \lecture{V1}{v1} \begin{frame} \frametitle{Heading V1} \end{frame} \end{filecontents} \begin{filecontents}[overwrite]{v2.tex} \lecture{V2}{v2} \begin{frame} \frametitle{Heading V2} \end{frame} \end{filecontents}

\mode<article>{\newcommand{\arnelikestoplaywithmodes}[1]{\includeonly{#1}}} \mode<beamer>{\newcommand{\arnelikestoplaywithmodes}[1]{\includeonlylecture{#1}}}

\arnelikestoplaywithmodes{v2}

\begin{document}

\include{v1} \include{v2}

\end{document}