diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-11-08 20:17:58 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-11-08 20:17:58 -0500 |
| commit | ea4252ee5d28e3cbd7e9bb6e65a82082dff9180f (patch) | |
| tree | cd0b8db81984307bd721a477c33fec07cfc54d59 /.local/bin/compiler | |
| parent | ae2db4ee1afe40b4e8f8009aaa0000fbb77d629b (diff) | |
| parent | 7f139718e9d729f073dcb8d63ffe957229576c2c (diff) | |
| download | eibhear-ea4252ee5d28e3cbd7e9bb6e65a82082dff9180f.tar.gz eibhear-ea4252ee5d28e3cbd7e9bb6e65a82082dff9180f.tar.zst eibhear-ea4252ee5d28e3cbd7e9bb6e65a82082dff9180f.zip | |
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/compiler')
| -rwxr-xr-x | .local/bin/compiler | 3 |
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 |
