On 20 Apr 2019, Jakob Schöttl <jscho...@gmail.com> wrote:
> I'm trying (second attempt), to setup orgmode to export PDFs with
> images generated by Babel/LilyPond.
> I followed the setup instructions here:
> I have
> a recent emacs (Arch Linux),
> ~/.emacs file with
> '((lilypond t)))
> (although I saw many other snippets where there is a "." between the
> (lilypond t)). I tried both variants.
> I tried also tried (require 'lilypond) instead
> org-babel-do-load-languages which caused an error.
> I pressed C-c C-e l p -> "PDF file produced."
> But no images are generated and no images appear in the PDF. Only
> plain source code.
> Any ideas?
> Thank you!
> - Jakob
I tried the first example with emacs -Q using Org versions 9.1.9 and 9.3.1, and
there were a few things I had to change to generate the image correctly after
C-c C-e l p:
- Add `:results file :exports results` to the header,
- change \relative c’ to \relative c', and
- add the missing the #+end_src part.
The configuration I used:
(add-to-list 'load-path "/usr/share/emacs/site-lisp")
'((lilypond . t)))