From 099b16b2876d385624b8ad00914fa47ab396f40b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 10 Apr 2023 11:34:54 +0200 Subject: 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. --- common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common.mk') 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 -- cgit v1.2.3