title: Embedding a beamer presentation in a regular document with RMarkdown
body: <p>My aim is write a document in <code>markdown</code> (<code>rmarkdown</code>, more specifically), that can be compiled both to a regular PDF (or other) file <em>and</em> a beamer presentation at the same time, from the same source. (Using <code>knitr</code>.) Scenario: the document includes, in addition to the regular text, one sentence summaries for each paragraph and these should go to the presentation as the bullet points.</p>
  
  <p>I know that <a href="https://stackoverflow.com/questions/25078572/specifying-multiple-simultaneous-output-formats-in-knitr">I can</a> compile a document to several different output formats at the same time with <code>knitr</code>, but the problem here is something else: the content of the document. How to include those sentences...? I must mark them somehow, and achieve that they're <em>not</em> compiled into the regular PDF, <em>and</em> at the same time <em>only they</em> should be compiled into the beamer presentation!</p>
  
  <p>What's the solution here?</p>
  
  <p>(I'm planning to do this with <code>bookdown</code>, but I have the feeling that it doesn't matter.)</p>