-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: configure pandoc using --defaults files
merges #290 The options for the pandoc commands in build/build.sh are now configured in YAML files that are passed to Pandoc using --defaults. export PANDOC_DEFAULTS_DIR to override the directory with pandoc --defaults files
- Loading branch information
Showing
7 changed files
with
69 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Pandoc --defaults shared between Manubot output formats. | ||
from: markdown | ||
input-file: output/manuscript.md | ||
filters: | ||
- pandoc-fignos | ||
- pandoc-eqnos | ||
- pandoc-tablenos | ||
- pandoc-citeproc | ||
wrap: preserve | ||
metadata: | ||
bibliography: output/references.json | ||
csl: build/assets/style.csl | ||
link-citations: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Pandoc --defaults for DOCX output. | ||
# Load on top of common defaults. | ||
to: docx | ||
output-file: output/manuscript.docx | ||
reference-doc: build/themes/default.docx | ||
resource-path: | ||
- '.' | ||
- content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Pandoc --defaults for HTML output. | ||
# Load on top of common defaults. | ||
to: html5 | ||
output-file: output/manuscript.html | ||
include-after-body: | ||
- build/themes/default.html | ||
- build/plugins/anchors.html | ||
- build/plugins/accordion.html | ||
- build/plugins/tooltips.html | ||
- build/plugins/jump-to-first.html | ||
- build/plugins/link-highlight.html | ||
- build/plugins/table-of-contents.html | ||
- build/plugins/lightbox.html | ||
- build/plugins/attributes.html | ||
- build/plugins/math.html | ||
- build/plugins/hypothesis.html | ||
- build/plugins/analytics.html | ||
variables: | ||
math: '' | ||
html-math-method: | ||
method: mathjax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Pandoc --defaults for PDF output via weasyprint. | ||
# Load on top of HTML defaults. | ||
output-file: output/manuscript.pdf | ||
pdf-engine: weasyprint | ||
pdf-engine-opts: | ||
- '--presentational-hints' | ||
html-math-method: | ||
method: webtex | ||
url: 'https://latex.codecogs.com/svg.latex?' |