Skip to main content

Section 34.2 Beamer

Run this to produce a Beamer slideshow:
xsltproc --xinclude -o path/to/output/slides.tex
  path/to/pretext/xsl/pretext-beamer.xsl path/to/source/slides.xml
Of course, you should then run e.g. pdflatex slides.tex to produce a PDF.
Beamer has a large collection of themes, which set colors, navigation aids, and the overall look of every frame. Elect one with the @theme attribute of the <appearance> element within the <beamer> element of the publication file, exactly as you would name it in a \usetheme command (Subsection 45.7.1). Absent a choice, the Boadilla theme is used. A theme name your installation does not provide stops the build early, with an error message that repeats the name and suggests the likely repairs. Theme names are case-sensitive—it is Singapore, never singapore—so check capitalization before anything else.
Beamer’s own habit is to center a frame’s content vertically. A PreTeXt slideshow instead places content at the top of every frame by default, in agreement with the Reveal.js conversion. For the classic centered look—title page, section pages, and every slide—set a document-wide default of middle with the @valign attribute described in Section 4.43.
You have attempted of activities on this page.