Gradle infrastructure for building LaTeX lectures

Nigel Stanger authored on 18 Mar 2022
01_lecture Added more example files 1 year ago
.gitignore Added more example files 1 year ago Added more example files 1 year ago
build.gradle.kts Fixed typo 1 year ago
lecture.gradle.kts Initial files 1 year ago
lecturedates.tex Added example files 1 year ago
paper_init.tex Added example files 1 year ago
settings.gradle.kts Initial files 1 year ago

Gradle build infrastructure for lectures

Gradle infrastructure to build Information Science lectures based on Nigel’s LaTeX lecture classes.


  • multiple configurable document targets: slides, handout, notes, examples
  • dynamic targets for building PDF images from PlantUML, SVG, R
  • builds separate working preview and final published PDFs with lecture numbers (the latter include the lecture number in the file name)

This repository serves as both the canonical source for the Gradle files and as an example of how to set things up.

Setting up a new set of lectures

  1. Create a top level lectures directory.
  2. If you’re using Git, copy .gitignore into lectures.
  3. Create a sub-directory for each lecture, e.g., 01_lecture, 02_lecture, …. The prefix numbering is important.
  4. Copy build.gradle.kts and settings.gradle.kts into lectures.
  5. Create an empty settings.gradle.kts in 01_lecture, 02_lecture, etc.
  6. Copy lecture.gradle.kts into 01_lecture, 02_lecture, etc.
  7. Edit each lecture.gradle.kts to configure targets and images.

Standard lecture directory tree