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

Integrate Journal config into HTML template

parent e3b13b43
......@@ -5,7 +5,7 @@ ARTICLE_FILE = draft.md
OUTFILE_PREFIX ?= build/outfile
# Default extensions to be generated
DEFAULT_EXTENSIONS ?= html pdf
DEFAULT_EXTENSIONS ?= html
# Overwrite default additional extensions with nil
ADDITIONAL_EXTENSIONS ?=
......@@ -13,9 +13,6 @@ ADDITIONAL_EXTENSIONS ?=
# Place where pandoc-scholar resides
PANDOC_SCHOLAR_PATH = ../../pandoc-scholar
# Configuration of the Hypothesis panel for HTML format
PANDOC_HTML_OPTIONS = -H ../../journal-configuration/journal-config/hypothesis.html
PANDOC_WRITER_OPTIONS += --resource-path=.:../../pandoc-templates/generic-template/templates
PANDOC_WRITER_OPTIONS += --filter=$(PANDOC_CITEPROC)
......@@ -25,12 +22,17 @@ PANDOC_WRITER_OPTIONS += --filter=$(PANDOC_CITEPROC)
# PANDOC_WRITER_OPTIONS ?= --metadata-file=config/style-metadata.inc.yml
PANDOC_READER_OPTIONS ?= --metadata-file=config/article-metadata.inc.yml
# Additional option per file type
ifndef PANDOC_LATEX_OPTIONS
PANDOC_LATEX_OPTIONS = --pdf-engine=xelatex -N
PANDOC_LATEX_OPTIONS += --metadata-file=../../journal-configuration/journal-config/style-metadata.inc.yml
endif
# Configuration of the Hypothesis panel for HTML format
PANDOC_HTML_OPTIONS = -H ../../journal-configuration/journal-config/hypothesis.html
PANDOC_HTML_OPTIONS += --metadata-file=../../journal-configuration/journal-config/style-metadata.inc.yml
TEMPLATE_FILE_LATEX ?= ../../pandoc-templates/generic-template/templates/modpub-generic.latex
# TEMPLATE_FILE_LATEX ?= ../../pandoc-templates/generic-template/templates/pandoc-scholar-vanilla.latex
TEMPLATE_FILE_HTML ?= ../../pandoc-templates/generic-template/templates/modpub-generic.html
......
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