From 0b5efb0e93120989b3f6859f5fb6c56c6da1a1bc Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 3 Nov 2024 10:49:50 +0100 Subject: use pandoc data dir to find csl files --- common.mk | 4 +- pandoc/csl/din-1505-2-numeric-alphabetical.csl | 355 +++++++++++++++++++++++++ pandoc/defaults/slides-metadata.yml | 1 + pandoc/din-1505-2-numeric-alphabetical.csl | 355 ------------------------- 4 files changed, 358 insertions(+), 357 deletions(-) create mode 100644 pandoc/csl/din-1505-2-numeric-alphabetical.csl delete mode 100644 pandoc/din-1505-2-numeric-alphabetical.csl diff --git a/common.mk b/common.mk index fdf58c05..1e6bfec2 100644 --- a/common.mk +++ b/common.mk @@ -12,12 +12,12 @@ PANDOC_DIR := $(MAKEFILE_DIR)pandoc PANDOC_FILTER_DIR := $(PANDOC_DIR)/filters PANDOC_TEMPLATE_DIR := $(PANDOC_DIR)/templates -PANDOC_CITE_OPTIONS := --citeproc --csl=$(PANDOC_DIR)/din-1505-2-numeric-alphabetical.csl +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 := --resource-path="$(COMMON_IMAGES):." $(PANDOC_CITE_OPTIONS) $(PANDOC_FILTER_OPTIONS) +COMMON_PANDOC_OPTIONS := --data-dir="$(PANDOC_DIR)" --resource-path="$(COMMON_IMAGES):." $(PANDOC_CITE_OPTIONS) $(PANDOC_FILTER_OPTIONS) PANDOC := pandoc $(COMMON_PANDOC_OPTIONS) SLIDES_OPTIONS := --slide-level 2 -t beamer diff --git a/pandoc/csl/din-1505-2-numeric-alphabetical.csl b/pandoc/csl/din-1505-2-numeric-alphabetical.csl new file mode 100644 index 00000000..e81b695a --- /dev/null +++ b/pandoc/csl/din-1505-2-numeric-alphabetical.csl @@ -0,0 +1,355 @@ + + diff --git a/pandoc/defaults/slides-metadata.yml b/pandoc/defaults/slides-metadata.yml index 74593625..46730227 100644 --- a/pandoc/defaults/slides-metadata.yml +++ b/pandoc/defaults/slides-metadata.yml @@ -4,5 +4,6 @@ lang: de theme: metropolis aspectratio: 169 classoption: table +csl: din-1505-2-numeric-alphabetical.csl --- diff --git a/pandoc/din-1505-2-numeric-alphabetical.csl b/pandoc/din-1505-2-numeric-alphabetical.csl deleted file mode 100644 index e81b695a..00000000 --- a/pandoc/din-1505-2-numeric-alphabetical.csl +++ /dev/null @@ -1,355 +0,0 @@ - - -- cgit v1.2.3