From 3a3061d5dfe46d82d3fc90b1e7c919581b1f9662 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 13 Apr 2024 17:43:43 -0400 Subject: Compile R flavoured LaTeX with xelatex (knitr) --- .local/bin/compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/compiler') 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 ;; -- cgit v1.2.3