So, after looking at your files, the problem seems to be that you're
trying to use `z` and `Z` at the end of a score. If a `z` or `Z`
appears at the end of a score it will have no effect. This is by design
because GregorioTeX will not print empty staves. In the example where
you've got a second line that appears empty, said line actually has an
element on it from GregorioTeX's point of view. Said line appears empty
because the element on it is a syllable with no content.
`z` and `Z` are for starting new lines, not ending the current line (a
subtle, but important difference). The difference between them is that
`Z` calls `\hfill` first, thus filling what's left of the current line
with white space, while `z` does not, thus causing LuaTeX's
justification mechanisms to kick in and stretch the line to fill the space.
What this means is that it is not possible to force GregorioTeX to
stretch a short line at the end of a score out to fill the horizontal
space. At least, it's not possible in the gabc alone. If you look at
https://github.com/gregorio-project/gregorio/issues/43 you'll see that
I've devised a work around that involves editing the gtex after it has
been generated to achieve the desired effect. This tricks LuaTeX into
thinking it's not the last line of the score (thus justifying the line),
even though GregorioTeX recognizes that it is (and thus doesn't print
another stave). Eventually I'd like to work something out that would
allow this to be done more easily, but that's a future enhancement and
right now we're working on getting 3.0.0 out the door.
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
(R. Padraic Springuel)
PAX ☧ ΧΡΙΣΤΟΣ
_______________________________________________
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users