-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.sh
executable file
·39 lines (29 loc) · 1014 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
#
# Compile LaTeX project.
set -o nounset
set -o errexit
set -o errtrace
set -o pipefail
# Name of the main .tex file
export TEX_NAME="main"
# Name of the output .pdf file
export PDF_NAME="ChickenR"
# Name of the .bib file used as the parameter to \bibliography{}
export TGT_BIB_NAME="references"
# Path of the Fairy(-lite) project
# Note: You may get the update, if any, of the compilation script by cloning
# the latest Fairy project from https://github.com/streamjoin/fairy
export FAIRY_HOME="./fairy-lite"
# Command for compiling .tex
export CMD_LATEX="pdflatex"
# Command for compiling .bib
export CMD_BIBTEX="biber"
# Path of the trimbib.jar, or <none> for skipping the trimbib processing
# You may need to clone the project from https://github.com/streamjoin/trimbib
export TRIMBIB_JAR="<none>"
# Configuration of trimbib
export TRIMBIB_ARGS=("--pages")
# Run build_latex.sh with the above settings
# shellcheck disable=SC1090
source "${FAIRY_HOME}/latex/build_latex.sh"