TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I give a good number of talks and find that I can share some slides but not others based on audience, topic, etc. Powerpoint and Keynote make it pretty easy to pull slides from a deck into another deck. I'm curious about how folks deal with this situation with beamer. I can think of a few possibilities.

  1. Simply cut-and-paste text from one show to the next
  2. Use an IDE to improve on 1
  3. Make a "supershow" that contains most of what I would want to say, but build a menu system that allows me to customize on-the-fly.

Are there other options or ideas that I should consider?

share|improve this question
Did you consider putting each slide in a separate file and including them according to the actual requirement? I have not tested this with beamer but would not know any reason why this should not work; for some reports I prepare regularly, I have learned to like this method. It also allows you to keep your editing limited to each slide individually, rather than the whole set. – vaettchen Mar 4 '12 at 2:44
I had not thought of that. Certainly for some of my most common slides, this idea makes a lot of sense. – seandavi Mar 4 '12 at 12:58
up vote 6 down vote accepted

I have a mountain of beamer slides that I combine in all sorts of ways for a number of different courses and presentations that I make. Here's what I do, slightly simplified:

  1. I use beamer templates as containers for series of slides (sometimes a series is just a single slide, sometimes it is 40 slides):

     \setbeamertemplate{slide #1 #2}{{#3}}}

    I.e. in my source I put everything in "sections" a la:

    } % end of \defsection
  2. I use the sections of slides with the macro \usesection:

      \ifbeamertemplateempty{slide #1 #2}
      {\errmessage empty section: {#1}{#2}}
            *** Using section: (#1)(#2) }}
        \usebeamertemplate{slide #1 #2}}}
  3. I use the optional package to be allow conditional inclusion of stuff:

  4. I include ALL stuff in a master file (main.tex):

  5. Now each "version" or "course" or "subset of stuff" (or whatever) is basically just a matter of defining the right options and then include main.tex.

I realise this may seem a bit complicated at first go, but the key idea is to separate definition of some slides (\defsection) from the use of them (\usesection). Once that separation is made, all sorts of reuse, different selections based on options, etc, etc, becomes quite trivial.

The one thing I'm missing is an enhancement to the optional package so that I could define things like "include this section if option bar is NOT defined. As it is I need to define EITHER use-bar OR dont-use-bar to be able to trigger on both positive and negative matches.

share|improve this answer
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces (8 if they're in lists!) or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). Also, you don't have to sign with your name since it automatically appears in the lower right corner of your post. – Loop Space Aug 27 '12 at 9:35
@Andrew: many thanks for the help. I did notice that the layout got messed up, but had to start cooking dinner... will remember for next time. – Johan Ihrén Aug 29 '12 at 9:14

I'm often asked to give a talk that's similar to one I've given before. In that case, I just copy the old talk and modify it for the new talk. I don't try to make a master slide set or anything. Usually I end up making customizations for each talk that wouldn't have made as much sense in the other talks.

Except for the intro slides. They are often almost identical between slide sets, and tend to improve and tighten up a bit as time goes on.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.