lilypond-user
[Top][All Lists]
Advanced

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

Re: org-babel-lilypond export,automatic image trimming?


From: James Harkins
Subject: Re: org-babel-lilypond export,automatic image trimming?
Date: Tue, 5 Nov 2013 22:49:41 +0800

On Mon, Nov 4, 2013 at 10:05 PM, Phil Holmes <address@hidden> wrote:
> tagline = ##f
>
> will get rid of the tagline.
>
> Using -dpreview on the command line will provide trimmed images.  Be a
> little careful with this, since it sometimes trims a little too much.

Thanks. For future reference, it's working now, like this:

In ~/.emacs (only way to add -dpreview):

(setq ly-nix-ly-path "/home/dlm/share/lilypond/myinstall/bin/lilypond
-dpreview")

In the org file, near the top:

#+BIND: org-latex-listings-options (("basicstyle"
"\\ttfamily\\scriptsize") ("captionpos" "b") ("tabsize" "3"))
#+PROPERTY: header-args:lilypond :prologue \header{tagline=##f}
#+LATEX_HEADER: \newcommand{\inpcode}[1]{\texttt{#1}}
#+LATEX_HEADER: \usepackage{listings}

(Also customized org-latex-listings to "use listings.")

Then:

** Pitches
    - Pitch: @@latex:\inpcode{a b c d e f g}@@
      - Flat: Using English note names, @@latex:\inpcode{af bf}@@ etc.
      - Sharp: Using English note names, @@latex:\inpcode{cs ds}@@ etc.
#+name: pitches
#+begin_src lilypond -i :exports both :file babel/pitches.png
\include "english.ly"
{ c' e' g' fs' a' c'' ef'' d' }
#+end_src

Produces the attached. :)

hjh

Attachment: for-ly-list.png
Description: PNG image


reply via email to

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