lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using lilypond examples in an essay or text document


From: James Harkins
Subject: Re: Using lilypond examples in an essay or text document
Date: Sun, 05 Apr 2015 10:37:53 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Org-mode is a pretty remarkable way to do this. You can embed LilyPond source 
code directly into the document's markup. Then, when you export to LaTeX, it 
can compile the LP snippets automatically and insert them into the result.

~~~~ begin sample org file
#+PROPERTY: header-args:lilypond :prologue \header{tagline=##f}

#+TITLE: Org-mode, LaTeX, LilyPond
#+DATE: <2015-04-05 Sun>
#+AUTHOR: James Harkins

#+LATEX_CLASS: article
#+DATE: \today

If you're into What You See Is What You Mean, org-mode supports LilyPond code 
blocks:

#+BEGIN_SRC lilypond :file demo.eps :exports results
\relative c' { c4 e g e f d b g }
#+END_SRC

And even automatically trims the result!
~~~~ end sample org file

The main drawback is that it's ideal for people who already use Emacs, but if 
you don't use Emacs, then you would have to learn Emacs.

hjh





reply via email to

[Prev in Thread] Current Thread [Next in Thread]