aboutsummaryrefslogtreecommitdiff
path: root/pandoc-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc-build.sh')
-rwxr-xr-xpandoc-build.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/pandoc-build.sh b/pandoc-build.sh
index a15b508..afd18c3 100755
--- a/pandoc-build.sh
+++ b/pandoc-build.sh
@@ -2,22 +2,21 @@
build()
{
- echo "Building $TARGET"
for FMT in $FORMATS
do
mkdir -p build/pandoc/$FMT
OPTS="-f rst"
case $FMT in
- "html") OPTS="$OPTS -t html"
+ "html") OPTS="$OPTS -t html --variable lang=it"
EXT=".html"
SPLIT=true;;
- "latex") OPTS="$OPTS -t latex"
+ "latex") OPTS="$OPTS -t latex --variable lang=italian"
EXT=".tex"
SPLIT=true;;
- "pdf") OPTS="$OPTS -t pdf"
+ "pdf") OPTS="$OPTS --latex-engine=xelatex --variable lang=italian"
EXT=".pdf"
SPLIT=true;;
- "epub") OPTS="$OPTS -t epub"
+ "epub") OPTS="$OPTS -t epub --variable lang=it"
EXT=".epub"
SPLIT=false;;
esac