aboutsummaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-04-10 11:34:54 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-04-10 11:34:54 +0200
commit099b16b2876d385624b8ad00914fa47ab396f40b (patch)
tree9b645727305b4c9270e68602468f231b1929ea55 /common.mk
parent6efec10a335bc2553106d272bf786196a7cfa041 (diff)
downloadunterricht-099b16b2876d385624b8ad00914fa47ab396f40b.tar.gz
unterricht-099b16b2876d385624b8ad00914fa47ab396f40b.zip
pandoc: allow to include other files
The following block will inlcude a second markdown file: ```{.include} path/to/other/markdown/file.md ``` Move all used pandoc filters from the latex/ base directory into a new pandoc/ directory.
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index e8ce436b..c3697093 100644
--- a/common.mk
+++ b/common.mk
@@ -1,9 +1,10 @@
IMGS := $(wildcard img/*)
LATEX_BASE := $(MAKEFILE_DIR)latex
+PANDOC_FILTER_DIR := $(MAKEFILE_DIR)pandoc
COMMON_IMAGES := $(LATEX_BASE)/images
-COMMON_PANDOC_OPTIONS := --resource-path="$(COMMON_IMAGES):." --lua-filter "$(LATEX_BASE)/pandoc_center_img.lua"
+COMMON_PANDOC_OPTIONS := --resource-path="$(COMMON_IMAGES):." --lua-filter "$(PANDOC_FILTER_DIR)/center-img.lua" --lua-filter "$(PANDOC_FILTER_DIR)/include-files.lua"
PANDOC := pandoc $(COMMON_PANDOC_OPTIONS)
SLIDES_OPTIONS := --slide-level 2 -t beamer