lilypond-user
[Top][All Lists]
Advanced

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

lilypond-book include *.ly, cannot find file


From: Cognac Natanael
Subject: lilypond-book include *.ly, cannot find file
Date: Tue, 8 Jan 2013 10:28:16 +0100

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).

I tried to follow this advices (http://lilypond.1069038.n5.nabble.com/lilypond-book-or-latex-doesn-t-find-the-necessary-files-tt132383.html#a132480), and I used this script :
#!/usr/bin/env bash

TEMP_DIR=temp
INPUT_FILE=yourfile.lytex
OUTPUT_FILE=yourfile.pdf
CURRENT_DIR=$(pwd)

lilypond-book --pdf \
              --include="$CURRENT_DIR" \
              --output="$TEMP_DIR" \
              "$INPUT_FILE" && \
(cd "$TEMP_DIR" && \
 pdflatex yourfile.tex && \
 mv "$OUTPUT_FILE" ..) && \
rm -rf "$TEMP_DIR"

… but ending in the same results …

Does anyone have an idea to solve this ?

Thank you very much for your time !

Nat,

reply via email to

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