From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Gregory Subject: Re: Orgmode Latex Export with Babel/LilyPond Date: Sat, 11 Jan 2020 12:29:43 -0300 Message-ID: <87o8vaj9js.fsf@autistici.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54936) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqIiE-0005CA-KV for emacs-orgmode@gnu.org; Sat, 11 Jan 2020 10:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqIiC-0002Fy-A7 for emacs-orgmode@gnu.org; Sat, 11 Jan 2020 10:30:06 -0500 Received: from latitanza.investici.org ([2001:888:2000:56::19]:63899) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iqIiA-0001rn-Hr for emacs-orgmode@gnu.org; Sat, 11 Jan 2020 10:30:02 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 772E9120222 for ; Sat, 11 Jan 2020 15:29:48 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: jgregory@autistici.org) by localhost (Postfix) with ESMTPSA id 4CA321201DC for ; Sat, 11 Jan 2020 15:29:46 +0000 (UTC) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org On 20 Apr 2019, Jakob Sch=C3=B6ttl 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 correctl= y after C-c C-e l p: - Add `:results file :exports results` to the header, - change \relative c=E2=80=99 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) (org-babel-do-load-languages 'org-babel-load-languages '((lilypond . t))) --=20 Jonathan