Skip to content

joelberkeley/presentations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

presentations

TeX source for Beamer presentations on various topics. Often accompanied by source code in various programming languages. Presentations typically use the Metropolis theme.

Note: In the following, a presentation directory is not the repository root itself, but any directory containing the TeX and other source code for a given presentation. Presentation directories are all located in the repository root.

Including source code with the listings package

Most presentations here include extracts of source code in various programming languages. The LaTeX Listings package allows us to achieve this easily and beautifully (we think). Code extracts are usually imported directly from dedicated source packages in the presentation directory (though some is inline in the TeX source). This allows us to write the source code as a working program. You can see an example of this in the presentation directory 'functional_programming'.

In order to align with the compilation process outlined below, when importing source code from dedicated files, we recommend providing paths relative to the presentation directory rather than the TeX source.

Compilation

Due to font requirements, compiling these presentations requires XeLaTeX. On Unix, we recommend using Docker (see installation instructions), with

./compile.sh <presentation directory e.g. functional_programming>

Alternatively, use XeLaTeX directly from within a presentation directory with

xelatex tex/presentation.tex

The compiled PDF (and auxiliary files) can then be found in the corresponding presentation directory.