On Mon, Nov 4, 2013 at 10:05 PM, Phil Holmes <[email protected]> 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>>

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to