[Top][All Lists]

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

Lilypond + LaTex (on Mac)

From: Peter O'Doherty
Subject: Lilypond + LaTex (on Mac)
Date: Sat, 16 Sep 2006 13:38:56 +0200

I have been using lilypond for some time now, much to my satisfaction and without problems.

Recently, I have also started using LaTex (on TeXShop) and have been trying to use lilypond-book, without succes.

My problem is really a beginner's one I guess as my experience with LaTex is limited. 

If I use the example given here:
and simply paste the following into an new empty LaTex document



     Documents for @command{lilypond-book} may freely mix music and text.
     For example,


     \relative c' {
       c2 g'2 \times 2/3 { f8 e d } c'2 g4


     Options are put in brackets.


       c'4 f16



and click "Typeset LaTex", I get the following error:
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
\write18 enabled.
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, d
utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded.
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
! Undefined control sequence.
l.9      \relative
                   c' {
? loading : Context Support Macros / PDF (2004.03.26)

! LaTeX Error: Environment lilypond undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
l.8      \begin{lilypond}

Therefore, it's telling me that the lilypond environment is undefined. Can someone help me here? 

Secondly, I happend upon Nicola Vitacolonna's site where she provided the following information:

Lilypond is a very good music notation software, which can also be used with LaTeX. Put Lilypond.engine, Lilypond-LaTeX.engine and convert-ly.engine into your Library/TeXShop/Engines folder to run lilypond, lilypond-book and convert-ly, respectively, within TeXShop (you need to remove the .txt suffix, to make the scripts executable and to customize the LILYPONDFOLDER variable in the above files to match your Lilypond installation path). Unfortunately, pointing-and-clicking on a note will open your source file in the Lilypond application (point-and-click is not compatible with TeXShop).

However, this does not work, as I get the error:

"/Users/peter/Library/TeXShop/Engines/Lilypond-LaTeX.engine does not have the executable bit set."

Does anyone have experience with the method?

Many thanks,

reply via email to

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