ob-lilypond.el (ly-process-basic): Rely on ly-gen-png/pdf/eps to set the output type
authorBastien Guerry <bzg@altern.org>
Sat, 26 Jan 2013 11:00:37 +0000 (26 12:00 +0100)
committerBastien Guerry <bzg@altern.org>
Sat, 26 Jan 2013 11:00:37 +0000 (26 12:00 +0100)
* ob-lilypond.el (ly-process-basic): Rely on
ly-gen-png/pdf/eps to set the output type.

Thanks to Florian Beck for reporting this.

lisp/ob-lilypond.el

index 0d6b39b..b96dc34 100644 (file)
@@ -152,7 +152,10 @@ specific arguments to =org-babel-tangle="
       " -dbackend=eps "
       "-dno-gs-load-fonts "
       "-dinclude-eps-fonts "
-      "--png "
+      (cond (ly-gen-png  "--png ")
+           (ly-gen-pdf  "--pdf ")
+           (ly-gen-eps  "--ps ")
+           (t "--png "))
       "--output="
       (file-name-sans-extension out-file)
       " "