lilypond-user
[Top][All Lists]
Advanced

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

Re: LilyPond-Book and \include statements


From: James
Subject: Re: LilyPond-Book and \include statements
Date: Mon, 30 Jun 2014 15:32:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 29/06/14 21:42, Br. Samuel Springuel wrote:
Attached is a small sample project which attempts to exploit the \include statement in lilypond in a lilypond-book project. The goal (and why I have two scores in this small sample) is to be able to place in Format.lyi those pieces of the lilypond code (such as font selection, or the definition of certain symbols) which should apply to every snippet in the final project.

If I run "lilypond-book Main.lytex" everything works as expected. However, this, creates lots of files and folders in the working directory, especially on large projects. As a result, I'd like to make use of the --output and --lily-output-dir options to create subdirectories where these files can be placed (leaving the top directory relatively clean). However, when I try to enable either of these options (as well as both), lilypond complains that it cannot find Format.lyi. Specifically I get the following:

rps-mac:Test_Lily_include RPS$ lilypond-book Main.lytex --lily-output-dir "Main-lily"
lilypond-book (GNU LilyPond) 2.18.2
Reading Main.lytex...
Running `latex' on file `/var/folders/7r/jmxwxnms3jl6hptxkfymx3800000gq/T/tmptNZoeb.tex' to detect default page settings.

Dissecting...
Writing snippets...
Processing...
Running lilypond...
GNU LilyPond 2.18.2
Processing `snippet-map-279971155.ly'
Parsing...
Processing `Main.lytex'
Parsing...
Renaming input to: `Scores/Hymn.ly'
Scores/Hymn.ly:4:10: error: cannot find file: `Format.lyi'
(search path: `Scores:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:Main-lily:.:..:')
\include
         "Format.lyi"
Scores/Hymn.ly:18:46: error: unknown escaped string: `\aster'
    Come Ho -- ly Spir -- it, live in us
\aster with God the Fa -- ther and the Son. And grant us your a -- bun -- dant grace to sanc -- ti -- fi and make us one.
Interpreting music...[8]
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `bf/lily-bfe9e111.eps'...
Layout output to `bf/lily-bfe9e111-1.eps'...
Layout output to `bf/lily-bfe9e111-2.eps'...
Layout output to `bf/lily-bfe9e111-3.eps'...
Writing bf/lily-bfe9e111-systems.texi...
Writing bf/lily-bfe9e111-systems.tex...
Writing bf/lily-bfe9e111-systems.count...
Processing `Main.lytex'
Parsing...
Renaming input to: `Scores/OurFather.ly'
Scores/OurFather.ly:4:10: error: cannot find file: `Format.lyi'
(search path: `Scores:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:Main-lily:.:..:')
\include
         "Format.lyi"
Interpreting music...[8]
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `8d/lily-e3a5995c.eps'...
Layout output to `8d/lily-e3a5995c-1.eps'...
Layout output to `8d/lily-e3a5995c-2.eps'...
Layout output to `8d/lily-e3a5995c-3.eps'...
Layout output to `8d/lily-e3a5995c-4.eps'...
Layout output to `8d/lily-e3a5995c-5.eps'...
Layout output to `8d/lily-e3a5995c-6.eps'...
Layout output to `8d/lily-e3a5995c-7.eps'...
Writing 8d/lily-e3a5995c-systems.texi...
Writing 8d/lily-e3a5995c-systems.tex...
Writing 8d/lily-e3a5995c-systems.count...
fatal error: failed files: "
command failed: /Applications/LilyPond.app/Contents/Resources/bin/lilypond --formats=ps -dbackend=eps -I "Main-lily" -I "." -I ".." --formats=eps -deps-box-padding=3.000000 -dread-file-list -dno-strip-output-dir "/Users/RPS/Documents/Abbey/Test_Lily_include /Main-lily/snippet-names-279971155.ly"
Child returned 1

Using the "--output Main-out" option (or both simultaneously) yields a similar output.

Does anyone know why this might be happening and what I can do to fix it?

Well not from just this. However if you use the location of the failed files:

8d/lily-e3a5995c.ly

and

bf/lily-bfe9e111.ly

Somewhere in one of those '8d' and 'bf' directories should be a corresponding *.log files that might give more clues to what the specific problem is.

Lilypond-book is what we use (essentially) to automate the building of all the pictures of examples of LilyPond code in the manuals and these *.log (and possibly *.texi files) that get generated are were the messages are going to be from my own experience of building documentation. That is not to say it will be easy to spot *why* the problem is happening but it will give you some clues.

As to including files with lilypond-book, this is not a problem normally but it might also be a problem depending *where* you are putting the include statement or if there is a problem in the included file that itself has some 'unexpected' syntax when it is included.

I hope this helps.

James



reply via email to

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