Skip to content

Commit 6c0470e

Browse files
committed
Set pandoc-defaults/jats.yaml
1 parent d54dfd4 commit 6c0470e

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

build/build.sh

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,11 @@ if [ "${BUILD_DOCX:-}" = "true" ]; then
8282
--defaults="$PANDOC_DEFAULTS_DIR/docx.yaml"
8383
fi
8484

85-
echo "Exporting JATS XML manuscript"
85+
echo >&2 "Exporting JATS XML manuscript"
86+
if [ "${BUILD_JATS:-}" != "false" ]; then
8687
pandoc --verbose \
87-
--from=markdown \
88-
--to=jats \
89-
--filter=pandoc-fignos \
90-
--filter=pandoc-eqnos \
91-
--filter=pandoc-tablenos \
92-
--bibliography=$BIBLIOGRAPHY_PATH \
93-
--csl=$CSL_PATH \
94-
--metadata link-citations=true \
95-
--output=output/manuscript.xml \
96-
$INPUT_PATH
88+
--defaults="$PANDOC_DEFAULTS_DIR/common.yaml" \
89+
--defaults="$PANDOC_DEFAULTS_DIR/jats.yaml"
90+
fi
9791

9892
echo >&2 "Build complete"

build/pandoc-defaults/jats.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Pandoc --defaults for JATS XML output.
2+
# Load on top of common defaults.
3+
to: jats
4+
output-file: output/manuscript.xml
5+
reference-doc: build/themes/default.docx
6+
resource-path:
7+
- '.'
8+
- content

0 commit comments

Comments
 (0)