...
 
Commits (2)
......@@ -3,6 +3,8 @@ ARTICLE_FILE = draft.md
# Path and prefix of output files
OUTFILE_PREFIX ?= build/outfile
# Main JSON file; contains article plus enriched metadata
JSON_FILE = $(OUTFILE_PREFIX).enriched.json
# Default extensions to be generated
DEFAULT_EXTENSIONS ?= html pdf
......@@ -40,3 +42,13 @@ TEMPLATE_FILE_LATEX ?= ../../pandoc-templates/generic-template/templates/modpu
# TEMPLATE_FILE_LATEX ?= ../../pandoc-templates/generic-template/templates/pandoc-scholar-vanilla.latex
TEMPLATE_FILE_HTML ?= ../../pandoc-templates/generic-template/templates/modpub-generic.html
TEMPLATE_STYLE_HTML ?= ../../pandoc-templates/generic-template/templates/styles/pandoc-scholar.css
TEMPLATE_FILE_SLIM_HTML = ../../pandoc-templates/generic-template/templates/modpub-slim.html
$(OUTFILE_PREFIX).slim.html: $(JSON_FILE) \
$(TEMPLATE_FILE_SLIM_HTML) \
$(PANDOC_SCHOLAR_PATH)/scholar-filters/template-helper.lua
$(PANDOC) $(PANDOC_WRITER_OPTIONS) \
--lua-filter=$(PANDOC_SCHOLAR_PATH)/scholar-filters/template-helper.lua \
--template=$(TEMPLATE_FILE_SLIM_HTML) \
--mathjax \
--output $@ $<