From ad84c2f130368464c7a4c31c101e9fc8a107967e Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 4 Jan 2019 15:47:26 +0000 Subject: [PATCH] Adds some default yaml options --- bin/compiler | 6 +++--- pandoc/defaults.yaml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 pandoc/defaults.yaml diff --git a/bin/compiler b/bin/compiler index f56f2ad1..4b501a26 100755 --- a/bin/compiler +++ b/bin/compiler @@ -33,9 +33,9 @@ mdtype(){ \ command=${2:-"default"} echo "$command" case "$command" in - "fplreport") pandoc "$file" --template fellowship.latex --pdf-engine=xelatex -o "${base}.pdf" ;; - "letter") pandoc "$file" --template template-letter.tex -o "${base}.pdf" ;; - *) pandoc "$file" -o "$base".pdf ;; + "fplreport") pandoc "$file" --metadata-file="$HOME/.dotfiles/pandoc/defaults.yaml" --template fellowship.latex --pdf-engine=xelatex -o "${base}.pdf" ;; + "letter") pandoc "$file" --metadata-file="$HOME/.dotfiles/pandoc/defaults.yaml" --template template-letter.tex -o "${base}.pdf" ;; + *) pandoc "$file" --metadata-file="$HOME/.dotfiles/pandoc/defaults.yaml" -o "$base".pdf ;; esac } diff --git a/pandoc/defaults.yaml b/pandoc/defaults.yaml new file mode 100644 index 00000000..28edaa52 --- /dev/null +++ b/pandoc/defaults.yaml @@ -0,0 +1 @@ +colorlinks: true