forked from pandoc-scholar/pandoc-scholar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pandoc-options.inc.mk
52 lines (45 loc) · 1.53 KB
/
pandoc-options.inc.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Settings for Pandoc
# ===================
PANDOC_CITEPROC ?= pandoc-citeproc
TEMPLATE_FILE_LATEX ?= $(PANDOC_SCHOLAR_PATH)/templates/pandoc-scholar.latex
TEMPLATE_FILE_HTML ?= $(PANDOC_SCHOLAR_PATH)/templates/pandoc-scholar.html
TEMPLATE_FILE_JATS ?= $(PANDOC_SCHOLAR_PATH)/templates/pandoc-scholar.jats
TEMPLATE_STYLE_HTML ?= $(PANDOC_SCHOLAR_PATH)/templates/styles/pandoc-scholar.css
## Pandoc options
PANDOC_READER_OPTIONS ?=
ifdef BIBLIOGRAPHY_FILE
PANDOC_READER_OPTIONS += --metadata "bibliography:$(BIBLIOGRAPHY_FILE)"
endif
ifndef PANDOC_WRITER_OPTIONS
PANDOC_WRITER_OPTIONS = --standalone
PANDOC_WRITER_OPTIONS += --filter=$(PANDOC_CITEPROC)
ifdef BIBLIOGRAPHY_FILE
PANDOC_WRITER_OPTIONS += --metadata "bibliography:$(BIBLIOGRAPHY_FILE)"
PANDOC_WRITER_OPTIONS += --bibliography=$(BIBLIOGRAPHY_FILE)
endif
endif
PANDOC_ODT_OPTIONS ?=
PANDOC_DOCX_OPTIONS ?=
PANDOC_HTML_OPTIONS ?=
PANDOC_EPUB_OPTIONS ?=
ifndef PANDOC_LATEX_OPTIONS
PANDOC_LATEX_OPTIONS = --pdf-engine=xelatex
endif
ifdef ODT_REFERENCE_FILE
PANDOC_ODT_OPTIONS += --reference-doc=$(ODT_REFERENCE_FILE)
endif
ifdef DOCX_REFERENCE_FILE
PANDOC_DOCX_OPTIONS += --reference-doc=$(DOCX_REFERENCE_FILE)
endif
ifdef TEMPLATE_FILE_LATEX
PANDOC_LATEX_OPTIONS += --template=$(TEMPLATE_FILE_LATEX)
endif
ifdef TEMPLATE_FILE_HTML
PANDOC_HTML_OPTIONS += --template=$(TEMPLATE_FILE_HTML)
endif
ifdef TEMPLATE_FILE_EPUB
PANDOC_EPUB_OPTIONS += --template=$(TEMPLATE_FILE_EPUB)
endif
ifdef TEMPLATE_FILE_JATS
PANDOC_JATS_OPTIONS += --template=$(TEMPLATE_FILE_JATS)
endif