lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bottom-right-aligned, multi-line paragraphs within headings


From: Lukas-Fabian Moser
Subject: Re: Bottom-right-aligned, multi-line paragraphs within headings
Date: Tue, 8 Jun 2021 19:06:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

Hi Brent,

This is marvellous, thank you! Just one question: if I wanted to remove the preceding zeros from the number, how would I do that?

Just omit the (not very elegant) code that I added in order to add the preceding zeros. :-)

To wit, replace

          (markup (format #f
                          (string-append "~" (number->string digits) ",'0d")
                          n)))

by

          (number->string n))

I attach a complete version.

One problem with my code is the fine-tuning of the bottom-alignment of the various \markup's: If you look closely, you see that LilyPond doesn't use the baselines of the text lines, but the actual lowest point of the markups: The lowest point of "Gottes Sohn ist kommen" (no descenders) are aligned to the lowest point of the 'g' in 'long'. Not ideal, but I don't know how to improve this.

Lukas

Attachment: lilypond_text_alignment_3.ly
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]