BFH Lecture

Download

bfhlecture.tgz

BFH Lecture Template

A template for lecture slides in the BFH corporate design, based on the bfhbeamer class of bfh-ci with the sidebar theme. From one source file it builds the slides, several handout variants and a reader in article form.

Installation and the general use of latexmk are described in the general README of the BFH LaTeX templates; this file covers only what is specific to this template.

Files

File

Purpose

bfhlecture.tex

A lecture: preamble and example slides.

variables.sty

Settings shared by all lectures of a course: course title, author, institute, title picture.

Makefile

Builds the output variants (see below).

.latexmkrc

latexmk configuration (see the general README).

Organising a course

Use one .tex file per lecture and keep the course-wide data in variables.sty, which every lecture loads with \usepackage{variables}:

  • in variables.sty: \title (course), \author, \institute, \titlegraphic*{...}

  • in each lecture file: \subtitle, \lecture[<short>]{<title>}{<label>} and \version

Name the lecture files with a common prefix, e.g. lecture01.tex, lecture02.tex; this lets the Makefile build a single lecture (see below).

Pictures are searched in lectures/, pictures/ and figures/ (\graphicspath). SVG files in images/ are converted to PDF by the Makefile with cairosvg before each build.

Output variants

Variant

make target

Class option

Output file

Slides for presenting, with overlays

make slides

final

<file>-slides.pdf

Printable handout with space for notes

make handouts

paperNotes

<file>-print.pdf

Handout for tablets, no notes area

make tablet

tabletNotes

<file>-tablet.pdf

Printable handout including the \note texts

make notes

printNotes

<file>-notes.pdf

Reader in article layout (A4)

make article

beamerarticle

<file>-reader.pdf

make alone builds all variants. The PDFs end up in _build/.

One lecture only: add the file name without .tex after the target, e.g. make slides lecture01. This works for names matching LECTURE_PREFIX (default lecture% bt% mt%). For other names, set the prefix: make slides bfhlecture LECTURE_PREFIX=bfh%. Without a file name, all .tex files in the directory are built.

Without make, the same variants are built with latexmk, e.g. the slides of one file:

latexmk -lualatex -usepretex="\PassOptionsToClass{final}{bfhbeamer}" -jobname="%A-slides" lecture01.tex

Replace final and the suffix slides with the option and suffix from the table for the other variants.

Cleaning: make clean / make mrproper run latexmk -c / latexmk -C (mrproper also deletes editor backup files *~); make distclean removes _build/ and _output/.

Writing slides

  • Title page: \maketitle in a plain frame. Choose the layout with \setbeamertemplate{title page}[...]: BFH-graphic and BFH-fullgraphic (with the title picture), BFH-Orange, or the default. The template shows three variants; keep the one you want.

  • Sections: \section and \subsection structure the sidebar; with \sectionpage a separator slide is inserted.

  • Notes for the lecturer: \note{...} after a frame. The text appears only in the notes variant.

  • Overlays in handouts: handouts are built without animation. Use the handout overlay specification to control what appears there, e.g. \only<3-|handout:0>{...} shows content from slide 3 on in the presentation but not in handouts.

  • Tables: bfhTabular from \LoadBFHModule{tabular}; colours can be set locally with \colorlet{BFH-table}{...} and \colorlet{BFH-tablehead}{...}.

  • Frame numbers are shown (page number in head/foot set to framenumber).

Languages

The main language is English (class option english); German (ngerman) and French are loaded as well. For German slides, change the class option to ngerman and use \usepackage[french,english,main=ngerman]{babel}. French changes the layout of lists (see bfh-ci issue #166); uncomment \frenchsetup{StandardLists=true} to keep the standard lists.

Feedback

Report problems and suggestions via the bfh-ci issue tracker: https://gitlab.ti.bfh.ch/bfh-latex/bfh-ci/-/issues

Preview