[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    pb invoking lilypond file in latex
From:       Jean-marc LEGRAND <jean-marc.legrand () total ! com>
Date:       2005-02-24 15:42:29
Message-ID: OF92095AB2.1F0D36F1-ONC1256FB2.00555ADC-C1256FB2.0056495C () total ! com
[Download RAW message or body]





Hi list !
Still working on XP :o(  with Lily 2.4.2.

I'm trying Latex and lilypond book : it seems quite great, but I have a slight pb :

I want to insert in a text some noteheads without any staff. This is my lily file, which goes OK
(thanks lily doc !) :

\paper {
    linewidth = 30\mm
  indent = 0\mm
}
\score {
      \lyrics {
            \time 7/8
  \markup { \raise #0.75 \vcenter \musicglyph #"noteheads--2neomensural" } 4
  \markup { \raise #0.75 \vcenter \musicglyph #"noteheads--1neomensural" } 4
  \markup { \raise #0.75 \vcenter \musicglyph #"noteheads-0neomensural" } 4
            }

      }

I've called it figure1.ly.

Then I try to insert it in my text like this :


(...)
dont la
dur\'{e}e d\'{e}pendait de la quantit\'{e} de mots ou de syllabes qui leur \'{e}tait associ\'{e}e
(notamment parce que les signes \lilypondfile[quote,fragment,staffsize=16]{figure1.ly}
n'existaient pas encore).
(...)

It seems that it is the way to do it (cf lily doc 9.2 Integrating LaTeX and music).
But when I run lilypond-book, its says :


J0041041@rmfrcrsd72218 /cygdrive/c/cygwin/tetex/ofcounterpoint
$ lilypond-book --output=out contrepoint.tex
/usr/bin/lilypond-book (GNU LilyPond) 2.4.2
Reading contrepoint.tex...
Dissecting...
Writing snippets...
Processing...
Running lilypond...GNU LilyPond 2.4.2
Processing `lily-593403792.ly'
Parsing...
Renaming input to: `figure1.ly'

figure1.ly:26:5: error: syntax error, unexpected PAPER:
\pape
     r {

figure1.ly:28:19: error: unknown escaped string: `\mm':
  linewidth = 30\mm

figure1.ly:29:15: error: unknown escaped string: `\mm':
  indent = 0\mm

figure1.ly:54:0: error: Error found in this music expression. Ignoring it:

}
error: failed files: lily-593403792.ly

/usr/bin/lilypond-book: error: Process /usr/bin/lilypond -f tex -I /cygdrive/c/c
ygwin/tetex/ofcounterpoint exited unsuccessfully.
Removing `out/contrepoint.tex'

I think that I forgot to say something to "him" because he doesn't want to recognize some typical
lily features.

Any help ?

Bye




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic