emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Lilypond: added PDF output
@ 2011-11-28 22:45 Torsten Anders
  2011-11-29 12:38 ` Martyn Jago
  0 siblings, 1 reply; 2+ messages in thread
From: Torsten Anders @ 2011-11-28 22:45 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

Dear all,

The current implementation how org-babel calls Lilypond hard-wires the supported output file formats to EPS and PNG. Attached is a very simple patch that adds support for PDF as well, so that resulting PDF files can be directly integrated in the PDF files generated by Latex and Latex Beamer support.

Thanks!  

Best wishes,
Torsten

[-- Attachment #2: ob-lilypond.el.diff --]
[-- Type: application/octet-stream, Size: 363 bytes --]

diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el
index 1f817ad..a8ce65e 100644
--- a/lisp/ob-lilypond.el
+++ b/lisp/ob-lilypond.el
@@ -155,6 +155,7 @@ specific arguments to =org-babel-tangle="
       "-dno-gs-load-fonts "
       "-dinclude-eps-fonts "
       "--png "
+      "--pdf "
       "--output="
       (file-name-sans-extension out-file)
       " "

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Lilypond: added PDF output
  2011-11-28 22:45 [PATCH] Lilypond: added PDF output Torsten Anders
@ 2011-11-29 12:38 ` Martyn Jago
  0 siblings, 0 replies; 2+ messages in thread
From: Martyn Jago @ 2011-11-29 12:38 UTC (permalink / raw)
  To: emacs-orgmode

Hi Torsten

Torsten Anders <torsten.anders@beds.ac.uk> writes:

> Dear all,
>
> The current implementation how org-babel calls Lilypond hard-wires the
> supported output file formats to EPS and PNG. Attached is a very
> simple patch that adds support for PDF as well, so that resulting PDF
> files can be directly integrated in the PDF files generated by Latex
> and Latex Beamer support.
>
> Thanks!  
>
> Best wishes,
> Torsten

Doesn't :cmdline " --pdf " work for you?

--8<---------------cut here---------------start------------->8---

#+begin_src lilypond :file ionian.pdf :noweb yes :cmdline " --pdf "

  <<version-and-paper>>
  \relative c' { 
    c d e f g a b c b a g f e d c d  
    e f g a b c b a g f e d c1
}

#+end_src

--8<---------------cut here---------------end--------------->8---

If you have an example of how you are exporting we could maybe add it to the examples in
Worg? It is not a use-case I have considered.

Best, Martyn

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-29 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-28 22:45 [PATCH] Lilypond: added PDF output Torsten Anders
2011-11-29 12:38 ` Martyn Jago

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).