lilypond-user
[Top][All Lists]
Advanced

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

LilyPond-Book and \include statements


From: Br. Samuel Springuel
Subject: LilyPond-Book and \include statements
Date: Sun, 29 Jun 2014 16:42:41 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

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: "8d/lily-e3a5995c.ly bf/lily-bfe9e111.ly"
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?

Note: While I will eventually be trying to make use of the LilyPond-Book.engine in TeXShop (hence the first line in the lytex file) for the moment I'm running lilypond-book from the command line in order to try and figure out this error.
--
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

Attachment: Test_Lily_include .zip
Description: Zip archive


reply via email to

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