summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-12-31 13:16:05 (GMT)
committer Jaromil <jaromil@dyne.org>2013-12-31 13:16:17 (GMT)
commit444f58f459613416cb2eccce668167626bc64bc5 (patch)
tree0b9bbb1c4e38db0bd50abdd9de351df1d43676b3
parent453c0b574442aaacde2a6136602ed84d6ab6d238 (diff)
using our own pdf rendering script now
-rw-r--r--elisp/autorg.el2
-rwxr-xr-xgnu/ubuntu.sh9
-rwxr-xr-xtools/autorg-tex2pdf18
3 files changed, 16 insertions, 13 deletions
diff --git a/elisp/autorg.el b/elisp/autorg.el
index 0a68b55..1d07a34 100644
--- a/elisp/autorg.el
+++ b/elisp/autorg.el
@@ -57,7 +57,7 @@ org-crypt org-remember org-agenda org-export org-beamer)))
(R org-export-blocks-format-R nil))))
;; use texi2dvi to process with bibtex and makeindex
-(setq org-latex-to-pdf-process '("texi2dvi --pdf --clean --verbose --batch %f"))
+(setq org-latex-to-pdf-process '("autorg-tex2pdf %f"))
;; org protocol helps setting communications outside of Emacs
; (require 'org-protocol)
diff --git a/gnu/ubuntu.sh b/gnu/ubuntu.sh
index 24bd4a1..05e94ec 100755
--- a/gnu/ubuntu.sh
+++ b/gnu/ubuntu.sh
@@ -19,9 +19,14 @@ EOF
# honor user's configuration
if [ -r $HOME/.emacs ]; then
- cat $HOME/.emacs >> $TMP/.emacs
+ # check if there is X, else don't use custom fonts
+ if [ "$DISPLAY" = "" ]; then
+ cat $HOME/.emacs | grep -v '^(set-face-font' >> $TMP/.emacs
+ else
+ cat $HOME/.emacs >> $TMP/.emacs
+ fi
fi
-export PATH="$PATH:$AUTORG:/usr/texbin"
+export PATH="$PATH:$AUTORG:$AUTORG/tools:/usr/texbin"
export GNUPGHOME="$HOME/.gnupg"
HOME=$TMP $EMACS $@
diff --git a/tools/autorg-tex2pdf b/tools/autorg-tex2pdf
index ae05779..3815064 100755
--- a/tools/autorg-tex2pdf
+++ b/tools/autorg-tex2pdf
@@ -1,16 +1,14 @@
#!/usr/bin/env zsh
-# standard output message routines
-autoload colors; colors
# it's always useful to wrap them, in case we change behaviour later
-notice() { print "$fg_bold[green][*]$fg_no_bold[default] $1" >&2 }
-error() { print "$fg[red][!]$fg[default] $1" >&2 }
-func() { if [[ $DEBUG == 1 ]]; then print "$fg[blue][D]$fg[default] $1" >&2; fi }
+notice() { print "[*] $1" >&2 }
+error() { print "[!] $1" >&2 }
+func() { if [[ $DEBUG == 1 ]]; then print "[D] $1" >&2; fi }
act() {
if [ "$1" = "-n" ]; then
- print -n "$fg_bold[white] . $fg_no_bold[default] $2" >&2;
+ print -n " . $2" >&2;
else
- print "$fg_bold[white] . $fg_no_bold[default] $1" >&2;
+ print " . $1" >&2;
fi
}
@@ -28,9 +26,9 @@ notice "Rendering Tex file into PDF: $1"
file="${1%%.tex}"
-{ test -r "${file}.pdf" } && {
- error "file already exists: ${file}.pdf"
- return 1 }
+# { test -r "${file}.pdf" } && {
+# error "file already exists: ${file}.pdf"
+# return 1 }
touch ${file}.log