From e8a1fb3d3fb512c4d845332525f644ac0fe791dc Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 3 Nov 2025 15:02:24 +0100 Subject: 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. --- common.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common.mk') 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) -- cgit v1.2.3