Generalcreating two different versions with one beamer document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lancekam
Posts: 6
Joined: Mon May 18, 2009 10:40 pm

creating two different versions with one beamer document

Post by lancekam »

I use the beamer class to create slideshows for my class. I make a copy for my students with:
\documentclass[handout]{beamer}
\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm, landscape]

in the head so the students have four slides on each page.
The header I use for my presentation contains:
\documentclass[envcountsect]{beamer}

What I have to do is run it once with their header, post it online. Then run the program (Winedt) again and give myself a version. What I was wondering was if there is a way to create a header that will save two the two different documents with different name with only one run of the program.

Hopefully I have explained what I am looking for clearly. If you need me to explain better, I can attempt to. Thanks in advance for any help.

Lance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

brlnd
Posts: 15
Joined: Wed Sep 17, 2008 6:50 pm

Re: creating two different versions with one beamer document

Post by brlnd »

I have solved the same problem by use of the \input command.

Make three tex-files, one containing the bulk of your text, say 'slideshows.tex'. Then make a file 'handoutversion.tex' containing

\documentclass[handout]{beamer}
\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm, landscape]
\input{slideshows}

And a file called screenversion.tex containing

\documentclass[envcountsect]{beamer}
\input{slideshows}

Then you compile either one of the files, but you only edit slideshows.tex.

Hope it was understandable
Post Reply