[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: \column inside a \column and baseline-skip
From:       "=?ISO-8859-1?Q?Risto_V=E4=E4r=E4niemi?=" <risvaara () gmail ! com>
Date:       2008-01-30 8:11:30
Message-ID: e3f54eda0801300011k4a58431dp34f506b04e43da2a () mail ! gmail ! com
[Download RAW message or body]

Dear Kieren,

On Jan 29, 2008 10:42 PM, Kieren MacMillan wrote:
> Sounds more complicated than necessary...

Probably so. :-) I just haven't found an elegant solution yet.

> Why not have an "if" that just doesn't add the \line to begin with?

The custom markup for the header takes care of removing the
unnecessary text fields. However that doesn't handle the spacing
between the fields and that's my problem. That is if I got your
comment right.

I've included one more snippet. :-) The spacing is now OK for my
purposes for a two-title piece. If you comment out the subtitle at the
\header section the space between the title and the poet is bigger
than the space between the subtitle and the poet in the two-title
version. I'd like to change the spacing somehow.

-Risto

%%%% Snip %%%%
\version "2.11.37"

customHeaders = \markup
{
    \line
    {
        \huge \bigger \bigger \bigger \bigger
        \override #'(baseline-skip . 4.5)
        \column
        {
            \fromproperty #'header:title
            \override #'(baseline-skip . 3.5)
            \column
            {
                \fromproperty #'header:subtitle
                \small
                \override #'(baseline-skip . 3.0)
                \column
                {
                    \fromproperty #'header:poet
                    \fromproperty #'header:translator
                }
            }
        }

        \hspace #5

        \column
        {
            \fontsize #6 \fromproperty #'header:title
            \raise #-1.5 \fontsize #6 \fromproperty #'header:subtitle
            \raise #-2 \fontsize #-1 \fromproperty #'header:poet
            \raise #-2 \fontsize #-1 \fromproperty #'header:translator
        }
    }
}

\header
{
    title = "Title I"
    subtitle = "Title II" % Comment out this one to test single title behaviour.
    poet = "Poet"
    translator = "Translator"
}

\paper
{
    bookTitleMarkup = \customHeaders
}

{ c'1 }
%%%% END %%%%



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic