Am 17.03.2014 20:42, schrieb David Kastrup:
Simon Albrecht <simon.albre...@mail.de> writes:
In more complex situations with \include and several scores in one
file it _is_ useful or even necessary, if you want to have one \layout
definition for all scores in common, but for example remove the
Mark_engraver (from Score) only for one of the scores. At least I did
not find an alternative for \with in this particular case.
\score {
...
\layout {
\context { \Score
\remove "Mark_engraver"
}
}
}
This only changes \layout for the given score.
I didn't make myself clear:
I have a separate .ly file containing a \layout block which is applied
to all scores using
\score {
...
\include "layout.ly"
}
(I tried using an identifier:
myLayout = { \context {...}
\context {...}
}
\score {
...
\layout {
\context {...}
\myLayout
}
}
but multiple errors occurred and
warning: Music unsuitable for output-def
was issued, so I abandoned the try, thinking there would probably some
principal restriction I don't understand)
So as it is, I can't include another layout block with modifications
only for this particular score but for the score being printed twice.
The solution would have been \new Score \with {}, but as I said there
were some errors also and I don't know why. I'll have another look at
that one in order to find out and come up with a minimal example in case
the issue doesn't clear itself in the making.
Best regards,
Simon
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user