From 1a344d2fbada6f70abb02c8280cd488624af98fa Mon Sep 17 00:00:00 2001 From: "M. Yas. Davoodeh" <30480116+Davoodeh@users.noreply.github.com> Date: Mon, 9 Nov 2020 23:50:33 +0330 Subject: [PATCH] Use Emacs to compile org files --- .local/bin/compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/compiler b/.local/bin/compiler index d50c393e..ff76add9 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -49,6 +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 ;; + org) emacs "$file" --batch -u "$USER" -f org-latex-export-to-pdf ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; esac