\mbinput is broken [Was: Re: nested lilypond-book files?]

2003-04-01 Thread Oscar A. Valdez
\include and \input are the standard LaTeX procedures to split a long
document into several .tex files. lilypond-book requires that the
commands be used as \mbinclude and \mbinput with Lilypond .ly files.

\mbinclude works as expected, and, like plain \include, does a
\clearpage before and after the included file. \mbinput, however, is
broken. lilypond-book crashes with the following output:

Traceback (most recent call last):
  File /usr/bin/lilypond-book, line 1540, in ?
do_file(input_filename)
  File /usr/bin/lilypond-book, line 1424, in do_file
chunks = read_doc_file(input_filename)
  File /usr/bin/lilypond-book, line 1007, in read_doc_file
chunks = chop_chunks(chunks, 'input', do_input_file, 1)
  File /usr/bin/lilypond-book, line 953, in chop_chunks
newchunks = newchunks + func(m)
  File /usr/bin/lilypond-book, line 880, in do_input_file
return read_doc_file(m.group('filename'))
IndexError: no such group

Is this a known bug, or is there something wrong with my installation? I
need to use \mbinput, because I don't want the \clearpages inserted by
\mbinclude.

Oscar A. Valdez




___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: nested lilypond-book files?

2003-03-26 Thread Oscar A. Valdez
\mbinlude works, but inserts page breaks before and after the included parts.

\mbinput crashes with the following output:

Traceback (most recent call last):
  File /usr/bin/lilypond-book, line 1540, in ?
do_file(input_filename)
  File /usr/bin/lilypond-book, line 1424, in do_file
chunks = read_doc_file(input_filename)
  File /usr/bin/lilypond-book, line 1007, in read_doc_file
chunks = chop_chunks(chunks, 'input', do_input_file, 1)
  File /usr/bin/lilypond-book, line 953, in chop_chunks
newchunks = newchunks + func(m)
  File /usr/bin/lilypond-book, line 880, in do_input_file
return read_doc_file(m.group('filename'))
IndexError: no such group

Any ideas on getting \input or \mbinput to work?

Oscar

==

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
recently discussed in the mailing list.

Example

main.lilybook:
\documentclass{blah}
\begin{document}
\mbinclude{mvmt2.lilybook}
\end{document}

mvmt2.lilybook:
% Note, no \begin{document} here, since that's already
% done in the main file
lilypondfile{score-2a.ly}


   /Mats






-
Este correo se envio usando IMP Webmail
Visite el proyecto en: http://horde.org/imp


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


nested lilypond-book files?

2003-03-23 Thread Graham Percival
This could be a stupid (La)TeX question, rather than a stupid lilypond
question, but here goes:

Can you have nested lilypond-book files?  If so, how?

I'd like to do this:

main.lilybook:
\documentclass{blah}
\begin{document}
\include-lilypond-book{mvmt2.lilybook}
\end{document}

mvmt2.lilypbook:
\documentclss{blah}
\begin{document}
\lilypondinclude{score-2a.ly}
\lilypondinclude{score-2b.ly}
\end{document}

What should I put on the \include-lilypond-book{} line?

Cheers,
- Graham


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user