-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
pandocomatic.yaml
76 lines (76 loc) · 2.79 KB
/
pandocomatic.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
### Pandocomatic Configuration ###
# IMPORTANT:
# YAML configuration files uses SPACES with indentation to define structure!
#
# Path values are normally relative to the Pandoc data dir:
# /Users/MYNAME/.local/share/pandoc so csl/apa.csl will be searched as
# /Users/MYNAME/.local/share/pandoc/csl/apa.csl see
# https://heerdebeer.org/Software/markdown/pandocomatic/#specifying-paths
#
templates:
#-----------------------------------------------------------------------------
refs:
setup: [] #could run general scripts to rename or copy files before anything is run
preprocessors: [] #could run a script on the markdown file itself
pandoc:
citeproc: true #this enables the built-in citeproc engine
bibliography: "core.bib" #bibtex file, default search path will be your pandoc data-dir
csl: "csl/apa.csl" #CSL style file, in the csl/ folder of pandoc data-dir
metadata:
reference-section-title: "Bibliography"
notes-after-punctuation: false #don't put refs after the period
link-citations: true #hyperlink intext references to the bibliography
csl-hanging-indent: true #add hanging indents to formatted bibliogrpahy
postprocessors: [] #could run on the output file (unless it is binary like docx)
cleanup: [] #general cleanup script
#-----------------------------------------------------------------------------
paper-with-refs-latex:
extends: ['refs'] #we can inherit from other templates
pandoc:
from: markdown
to: latex
template: "templates/custom.latex" #customised pandoc template
toc: true
toc-depth: 4
base-header-level: 2
metadata:
documentclass: 'article'
papersize: 'A4'
mainfont: 'Hoefler Text'
sansfont: 'Avenir Next'
monofont: 'Menlo'
CJKmainfont: 'PingFang SC'
lang: 'en-GB'
fontsize: '12pt'
linestretch: '1.75'
geometry: 'margin=2cm'
#-----------------------------------------------------------------------------
paper-with-refs-docx:
extends: ['refs'] #we can inherit from other templates
pandoc:
from: markdown
to: docx
reference-doc: "templates/custom.docx"
toc: false
#-----------------------------------------------------------------------------
paper-with-refs-odt:
extends: ['refs'] #we can inherit from other templates
pandoc:
from: markdown
to: odt
reference-doc: "templates/custom.odt"
toc: false
#-----------------------------------------------------------------------------
paper-no-refs-html:
pandoc:
from: markdown
to: html5
standalone: true
number-sections: true
section-divs: true
template: "templates/custom.html"
css: "templates/custom.css"
self-contained: true
toc: true
toc-depth: 4
base-header-level: 1