aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-11-03 15:02:24 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-11-03 15:02:24 +0100
commite8a1fb3d3fb512c4d845332525f644ac0fe791dc (patch)
tree68ed971b5a8acbcebbb215d88ceb34a339d03505
parent95cc57b104d76405c0e80ae8b05157e90a685607 (diff)
downloadunterricht-e8a1fb3d3fb512c4d845332525f644ac0fe791dc.tar.gz
unterricht-e8a1fb3d3fb512c4d845332525f644ac0fe791dc.zip
remove citeproc from slides pandoc options
Using citeproc breaks when including \makeatletter \beamer@ignorenonframefalse \makeatother in the slides header-includes. But this is needed to use standalone documents.
-rw-r--r--common.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 5b447df5..8d3a5ebe 100644
--- a/common.mk
+++ b/common.mk
@@ -13,13 +13,15 @@ PANDOC_FILTER_DIR := $(PANDOC_DIR)/filters
PANDOC_TEMPLATE_DIR := $(PANDOC_DIR)/templates
PANDOC_CITE_OPTIONS := --citeproc
+
PANDOC_FILTER_OPTIONS := --lua-filter "$(PANDOC_FILTER_DIR)/center-img.lua"
PANDOC_FILTER_OPTIONS += --lua-filter "$(PANDOC_FILTER_DIR)/include-files.lua"
PANDOC_FILTER_OPTIONS += --lua-filter "$(PANDOC_FILTER_DIR)/meta-vars.lua"
PANDOC_FILTER_OPTIONS += --filter pandoc-plot
-COMMON_PANDOC_OPTIONS := --data-dir="$(PANDOC_DIR)" --resource-path="$(COMMON_IMAGES):." $(PANDOC_CITE_OPTIONS) $(PANDOC_FILTER_OPTIONS)
+COMMON_PANDOC_OPTIONS := --data-dir="$(PANDOC_DIR)" --resource-path="$(COMMON_IMAGES):." $(PANDOC_FILTER_OPTIONS)
PANDOC := pandoc $(COMMON_PANDOC_OPTIONS)
+SLIDES_OPTIONS := --biblatex
SLIDES_OPTIONS := --slide-level 2 -t beamer
SLIDES_OPTIONS += --pdf-engine-opt=--shell-escape
SLIDES_OPTIONS += --metadata-file=$(PANDOC_DIR)/defaults/slides-metadata.yml
@@ -64,7 +66,7 @@ schedule.pdf: schedule.md $(MAKEFILE_LIST)
%.pdf: %.md $(MAKEFILE_LIST)
@echo "building $@"
- $(VERBOSE)$(PANDOC) -f markdown $< -o $@
+ $(VERBOSE)$(PANDOC) $(PANDOC_CITE_OPTIONS) -f markdown $< -o $@
.PRECIOUS: .build/%.pdf
.build/%.pdf: %.tex .FORCE $(MAKEFILE_LIST)