diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-10-26 00:28:30 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-10-26 00:28:30 -0400 |
| commit | 43f2ed580b1d62155b0d3d6e03a86e2e3ad9a5da (patch) | |
| tree | 01b438c77de4c6bc8ee838d7bf0631d010d784ce /.scripts/compiler | |
| parent | 171a00523f24c94e650de791194313b8f0cdde03 (diff) | |
| download | eibhear-43f2ed580b1d62155b0d3d6e03a86e2e3ad9a5da.tar.gz eibhear-43f2ed580b1d62155b0d3d6e03a86e2e3ad9a5da.tar.zst eibhear-43f2ed580b1d62155b0d3d6e03a86e2e3ad9a5da.zip | |
groff and refer compatibility added
Diffstat (limited to '.scripts/compiler')
| -rwxr-xr-x | .scripts/compiler | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/compiler b/.scripts/compiler index 765bde4..76cdff8 100755 --- a/.scripts/compiler +++ b/.scripts/compiler @@ -36,8 +36,11 @@ shebangtest() { esac } +# If there is a global $REFBIB variable/file for `refer`, use it. +[ -f "$REFBIB" ] && groffbib="-p $REFBIB" case "$file" in + *\.ms) refer $groffbib "$file" | groff -ms -T pdf > "$base".pdf ;; *\.rmd) echo "require(rmarkdown); render('$file')" | R --vanilla && mv "$base".pdf "$dir"/pdfs;; *\.tex) textype "$file" ;; *\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; |
