summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEpacnoss <49815482+Epacnoss@users.noreply.github.com>2020-11-08 12:57:37 +0000
committerGitHub <noreply@github.com>2020-11-08 07:57:37 -0500
commit611645af973a4757ad35ca8be34ff33693573e27 (patch)
tree6c2ad880978650e6c019a86db717a636c1fb6113
parenta801ddcbfcf1c0fd01a0c06975571e56c51b077b (diff)
downloadeibhear-611645af973a4757ad35ca8be34ff33693573e27.tar.gz
eibhear-611645af973a4757ad35ca8be34ff33693573e27.tar.zst
eibhear-611645af973a4757ad35ca8be34ff33693573e27.zip
Add support for Org-Mode files. (#837)
-rwxr-xr-x.local/bin/compiler3
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler
index c56a25a..d50c393 100755
--- a/.local/bin/compiler
+++ b/.local/bin/compiler
@@ -3,7 +3,7 @@
# This script will compile or run another finishing operation on a document. I
# have this script run via vim.
#
-# Compiles .tex. groff (.mom, .ms), .rmd, .md. Opens .sent files as sent
+# Compiles .tex. groff (.mom, .ms), .rmd, .md, .org. Opens .sent files as sent
# presentations. Runs scripts based on extention or shebang
#
# Note that .tex files which you wish to compile with XeLaTeX should have the
@@ -49,5 +49,6 @@ case "$ext" in
scad) openscad -o "$base".stl "$file" ;;
sent) setsid -f sent "$file" 2>/dev/null ;;
tex) textype "$file" ;;
+ org) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
esac