summaryrefslogtreecommitdiff
path: root/.local/bin/compiler
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-04-27 09:42:41 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-04-27 09:42:41 -0400
commitd4b26da65c20df3559daa6379c27fef3dcbc400f (patch)
tree4555c80ed1ab6a187312e33be0487e1732e8fd88 /.local/bin/compiler
parent3c823c638e3de31332b8966a2f1712c6bbb8d2b5 (diff)
parent26ec2e5dc6e8c2369ecb34b642db546327a8b7dd (diff)
Merge branch 'master' of github.com:ChausseBenjamin/dotfiles
Diffstat (limited to '.local/bin/compiler')
-rwxr-xr-x.local/bin/compiler2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler
index 220b4a9..e6a6db3 100755
--- a/.local/bin/compiler
+++ b/.local/bin/compiler
@@ -28,7 +28,7 @@ case "$file" in
# *\.gd) groffdown "$file" | refer -PS -e "$REFERBIB" | groff -me -ms -kejpt -T pdf > "$base".pdf ;;
*\.mom) refer -PS -e -p"$REFERBIB" "$file" | groff -mom -kejpt -T pdf >"$base".pdf ;;
*\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;;
-*\.rnw) Rscript -e "knitr::knit2pdf('""$file""')" ;;
+*\.rnw) Rscript -e "knitr::knit2pdf('""$file""',compiler='xelatex')" ;;
*\.tex) textype "$file" ;;
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
*config.h) make && sudo make install ;;