lilypond-user
[Top][All Lists]
Advanced

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

Re: [layout tweaks] 1. fill-line


From: Rune Zedeler
Subject: Re: [layout tweaks] 1. fill-line
Date: Tue, 19 Jun 2007 23:27:09 +0200
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

Germain G. Ivanoff-Trinadtzaty wrote:
Thank you Rune,

You are welcome.

    % Here, the 'title' is output _almost_ at the center of the page
    % (with a little shift to the right) while the 'index' is put
    % 'gap' spaces away from 'title', on the left side.

Oh yeah, you are right.
This is caused by lilypond inserting "word-space" whitespace between objects even if you force them to zero width.

This title-definition gives the desired result.
The "myGap" is in staff spaces, that are 1/4 of the staff size. I.e. in 20 pt staff, each unit is 5 pts. I am not sure, how the "right way" is to convert this to centimetres from within the header-block.

    title = \markup {
      \override #`(word-space . ,myGap)
      \fill-line { \line {
        \with-dimensions #'(0 . 0) #'(0 . 0)
          \right-align \fromproperty #'header:myIndex
        \fromproperty #'header:myTitle
        \with-dimensions #'(0 . 0) #'(0 . 0) \strut
    }}}

-Rune




reply via email to

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