--- /dev/null
+LATEX:=pdflatex
+DOCUMENT:=p
+
+.PHONY: all clean
+.SECONDARY: $(DOCUMENT).fmt
+
+all: $(DOCUMENT).pdf
+
+%.pdf: %.tex %.fmt
+ $(LATEX) $(basename $@)
+ $(LATEX) $(basename $@)
+
+%.fmt: pre.tex
+ $(LATEX) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump"
+
+clean:
+ $(RM) -v $(addprefix $(DOCUMENT)., aux fmt log nav out pdf snm toc)
--- /dev/null
+\documentclass{beamer}
+
+\title[Python]{The Python programming language}
+\author[Lubbers]{M. Lubbers}
+\date[LUGN43]{\today}
+\subject{Python}
+
+\AtBeginSection[]{%
+ \begin{frame}
+ \frametitle{Table of Contents}
+ \tableofcontents[currentsection]
+ \end{frame}
+}