Skip to content

Commit

Permalink
Pandoc: export to JATS XML
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Aug 10, 2017
1 parent 0a04405 commit c25b6a9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "ci/opentimestamps-client"]
path = ci/opentimestamps-client
url = https://github.com/opentimestamps/opentimestamps-client.git
[submodule "build/assets/pandoc-jats"]
path = build/assets/pandoc-jats
url = https://github.com/mfenner/pandoc-jats
1 change: 1 addition & 0 deletions build/assets/pandoc-jats
Submodule pandoc-jats added at d3aaa4
17 changes: 17 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@ wkhtmltopdf \
webpage/index.html \
output/manuscript.pdf

# Create JATS XML output
# https://github.com/mfenner/pandoc-jats
echo "Exporting JATS XML manuscript"
pandoc --verbose \
--smart \
--from=markdown \
--to=build/assets/pandoc-jats/JATS.lua \
--filter pandoc-fignos \
--filter pandoc-eqnos \
--filter pandoc-tablenos \
--template=build/assets/pandoc-jats/default.jats \
--bibliography=$BIBLIOGRAPHY_PATH \
--csl=$CSL_PATH \
--metadata link-citations=true \
--output=output/manuscript.xml \
$INPUT_PATH

# Create DOCX output when user specifies to do so
if [ "$BUILD_DOCX" = "true" ];
then
Expand Down

0 comments on commit c25b6a9

Please sign in to comment.