Gradle infrastructure to build LaTeX lectures
01_lecture | 2 years ago | ||
buildSrc | 2 years ago | ||
.gitignore | 2 years ago | ||
README.md | 2 years ago | ||
build.gradle | #1) | 2 years ago | |
gradle.properties | 2 years ago | ||
lecturedates.tex | 2 years ago | ||
paper_init.tex | 2 years ago | ||
settings.gradle | #1) | 2 years ago |
Gradle infrastructure to build Information Science lectures based on Nigel’s LaTeX lecture classes.
Features:
latexmk
This repository serves as both the canonical source for the Gradle files and as an example of how to set things up.
lectures
directory..gitignore
into lectures
.build.gradle
, settings.gradle
, and buildSrc
into lectures
.01_lecture
to lectures
and rename it to something that makes sense. The prefix numbering is important. Gradle uses it to figure out the lecture number (but you can override this manually per lecture). You can duplicate and rename this folder for each new lecture you need (e.g., 01_foo
, 02_bar
, …).lectures/settings.gradle
and make sure there is an include
line for each individual lecture. Remember to update if you change things later, otherwise things will probably not build.build.gradle
to configure targets and images. The individual lecture folders must not have a settings.gradle
file, it will break things.git pull
in the plugin repository.buildSrc
directory to your lectures
directory.The way Nigel does things 😁.
lectures 01_foo/ build.gradle doc_init.tex images/ ... lecture_content.tex lecture_handout.tex lecture_slides.tex lecturedates.tex -> ../lecturedates.tex paper_init.tex -> ../paper_init.tex pdfs/ lecture_01_handout.pdf lecture_01_slides.pdf 02_bar/ ... 03_baz etc... .gitignore build.gradle lecturedates.tex paper_init_tex settings.gradle
As applicable depending on which document targets are enabled. This list is not comprehensive, run gradle tasks --all
for a complete list.
A dynamic task is created for each generated image, e.g.:
image1.pdf
from image1.whatever
.