diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-04-13 17:43:43 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-04-13 17:43:43 -0400 |
commit | 3a3061d5dfe46d82d3fc90b1e7c919581b1f9662 (patch) | |
tree | 7178ef9ad421f00ca69d93fce2e75b6340fdf0e9 /.local/bin/compiler | |
parent | b91e290d6bfb333f064fa1abc7e5560cd25beff5 (diff) |
Compile R flavoured LaTeX with xelatex (knitr)
Diffstat (limited to '.local/bin/compiler')
-rwxr-xr-x | .local/bin/compiler | 2 |
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 ;; |