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: Kieren MacMillan
Subject: Re: \column inside a \column and baseline-skip
Date: Wed, 30 Jan 2008 09:14:01 -0500

Hi Risto,

Here's another hint -- hope it helps.

Best,
Kieren.

________________________

\version "2.10.10"
\include "english.ly"

#(define (has-subtitle layout props arg)
  (if (chain-assoc-get 'header:subtitle? props #t)
   (interpret-markup layout props arg)
   empty-stencil))

customHeaders = \markup
{
        \column
        {
                \fontsize #6 \fromproperty #'header:title
\on-the-fly #has-subtitle { \pad-to-box #'(0 . 0) #'(0 . 5) \fontsize #6 \fromproperty #'header:subtitle }
                \fontsize #-1 \fromproperty #'header:poet
                \fontsize #-1 \fromproperty #'header:translator
        }
}

\paper
{
    bookTitleMarkup = \customHeaders
}

\header
{
    title = "Title I"
    subtitle = "Title II"  % comment to test single-title output
    poet = "Poet"
    translator = "Translator"
}

\score
{
        c'1
}




reply via email to

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