Laura, you must have confused things. As long as each .ly file only
contains a single \score block, then the headers are printed for each
score,
even if they appear on the same page in the LaTeX document.
Example:
------------ test.lytex --------------
\documentclass[a4paper]{article}
\begin{document}
Some text at the top of the document.
\lilypondfile{test.ly}
Some text inbetween.
\lilypondfile{test.ly}
\end{document}
----------------------------------------
-------- test.ly --------------------------
\header{
title = "Title"
}
\score{
\relative c'{ c d e f g a b c }
}
---------------------------------------
However, if you have several \score blocks in the same .ly file,
then Grahams answer applies and this has nothing to do with
lilypond-book in particular.
/Mats
Laura Conrad wrote:
"Graham" == Graham Percival <[EMAIL PROTECTED]> writes:
Graham> Laura Conrad wrote:
>> In 2.11, if a \lilypondfile{filename} isn't the first one on the page,
>> no headers are printed.
>>
>> Is there a way to turn off this behavior, or to regulate it in some
>> way? It may be a feature for somebody, but it's a bug for this
>> particular document.
Graham> Is
Graham> \paper{
Graham> printallheaders=##t
Graham> }
Graham> What you're looking for?
It does fix the problem. It would be better if it could be specified
as an option to \lilypondfile or even as a command line option to
lilypond-book, though.
Graham> It's the second item from the bottom of the "creating
Graham> titles" page.
That says:
If you define the \header inside the \score block, then normally
only the piece and opus headers will be printed.
...
You may change this behavior (and print all the headers when
defining \header inside \score) by using
\paper{
printallheaders=##t
}
I would never have guessed that having a piece start in the middle of
a latex page was equivalent to having the headers of the piece inside
a score. So maybe a discussion of what lilypond-book is doing to the
structure of a lilypond file that would cause the output to be
different when I say "\lilypondfile{file.ly}" inside a latex file than
if I just say "lilypond file.ly" would be a good thing.
I would attempt to write this explanation if I understood it, but I
don't. In versions previous to 2.11, I think I was always successful
in arguing that it was a bug when they were different. If it's not a
bug, I think it should be documented as a feature.
I have only spent an hour or so trying to figure out why it would be a
useful feature, and I have been unsuccessful, but I'm willing to
listen if a developer who implemented it on purpose has a rationale
for having done so. If it happened by accident, and nobody has ever
had a reason to use it as a feature, I'll be happy to submit a bug
report.
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel