lilypond-user
[Top][All Lists]
Advanced

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

Re: Include file handling in lilypond-book


From: Federico Bruni
Subject: Re: Include file handling in lilypond-book
Date: Wed, 12 Jul 2017 17:03:47 +0200



Il giorno mer 12 lug 2017 alle 1:54, Karljurgen Feuerherm <address@hidden> ha scritto:
Hello,

Putting together an exercise book using XeLaTeX and the lilypond environment. Everything works relatively well until I try to use an include file with variable definitions.

MWE:

                % !TEX encoding = UTF-8 Unicode
                % !TEX TS-program = LilyPond-Book
                % !LILYPOND tex = xelatex
                \documentclass{memoir}

%             \newcommand{\Ggrace}{\grace { g''32 }}
                \begin{document}
                \begin{lilypond}
                {
                  \include "lilypond-variables.ly"


Move this \include outside the {} music expression and put it right after \begin{lilypond}.
Just like in the code that works fine in Frescobaldi ;-)


                  \time 2/4
\grace { g''32 } g'4 \Ggrace a'4 \Ggrace b'4 \Ggrace c''4
                  \Ggrace d''4 \Ggrace e''4 \Ggrace f''4         g''4
                          a''2         g''4         f''4 \Ggrace e''4
                  \Ggrace d''4 \Ggrace c''4 \Ggrace b'4  \Ggrace a'4
                  \Ggrace g'4
                  \bar "||"
                }
                \end{lilypond}
                \end{document}

LILYPOND-VARIABLES.LY:

                Ggrace = {  \grace { g''32 }  }






reply via email to

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