Getting slightly lazy with Beamer

I’ve recently moved away from s5 as my presentation framework of choice - mostly because they’re hard to share on sites like SlideShare should I ever choose to.

I’m currently playing with Beamer to generate PDF-based presentations.

As ever it’s a bit of a learning curve. I’ve managed one company-internal presentation so far, and intend to write my YAPC::EU 2010 presentation using it.

Being inherently lazy, I got bored manually running the voodoo required to regenerate the PDF from the .tex file(s).

Here’s my self-howto for using make to increase my laziness coefficient. It’s not perfect, but seems to do the trick.

FILES=foo.pdf bar.pdf

all: $(FILES)

%.pdf: %.tex
        rm -rf $<.{aux,nav,log,out,snm,toc}
        pdflatex $< 1>/dev/null && \
                pdflatex $< 1>/dev/null

clean:
        rm -rf *.{aux,nav,log,out,snm,toc}

Simple once you’ve spent far too long working it out.

Next step … automating the list of targets.

1 Comment

Hi Chisel,

I also use Beamer for my presenations and you can find some examples at http://www.mediafire.com/?sharekey=914f0608cf2c6415d1014a7a667fa2b47ee097cc2dcbf9935621d66e282a0ee8

If you want to see the source files, message me through Perlmonks.

Another tip: use latexmk to compile the sourcefiles: it is a real time and sanity-saver (and is written in Perl)! http://www.phys.psu.edu/~collins/software/latexmk-jcc/

Cheers!

CountZero

Leave a comment

About Chisel

user-pic