Use Emacs to compile org files (#839)

This commit is contained in:
M. Yas. Davoodeh 2020-11-10 00:33:38 +03:30 committed by GitHub
parent ea4252ee5d
commit be8ff717b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,6 @@ case "$ext" in
scad) openscad -o "$base".stl "$file" ;; scad) openscad -o "$base".stl "$file" ;;
sent) setsid -f sent "$file" 2>/dev/null ;; sent) setsid -f sent "$file" 2>/dev/null ;;
tex) textype "$file" ;; tex) textype "$file" ;;
org) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; org) emacs "$file" --batch -u "$USER" -f org-latex-export-to-pdf ;;
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
esac esac