Am 11.08.2013 19:13, schrieb Karol Majewski:
Let's say I work on two pieces of music: piece-one.ly and piece-two.ly. Each of them has some files 
included, like "deutsch.ly" or "frameEngraver-bars-and-boxes.ly". Now I want to 
combine both files into one PDF document. To achieve this, I create a new *.ly file (main.ly) which 
has piece-one.ly and piece-two.ly included. And now the error happens.

Of course, I can exclude "frameEngraver-bars-and-boxes.ly" from piece-one.ly 
and piece-two.ly and include it into main.ly. But then... if I want to compile 
piece-one.ly separetly - I have to include it again. The point is that it is not 
comfortable to repeat this process again and again.
In such a case you can
- define an arbitrary variable in frameEngraver-bars-and-boxes.ly
- write a function that only includes that file if the variable isn't defined yet.

HTH
Urs

Dnia 11-08-2013 o godz. 17:30 David Kastrup napisaƂ(a):
"Karol Majewski" <karo...@wp.pl> writes:

Hi,

just found a small bug in frameEngraver-bars-and-boxes.ly.

When the main *.ly file includes more than one *.ly file, like:

\include "1.ly"
\include "2.ly"

... and each of those files (1.ly, 2.ly) includes
frameEngraver-bars-and-boxes.ly, then I cannot compile the main.ly,
because of:
Why should one be able to include the code in
frameEngraver-bars-and-boxes.ly twice in a single document?

--
David Kastrup


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to