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,
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
