lilypond-user
[Top][All Lists]
Advanced

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

Re: centering title and THEN adding something to the left of it


From: Alexander Kobel
Subject: Re: centering title and THEN adding something to the left of it
Date: Mon, 16 Dec 2013 15:07:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130702 Icedove/17.0.7

On 12/16/2013 02:54 PM, Alex Loomis wrote:
This is really minor, but I was noticing that the positioning of the
spaces in "Fairy Tale Ending" gives it the illusion of being a little
too far to the left. Is there a way to center lines on a word instead of
centering the entire phrase?

Hi Alex,

IIUC that's pretty much what Kieren wanted to in the first place, except that you add stuff to the left /and/ the right. So, if instead of

#1 Fairy Tale Ending [""]
   ^^^^^^^^^^^^^^^^^
      center this

you want

#1 Fairy Tale Ending
         ^^^^
      center this

simply use the same approach, but with the "#1 Fairy " part to the left, \halign #RIGHT-ed, and " Ending" \halign #LEFT-ed on the right. If you choose an X-extent for with-dimensions larger than #empty-interval, you can fake a higher total line length, but AFAICS, that's about it. I cannot see an automated version around the corner which figures out the proper word to put in the center. Might be doable by looping over all words, computing their extents, and taking the "most centered one", but maybe you need to have several short word for the middle part, depending on the length of the lines above and below, and so on. YMMV.


Best,
Alexander



reply via email to

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