lilypond-user
[Top][All Lists]
Advanced

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

Re: \column inside a \column and baseline-skip


From: Risto Vääräniemi
Subject: Re: \column inside a \column and baseline-skip
Date: Wed, 30 Jan 2008 10:11:30 +0200

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 %%%%




reply via email to

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