> On 13 Jul 2025, at 04:03, James Teitsma <ja...@jamesteitsma.ca> wrote:
> 
> Hi all:
> 
> I'm new to Lilypond and just poking away to start.  I'm a computer programmer 
> by trade, so I'm hopeful I'll be able to figure this out over the coming 
> weeks and months. 
> 
> I spent the afternoon trying to create an entry for a Psalter-Hymnal that 
> uses unison voice with a single stanza in the staves. 
> 
> I'm stuck on three things, all spacing-related:
> 1) How can I move the initial note of each line to align about one inch in 
> from the left of the system? 
> 2) How can I eliminate the gap between the staves and the subsequent 
> text-only lyrics stanzas?
> 3) How can I get the bar-line to appear at the end of the last stave, even 
> though I need ragged-right on for the rest of the piece?

James,

Q3 was something I recently uncovered in the list archives and adapted for 
2.24.0 just after I sent a similar inquiry myself

https://lists.gnu.org/archive/html/lilypond-user/2025-04/msg00049.html

which I further changed for my use into 

endbar = {
  \overrideProperty Staff.BarLine.after-line-breaking
  #(lambda (grob)
     (let* ((sys (ly:grob-system grob))
            (staff (ly:grob-object grob 'staff-symbol))
            (half-thickness (/ (ly:staff-symbol-line-thickness staff) 2))
            (cur-x (cdr (ly:grob-extent grob sys X)))
            (new-x (cdr (ly:grob-extent staff sys X)))
            (xoff (+ half-thickness (- new-x cur-x))))
         (ly:grob-set-property! grob 'extra-offset (cons xoff 0)))) \bar "|."
}

so that I don’t have to keep spcifying the final bar type (\endbar \bar “|.”), 
but can suffice with only putting the variable ( \endbar ) at the end of the 
music.

regarding Q2, no direct answer, but based on the docs you’d have to experiment 
with score-markup-spacing

https://lilypond.org/doc/v2.24/Documentation/notation/flexible-vertical-spacing-paper-variables

kind regards,
Hans


Reply via email to