I am creating a LaTeX document with some figures showing musical score that I created in LilyPond.
\documentclass{scrbook}
\begin{document}
Random text
\begin{lilypond}
\relative c'{ c d e \hide f g a b c}
\end{lilypond}
\end{document}
As you can tell, I would like to hide a notehead with \hide
, but when I compile the document with lilypond-book
I get:
minimal.lytex:5:20: Fehler: Ungültige Fluchtsequenz: »\hide«
\relative c'{ c d e
\hide f g a b c}
minimal.lytex:5:20: Fehler: syntax error, unexpected STRING
\relative c'{ c d e
\hide f g a b c}
minimal.lytex:5:0: Fehler: Fehler gefunden, musikalischer Ausdruck wird ignoriert
\relative c'{ c d e \hide f g a b c}
schwerer Fehler: gescheiterte Dateien: "29/lily-0ede87a5.ly"
command failed: /usr/bin/lilypond --formats=ps -dbackend=eps -I "./lily-snips" -I "." -I ".." --formats=eps -deps-box-padding=3.000000 -dread-file-list -dno-strip-output-dir "/home/username/Dokumente/lily-snips/snippet-names--5826727977308730106.ly"
Child returned 1
I do not understand this error, because the part \relative c'{ c d e \hide f g a b c}
will be properly compiled by LilyPond itself, but not by lilypond-book
.
minimal.lytex
and then ranlilypond-book minimal.lytex
and thenpdflatex minimal
. It compiled fine. This is with version 2.18.2 of Lilypond. Are you using an older version?lilypond-book $fullname --output=./lily-output --latex-program=lualatex
. The log file says that it is using LilyPond-Book version 2.16.2 even though I installed LilyPond version 2.18.2. If I compile it in the terminal, it correctly uses v. 2.18.2. and I can afterwards properly compile it withlualatex
. So my new question is: Why is TeXWorks using a different version than the terminal, and where is it located?