lilypond-user
[Top][All Lists]

## Re: nested lilypond-book files?

 From: Mats Bengtsson Subject: Re: nested lilypond-book files? Date: Thu, 10 Apr 2003 12:52:04 +0200 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Han-Wen Nienhuys wrote:

address@hidden writes:


What you can use is the standard LaTeX procedure for splitting a
document into several files, using \include or \input (read
some LaTeX introduction on the difference between these two).
However, for some strange reason, you should use the commands
\mbinclude and \mbinput instead in lilypond-book. This was



The strange reason is that lilypond-book does something different than
tex when it comes to including: lilypond-book substitutes the
contents. This means that you get a different result, eg. if the
included file contains \endinput.


I don't understand why lilypond-book should do it differently.
The only thing lilypond-book should do to a LaTeX document is
to find all the \begin{lilypond}...\end{lilypond}, run these
fragments through lilypond and replace them by a statement that
inputs the resulting tex file. If the LaTeX document is split
into several files using \input or \include, lilypond-book should
just go through all the files in the document following the same
procedure. If, for some weird reason, an included files contains
\endinput, I wouldn't expect lilypond-book to realize that it
could skip the rest of the document but the result should work
anyway, right?

/Mats