From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Fwd: ob-lilypond: pre- and post-processing of source blocks Date: Mon, 4 Nov 2013 20:39:42 +0800 Message-ID: References: <0dabc937-df1c-4b65-971b-f83812526af4@dewdrop-world.net> Reply-To: jamshark70@dewdrop-world.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01536b14d1931904ea593525 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdJRZ-00060A-0T for Emacs-orgmode@gnu.org; Mon, 04 Nov 2013 07:39:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdJRX-0005GV-I5 for Emacs-orgmode@gnu.org; Mon, 04 Nov 2013 07:39:44 -0500 Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:53479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdJRX-0005FM-Co for Emacs-orgmode@gnu.org; Mon, 04 Nov 2013 07:39:43 -0500 Received: by mail-ob0-f176.google.com with SMTP id uy5so6923013obc.7 for ; Mon, 04 Nov 2013 04:39:42 -0800 (PST) In-Reply-To: <0dabc937-df1c-4b65-971b-f83812526af4@dewdrop-world.net> 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: Emacs-orgmode@gnu.org --089e01536b14d1931904ea593525 Content-Type: text/plain; charset=ISO-8859-1 Apologies for resending -- I sent this a few hours ago but I don't see it on gmane, or in the gnu.org archive either. Actually the manual answers question #1 -- I should be able to use the prologue header argument for that. And I can already do #2 (included just to outline the desired behavior completely). I haven't found anything in the manual explaining how to run a shell command on the output file from LilyPond execution. That's really the crucial one -- it makes no sense to embed an A4 sized image into a beamer frame... hjh ---------- Forwarded message ---------- From: "James Harkins" Date: Nov 4, 2013 1:44 PM Subject: ob-lilypond: pre- and post-processing of source blocks To: "orgmode" Cc: > I would like to be able to do the following with ob-lilypond (basic mode): > > 1. Wrap the source block in pre- and/or post-strings (specifically to add "\header { tagline = ##f }" before the music expressions). > > 2. Have lilypond compile the block. > > 3. Run "convert -trim" on the resulting png. (Haven't figured out how to use eps output with xelatex.) > > Is this at all feasible? If not, where would I stick this stuff into the orgmode source? > > hjh --089e01536b14d1931904ea593525 Content-Type: text/html; charset=ISO-8859-1

Apologies for resending -- I sent this a few hours ago but I don't see it on gmane, or in the gnu.org archive either.

Actually the manual answers question #1 -- I should be able to use the prologue header argument for that. And I can already do #2 (included just to outline the desired behavior completely).

I haven't found anything in the manual explaining how to run a shell command on the output file from LilyPond execution. That's really the crucial one -- it makes no sense to embed an A4 sized image into a beamer frame...

hjh

---------- Forwarded message ----------
From: "James Harkins" <jamshark70@dewdrop-world.net>
Date: Nov 4, 2013 1:44 PM
Subject: ob-lilypond: pre- and post-processing of source blocks
To: "orgmode" <emacs-orgmode@gnu.org>
Cc:

> I would like to be able to do the following with ob-lilypond (basic mode):
>
> 1. Wrap the source block in pre- and/or post-strings (specifically to add "\header { tagline = ##f }" before the music expressions).
>
> 2. Have lilypond compile the block.
>
> 3. Run "convert -trim" on the resulting png. (Haven't figured out how to use eps output with xelatex.)
>
> Is this at all feasible? If not, where would I stick this stuff into the orgmode source?
>
> hjh

--089e01536b14d1931904ea593525--