emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@qq.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: ob-lilypond and LaTeX floats/captions
Date: Sat, 27 Feb 2016 08:42:10 +0800	[thread overview]
Message-ID: <153202cdf48.27cd.0bb60a3c7e492ea180363c67eb170725@qq.com> (raw)
In-Reply-To: <87r3fzdtge.fsf@nicolasgoaziou.fr>

On February 27, 2016 5:57:01 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> 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

      reply	other threads:[~2016-02-27  0:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-26 15:20 ob-lilypond and LaTeX floats/captions James Harkins
2016-02-26 21:58 ` Nicolas Goaziou
2016-02-27  0:42   ` James Harkins [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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=153202cdf48.27cd.0bb60a3c7e492ea180363c67eb170725@qq.com \
    --to=jamshark70@qq.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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