lilypond-user
[Top][All Lists]
Advanced

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

Re: Ragged right for contents but not staff?


From: David Nalesnik
Subject: Re: Ragged right for contents but not staff?
Date: Thu, 13 Mar 2014 12:25:56 -0500

OK,

On Thu, Mar 13, 2014 at 11:43 AM, David Nalesnik <address@hidden> wrote:
 
I'll post a revision of this in a little while.  It incorporates reduce as David K. suggests, and it also allows you to specify alignments as pairs: left/center/right of one to left/center/right of the other.

I'm not too wild about it, as the function uses 'extra-offset, which is usually "contraindicated."

Here's a bit of a revision of the original function.

**It finds the nearest whatever-it-is-you-want-to-align-your-grob-to in a more elegant way.  (Thank you, David K., for suggesting it.)  Note that it might snap to a grob you didn't expect, since we simply look for the closest such grob.

**It allows you to specify alignment points for both objects.  The old pattern is supported.  If you give it a single number: #-1 --> LEFT to LEFT, #0 --> CENTER to CENTER, #1 --> RIGHT to RIGHT

**I did not address the interface.

For what it's worth...

--David

Attachment: alignGrob-update2.ly
Description: Text Data


reply via email to

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