diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-01-19 19:26:28 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-01-19 19:26:28 -0500 |
| commit | 0b4ca15f02bde14ee6228e58b4803681bcc31c2d (patch) | |
| tree | 1a004d9b97b791647cfbbdda3d165759d2b83a69 | |
| parent | ae0fadd67342f97fa25c60ba3ea9fc86c4da1458 (diff) | |
| download | eibhear-0b4ca15f02bde14ee6228e58b4803681bcc31c2d.tar.gz eibhear-0b4ca15f02bde14ee6228e58b4803681bcc31c2d.tar.zst eibhear-0b4ca15f02bde14ee6228e58b4803681bcc31c2d.zip | |
rmakrdown fixes and .Rmd handler
| -rwxr-xr-x | .local/bin/compiler | 2 | ||||
| -rwxr-xr-x | .local/bin/opout | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler index 4b5432f..a124d5f 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -26,7 +26,7 @@ case "$file" in *\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;; *\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;; *\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;; - *\.rmd) echo "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" | R -q --vanilla ;; + *\.[rR]md) Rscript -e "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" ;; *\.tex) textype "$file" ;; *\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; *config.h) sudo make install ;; diff --git a/.local/bin/opout b/.local/bin/opout index d5d8dff..258f721 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -7,7 +7,7 @@ basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" case "$1" in - *.tex|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; + *.tex|*.md|*.[rR]md|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.[0-9]) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.html) setsid $BROWSER "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; |
