From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: ob-lilypond and LaTeX floats/captions Date: Sat, 27 Feb 2016 08:42:10 +0800 Message-ID: <153202cdf48.27cd.0bb60a3c7e492ea180363c67eb170725@qq.com> References: <87r3fzdtge.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZSxl-0006dC-17 for emacs-orgmode@gnu.org; Fri, 26 Feb 2016 19:42:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZSxh-0007QJ-My for emacs-orgmode@gnu.org; Fri, 26 Feb 2016 19:42:24 -0500 Received: from smtpbgbr2.qq.com ([54.207.22.56]:43075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZSxg-0007Po-9F for emacs-orgmode@gnu.org; Fri, 26 Feb 2016 19:42:21 -0500 In-Reply-To: <87r3fzdtge.fsf@nicolasgoaziou.fr> 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: orgmode On February 27, 2016 5:57:01 AM Nicolas Goaziou wrote: > > My question, then, is: What is needed to get ob-lilypond to support > > LaTeX floats and captions? (I have a sneaky feeling it isn't trivial, > > but it's worth asking in any case.) > > You are applying the name and caption to the source block, which is > removed (:exports results), not to the results of the source block. So, > you need to generate the results first, or at least put a RESULTS > keyword below, and apply the name and caption to it. A-ha. Thank you. So, "What is needed to get ob-lilypond to support LaTeX floats and captions" is to RTFM ;) I have often exported source code to LaTeX listings, but only infrequently exported results. So I wasn't clear on the mechanism. Now that you explain it, it makes perfect sense: the properties belong to an entity that I asked it not to export. Thanks again - I can take it from here. (PS This project is a write-up of an improvisational composition -- a lot of text description of the procedure, with some examples in musical notation along the way. It blows my mind that I can write the lilypond scores directly into the org document, and it all renders with C-c C-e l p. org-mode FTW! Again!) hjh Sent with AquaMail for Android http://www.aqua-mail.com