emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jonathan Gregory <jgrg@autistici.org>
To: emacs-orgmode@gnu.org
Subject: Re: Orgmode Latex Export with Babel/LilyPond
Date: Sat, 11 Jan 2020 12:29:43 -0300	[thread overview]
Message-ID: <87o8vaj9js.fsf@autistici.org> (raw)
In-Reply-To: <e1879e2a-4982-43b6-ce9d-2d531ba4cac5@gmail.com>

On 20 Apr 2019, Jakob Schöttl <jschoett@gmail.com> wrote:

> Hi,
> I'm trying (second attempt), to setup orgmode to export PDFs with
> images generated by Babel/LilyPond.
> I followed the setup instructions here:
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html
> I have
> a recent emacs (Arch Linux),
> ~/.emacs file with
> (org-babel-do-load-languages
>   'org-babel-load-languages
>   '((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")
(require 'lilypond-mode)

 '((lilypond . t)))


      parent reply	other threads:[~2020-01-11 15:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-20 12:04 Orgmode Latex Export with Babel/LilyPond Jakob Schöttl
2020-01-10  9:31 ` adam
2020-01-11  9:58   ` adam
2020-01-11 15:30     ` Jonathan Gregory
2020-01-11 20:04       ` adam
2020-01-11 21:43         ` adam
2020-01-12  4:38           ` adam
2020-01-13 17:56             ` Jonathan Gregory
2020-01-11 15:29 ` Jonathan Gregory [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8vaj9js.fsf@autistici.org \
    --to=jgrg@autistici.org \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).