1

I have a huge LaTeX Beamer presentation consisting of multiple parts included as single source files.

Now I'll have to create another presentation which is very similar to the first one, it will contain about 90% of the slides of the first one with some additional material, but not congruent with those whole files.

As I'll have to care and update both for a while in the future, it would be best to create both from the same source code.

How can I realize that? Splitting out everything in single files that are included from different master documents would work, but fragment everything in too many pieces.

Maybe I could use some environment variable set in the SHELL environment/makefile and then conditionally exclude the irrelevant parts of the slides for both?

hoeni
  • 247
  • 1
    What about using \defs and \ifx inside the source? Or better using LaTeX ifs? – Astrinus Dec 06 '14 at 09:13
  • 1
    Probably you are looking for \includeonlyframes{list,of,frames,to,process} but \input{file} % Comments is also a good option IMHO. with a consistent naming method of the files and directories, is not too hard to maintain. Then, the main file become a an index where comment/uncomment lines (frames) is very easy. – Fran Dec 06 '14 at 10:26
  • 1
    Related: Compile only outline and comments/ Synopsis view and related links. You could use the comment package as an advanced form of the \defs @Astrinus suggested. The method @Fran suggested should also work. – Mike Renfro Dec 06 '14 at 15:41
  • Worst case, you can make each page a macro in the source file and only expand the pages you intend to use (just don't use numbers in the macro names) – John Kormylo Dec 07 '14 at 22:38
  • Thanks for all the good the good tips! I think I'll go the includes first and see how far it will work out without further macros... – hoeni Dec 14 '14 at 17:46

0 Answers0