BFH Lecture
Download
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 |
|---|---|
|
A lecture: preamble and example slides. |
|
Settings shared by all lectures of a course: course title, author, institute, title picture. |
|
Builds the output variants (see below). |
|
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 |
|
Class option |
Output file |
|---|---|---|---|
Slides for presenting, with overlays |
|
|
|
Printable handout with space for notes |
|
|
|
Handout for tablets, no notes area |
|
|
|
Printable handout including the |
|
|
|
Reader in article layout (A4) |
|
|
|
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:
\maketitlein aplainframe. Choose the layout with\setbeamertemplate{title page}[...]:BFH-graphicandBFH-fullgraphic(with the title picture),BFH-Orange, or the default. The template shows three variants; keep the one you want.Sections:
\sectionand\subsectionstructure the sidebar; with\sectionpagea separator slide is inserted.Notes for the lecturer:
\note{...}after a frame. The text appears only in thenotesvariant.Overlays in handouts: handouts are built without animation. Use the
handoutoverlay 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:
bfhTabularfrom\LoadBFHModule{tabular}; colours can be set locally with\colorlet{BFH-table}{...}and\colorlet{BFH-tablehead}{...}.Frame numbers are shown (
page number in head/footset toframenumber).
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