lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond-book include *.ly, cannot find file


From: Julien Rioux
Subject: Re: lilypond-book include *.ly, cannot find file
Date: Tue, 08 Jan 2013 17:48:19 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

On 08/01/2013 4:28 AM, Cognac Natanael wrote:
Hello Everybody,

I’m using :
\include "../config.inc.ly"
in the beginning of all my lilypond scores, and :
\include "../new.score.ly"
at the end.

It works smoothly with lilypond.

But now, I’m trying to make a book with lilypond-book & latex and include
the scores into it, and I've got this message when I run :

lilypond-book --include=lilypond --output=out --pdf lilybook.lytex

lilypond/chapeau-mr-belzebuth/chapeau-mr-belzebuth.ly:1:9: error: cannot
find file: `../config.inc.ly'
(search path:
`1d:/usr/share/lilypond/2.16.1/fonts/svg/:/usr/share/lilypond/2.16.1/fonts/type1/:/usr/share/lilypond/2.16.1/fonts/otf/:/usr/share/lilypond/2.16.1/scm:/usr/share/lilypond/2.16.1/ps:/usr/share/lilypond/2.16.1/ly:.:..:lilypond')

The only way to make it work is to change all the include to an absolute
path (\include "/home/aureliano/bez/lilypond/config.inc.ly"), which is not
a solution (not maintanable).


You might want to try using relative-includes, either by activating this option in your lilypond files:
http://www.lilypond.org/doc/v2.16/Documentation/notation/including-lilypond-files

or activating this option from the command line:
http://www.lilypond.org/doc/v2.16/Documentation/usage/command_002dline-usage#advanced-command-line-options-for-lilypond

When running lilypond-book, you can pass command-line options to lilypond by specifying the --process:
http://www.lilypond.org/doc/v2.16/Documentation/usage/invoking-lilypond_002dbook

Cheers,
Julien



reply via email to

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