groff and refer compatibility added
This commit is contained in:
parent
171a00523f
commit
43f2ed580b
1 changed files with 3 additions and 0 deletions
|
@ -36,8 +36,11 @@ shebangtest() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If there is a global $REFBIB variable/file for `refer`, use it.
|
||||||
|
[ -f "$REFBIB" ] && groffbib="-p $REFBIB"
|
||||||
|
|
||||||
case "$file" in
|
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;;
|
*\.rmd) echo "require(rmarkdown); render('$file')" | R --vanilla && mv "$base".pdf "$dir"/pdfs;;
|
||||||
*\.tex) textype "$file" ;;
|
*\.tex) textype "$file" ;;
|
||||||
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
|
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
|
||||||
|
|
Loading…
Reference in a new issue