Skip to content

Commit

Permalink
BUILD_LATEX for basic LaTeX manuscript
Browse files Browse the repository at this point in the history
merges #384
refs #249
  • Loading branch information
dhimmel authored May 29, 2021
1 parent 9977684 commit 95bf5b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ if [ "${BUILD_DOCX:-}" = "true" ]; then
--defaults=docx.yaml
fi

# Create LaTeX output (if BUILD_LATEX environment variable equals "true")
if [ "${BUILD_LATEX:-}" = "true" ]; then
echo >&2 "Exporting LaTeX manuscript"
pandoc \
--data-dir="$PANDOC_DATA_DIR" \
--defaults=common.yaml \
--defaults=latex.yaml
fi

# Spellcheck
if [ "${SPELLCHECK:-}" = "true" ]; then
export ASPELL_CONF="add-extra-dicts $(pwd)/build/assets/custom-dictionary.txt; ignore-case true"
Expand Down
4 changes: 4 additions & 0 deletions build/pandoc/defaults/latex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Pandoc --defaults for LaTeX output.
# Load on top of common defaults.
to: latex
output-file: output/manuscript.tex

0 comments on commit 95bf5b2

Please sign in to comment.