Skip to content

Commit e341d1b

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

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

build/build.sh

Lines changed: 6 additions & 12 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"
86-
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
85+
if [ "${BUILD_JATS:-}" != "false" ]; then
86+
echo >&2 "Exporting JATS XML manuscript"
87+
pandoc --verbose \
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Pandoc --defaults for JATS XML output.
2+
# Load on top of common defaults.
3+
to: jats
4+
output-file: output/manuscript.xml
5+
resource-path:
6+
- '.'
7+
- content

0 commit comments

Comments
 (0)