diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-02 15:44:00 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-02 15:44:00 +0200 |
| commit | 3e0fcaf2bea7864235ec415895ecd7b788a1531c (patch) | |
| tree | 2b46035962c688c4bd91fe5d2876eecd8e172f0f /common.mk | |
| download | unterricht-3e0fcaf2bea7864235ec415895ecd7b788a1531c.tar.gz unterricht-3e0fcaf2bea7864235ec415895ecd7b788a1531c.zip | |
initial commit adding my latex build system
The two classes test and handout are provided.
* test is for setting any kind of test
* handout is for setting any handout sheet
All markdown files in any subdirectory are converted to pdfs using pandoc.
Found tex files are used to generate pdf files using rubber and can use
the latex classes defined in the latex/ directory.
Diffstat (limited to 'common.mk')
| -rw-r--r-- | common.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/common.mk b/common.mk new file mode 100644 index 00000000..825d00dc --- /dev/null +++ b/common.mk @@ -0,0 +1,19 @@ +IMGS := $(wildcard img/*) + +SLIDES_OPTIONS := --slide-level 2 -t beamer +SLIDES_FORMAT := markdown +SCHEDULE_FORMAT := markdown+pipe_tables + +LATEX_BASE := $(MAKEFILE_DIR)latex +ADDITIONAL_TEX_INPUTS := LATEX_BASE: + +RUBBER_OPTS := --pdf --shell-escape -I "$(LATEX_BASE)" + +schedule.pdf: schedule.md $(MAKEFILE_LIST) + pandoc $< -f $(SCHEDULE_FORMAT) -o $@ + +slides.pdf: slides.md $(wildcard img/*) $(MAKEFILE_LIST) + pandoc $(SLIDES_OPTIONS) -f $(SLIDES_FORMAT) $< -o $@ + +%.pdf: %.tex $(MAKEFILE_LIST) + rubber $(RUBBER_OPTS) $< && rubber --clean -q $< |
