Commit 871ac2d9 authored by Axel Dürkop's avatar Axel Dürkop
Browse files

Merge branch 'slim-html' into 'master'

Add target to produce a slim (unstyled) HTML version

See merge request hos/modernes-publizieren/interner-kreis/software/configurations/journal-configuration!7
parents f2dadc76 8669eefa
......@@ -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 $@ $<
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment