Skip to content

Commit 95bf5b2

Browse files
authored
BUILD_LATEX for basic LaTeX manuscript
merges #384 refs #249
1 parent 9977684 commit 95bf5b2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

build/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ if [ "${BUILD_DOCX:-}" = "true" ]; then
8585
--defaults=docx.yaml
8686
fi
8787

88+
# Create LaTeX output (if BUILD_LATEX environment variable equals "true")
89+
if [ "${BUILD_LATEX:-}" = "true" ]; then
90+
echo >&2 "Exporting LaTeX manuscript"
91+
pandoc \
92+
--data-dir="$PANDOC_DATA_DIR" \
93+
--defaults=common.yaml \
94+
--defaults=latex.yaml
95+
fi
96+
8897
# Spellcheck
8998
if [ "${SPELLCHECK:-}" = "true" ]; then
9099
export ASPELL_CONF="add-extra-dicts $(pwd)/build/assets/custom-dictionary.txt; ignore-case true"

build/pandoc/defaults/latex.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Pandoc --defaults for LaTeX output.
2+
# Load on top of common defaults.
3+
to: latex
4+
output-file: output/manuscript.tex

0 commit comments

Comments
 (0)