Skip to content

Commit

Permalink
Set pandoc-defaults/jats.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Jan 17, 2020
1 parent d54dfd4 commit b447ff3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
16 changes: 5 additions & 11 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,11 @@ if [ "${BUILD_DOCX:-}" = "true" ]; then
--defaults="$PANDOC_DEFAULTS_DIR/docx.yaml"
fi

echo "Exporting JATS XML manuscript"
echo >&2 "Exporting JATS XML manuscript"
if [ "${BUILD_JATS:-}" != "false" ]; then
pandoc --verbose \
--from=markdown \
--to=jats \
--filter=pandoc-fignos \
--filter=pandoc-eqnos \
--filter=pandoc-tablenos \
--bibliography=$BIBLIOGRAPHY_PATH \
--csl=$CSL_PATH \
--metadata link-citations=true \
--output=output/manuscript.xml \
$INPUT_PATH
--defaults="$PANDOC_DEFAULTS_DIR/common.yaml" \
--defaults="$PANDOC_DEFAULTS_DIR/jats.yaml"
fi

echo >&2 "Build complete"
7 changes: 7 additions & 0 deletions build/pandoc-defaults/jats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Pandoc --defaults for JATS XML output.
# Load on top of common defaults.
to: jats
output-file: output/manuscript.xml
resource-path:
- '.'
- content

0 comments on commit b447ff3

Please sign in to comment.